diff --git a/docs-requirements.txt b/docs-requirements.txt index 04471bec7a..0188c11e64 100644 --- a/docs-requirements.txt +++ b/docs-requirements.txt @@ -2,6 +2,14 @@ sphinx==7.1.2 sphinx-rtd-theme==2.0.0rc4 sphinx-autodoc-typehints==1.25.2 +# Need to install the api/sdk in the venv for autodoc. Modifying sys.path +# doesn't work for pkg_resources. Used by .readthedocs.yml +-e "git+https://github.com/open-telemetry/opentelemetry-python.git#egg=opentelemetry-api&subdirectory=opentelemetry-api" +-e "git+https://github.com/open-telemetry/opentelemetry-python.git#egg=opentelemetry-semantic-conventions&subdirectory=opentelemetry-semantic-conventions" +-e "git+https://github.com/open-telemetry/opentelemetry-python.git#egg=opentelemetry-sdk&subdirectory=opentelemetry-sdk" +-e "git+https://github.com/open-telemetry/opentelemetry-python-contrib.git#egg=opentelemetry-util-http&subdirectory=util/opentelemetry-util-http" +./opentelemetry-instrumentation + # Required by opentelemetry-instrumentation fastapi>=0.65.2 pymemcache~=1.3 diff --git a/tox.ini b/tox.ini index a47c39d5c4..3b1eaf3124 100644 --- a/tox.ini +++ b/tox.ini @@ -417,7 +417,7 @@ deps = asgi: -r {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi/test-requirements.txt celery: {[testenv]test_deps} - py3{8,9}-test-instrumentation-celery: {toxinidir}/instrumentation/opentelemetry-instrumentation-celery/test-requirements-0.txt + py3{8,9}-test-instrumentation-celery: -r {toxinidir}/instrumentation/opentelemetry-instrumentation-celery/test-requirements-0.txt py3{10,11,12}-test-instrumentation-celery: -r {toxinidir}/instrumentation/opentelemetry-instrumentation-celery/test-requirements-1.txt pypy3-test-instrumentation-celery: -r {toxinidir}/instrumentation/opentelemetry-instrumentation-celery/test-requirements-1.txt lint-instrumentation-celery: -r {toxinidir}/instrumentation/opentelemetry-instrumentation-celery/test-requirements-1.txt