Skip to content

Commit

Permalink
test two requirements files for docs and rtd (#3039)
Browse files Browse the repository at this point in the history
  • Loading branch information
emdneto authored Dec 3, 2024
1 parent b6541f0 commit 9e83e25
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ build:

python:
install:
- requirements: docs-requirements.txt
- requirements: rtd-requirements.txt
8 changes: 0 additions & 8 deletions docs-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions rtd-requirements.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9e83e25

Please sign in to comment.