optional_deps.py 1014 B

123456789101112131415161718192021222324252627
  1. # These imports determine whether or not a user has the required dependencies
  2. # to launch the optional dashboard API server.
  3. # If any of these imports fail, the dashboard API server will not be launched.
  4. # Please add important dashboard-api dependencies to this list.
  5. import aiohttp # noqa: F401
  6. import aiohttp.web # noqa: F401
  7. import aiohttp_cors # noqa: F401
  8. import grpc # noqa: F401
  9. # These checks have to come first because aiohttp looks
  10. # for opencensus, too, and raises a different error otherwise.
  11. import opencensus # noqa: F401
  12. import opentelemetry # noqa: F401
  13. import opentelemetry.exporter.prometheus # noqa: F401
  14. import opentelemetry.proto # noqa: F401
  15. import prometheus_client # noqa: F401
  16. import pydantic # noqa: F401
  17. from aiohttp import hdrs # noqa: F401
  18. from aiohttp.typedefs import PathLike # noqa: F401
  19. from aiohttp.web import (
  20. Request, # noqa: F401
  21. RouteDef, # noqa: F401
  22. )
  23. # Adding new modules should also be reflected in the
  24. # python/ray/tests/test_minimal_install.py