diff --git a/.readthedocs.yml b/.readthedocs.yml index 2a3c920b45..dcf3204080 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -12,4 +12,4 @@ build: python: install: - - requirements: docs-requirements.txt + - requirements: rtd-requirements.txt diff --git a/docs-requirements.txt b/docs-requirements.txt index 43e2265f7c..d547e806a3 100644 --- a/docs-requirements.txt +++ b/docs-requirements.txt @@ -2,14 +2,6 @@ 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. --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/rtd-requirements.txt b/rtd-requirements.txt new file mode 100644 index 0000000000..b68781bd8c --- /dev/null +++ b/rtd-requirements.txt @@ -0,0 +1,7 @@ +# Need to install the api/sdk in the venv for autodoc. Used by .readthedocs.yml +opentelemetry-api @ git+https://github.com/open-telemetry/opentelemetry-python.git@main#egg=opentelemetry-api&subdirectory=opentelemetry-api +opentelemetry-semantic-conventions @ git+https://github.com/open-telemetry/opentelemetry-python.git@main#egg=opentelemetry-semantic-conventions&subdirectory=opentelemetry-semantic-conventions +opentelemetry-sdk @ git+https://github.com/open-telemetry/opentelemetry-python.git@main#egg=opentelemetry-sdk&subdirectory=opentelemetry-sdk +./opentelemetry-instrumentation +./util/opentelemetry-util-http +-r ./docs-requirements.txt