Skip to content

Commit

Permalink
Do not install unnecessary packages (open-telemetry#3896)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl authored May 14, 2024
1 parent eef2015 commit a156bf1
Show file tree
Hide file tree
Showing 19 changed files with 38 additions and 6 deletions.
3 changes: 3 additions & 0 deletions docs/getting_started/tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ urllib3==1.26.18
Werkzeug==3.0.3
wrapt==1.15.0
zipp==3.17.0
-e opentelemetry-semantic-conventions
-e opentelemetry-api
-e opentelemetry-sdk
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ wrapt==1.16.0
zipp==3.17.0
-e opentelemetry-api
-e opentelemetry-sdk
-e tests/opentelemetry-test-utils
-e opentelemetry-semantic-conventions
-e exporter/opentelemetry-exporter-opencensus
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@ tomli==2.0.1
typing_extensions==4.10.0
wrapt==1.16.0
zipp==3.17.0
-e opentelemetry-api
-e opentelemetry-sdk
-e opentelemetry-semantic-conventions
-e tests/opentelemetry-test-utils
-e opentelemetry-proto
-e exporter/opentelemetry-exporter-otlp-proto-common
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@ tomli==2.0.1
typing_extensions==4.10.0
wrapt==1.16.0
zipp==3.17.0
-e opentelemetry-api
-e opentelemetry-sdk
-e opentelemetry-semantic-conventions
-e tests/opentelemetry-test-utils
-e opentelemetry-proto
-e exporter/opentelemetry-exporter-otlp-proto-common
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ typing_extensions==4.10.0
wrapt==1.16.0
zipp==3.17.0
-e opentelemetry-api
-e tests/opentelemetry-test-utils
-e exporter/opentelemetry-exporter-otlp-proto-common
-e opentelemetry-proto
-e opentelemetry-sdk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ typing_extensions==4.10.0
wrapt==1.16.0
zipp==3.17.0
-e opentelemetry-api
-e tests/opentelemetry-test-utils
-e exporter/opentelemetry-exporter-otlp-proto-common
-e opentelemetry-proto
-e opentelemetry-sdk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ urllib3==2.2.1
wrapt==1.16.0
zipp==3.17.0
-e opentelemetry-api
-e tests/opentelemetry-test-utils
-e exporter/opentelemetry-exporter-otlp-proto-common
-e opentelemetry-proto
-e opentelemetry-sdk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ urllib3==2.2.1
wrapt==1.16.0
zipp==3.17.0
-e opentelemetry-api
-e tests/opentelemetry-test-utils
-e exporter/opentelemetry-exporter-otlp-proto-common
-e opentelemetry-proto
-e opentelemetry-sdk
Expand Down
1 change: 1 addition & 0 deletions exporter/opentelemetry-exporter-otlp/test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ typing_extensions==4.10.0
wrapt==1.16.0
zipp==3.17.0
-e opentelemetry-api
-e tests/opentelemetry-test-utils
-e exporter/opentelemetry-exporter-otlp-proto-common
-e exporter/opentelemetry-exporter-otlp-proto-grpc
-e exporter/opentelemetry-exporter-otlp-proto-http
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ wrapt==1.16.0
zipp==3.17.0
-e opentelemetry-api
-e opentelemetry-sdk
-e tests/opentelemetry-test-utils
-e opentelemetry-semantic-conventions
-e exporter/opentelemetry-exporter-prometheus
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ zipp==3.17.0
-e opentelemetry-api
-e opentelemetry-sdk
-e opentelemetry-semantic-conventions
-e tests/opentelemetry-test-utils
-e exporter/opentelemetry-exporter-zipkin-json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ zipp==3.17.0
-e opentelemetry-api
-e exporter/opentelemetry-exporter-zipkin-json
-e opentelemetry-sdk
-e tests/opentelemetry-test-utils
-e opentelemetry-semantic-conventions
-e exporter/opentelemetry-exporter-zipkin-proto-http
3 changes: 3 additions & 0 deletions opentelemetry-api/test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ tomli==2.0.1
typing_extensions==4.10.0
wrapt==1.16.0
zipp==3.17.0
-e opentelemetry-sdk
-e opentelemetry-semantic-conventions
-e tests/opentelemetry-test-utils
-e opentelemetry-api
1 change: 1 addition & 0 deletions opentelemetry-sdk/test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ tomli==2.0.1
typing_extensions==4.10.0
wrapt==1.16.0
zipp==3.17.0
-e tests/opentelemetry-test-utils
-e opentelemetry-api
-e opentelemetry-semantic-conventions
-e opentelemetry-sdk
2 changes: 2 additions & 0 deletions propagator/opentelemetry-propagator-b3/test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ typing_extensions==4.10.0
wrapt==1.16.0
zipp==3.17.0
-e opentelemetry-api
-e opentelemetry-sdk
-e opentelemetry-semantic-conventions
-e propagator/opentelemetry-propagator-b3
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ typing_extensions==4.10.0
wrapt==1.16.0
zipp==3.17.0
-e opentelemetry-api
-e opentelemetry-sdk
-e opentelemetry-semantic-conventions
-e tests/opentelemetry-test-utils
-e propagator/opentelemetry-propagator-jaeger
3 changes: 3 additions & 0 deletions shim/opentelemetry-opencensus-shim/test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ urllib3==2.2.1
wrapt==1.16.0
zipp==3.17.0
-e opentelemetry-api
-e opentelemetry-sdk
-e tests/opentelemetry-test-utils
-e opentelemetry-semantic-conventions
-e shim/opentelemetry-opencensus-shim
3 changes: 3 additions & 0 deletions shim/opentelemetry-opentracing-shim/test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@ typing_extensions==4.10.0
wrapt==1.16.0
zipp==3.17.0
-e opentelemetry-api
-e opentelemetry-sdk
-e tests/opentelemetry-test-utils
-e opentelemetry-semantic-conventions
-e shim/opentelemetry-opentracing-shim
9 changes: 3 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -112,17 +112,14 @@ setenv =
mypy: MYPYPATH={toxinidir}/opentelemetry-api/src/:{toxinidir}/tests/opentelemetry-test-utils/src/

commands_pre =
; Install without -e to test the actual installation
py3{8,9,10,11}: python -m pip install -U pip setuptools wheel

api: pip install -r {toxinidir}/opentelemetry-api/test-requirements.txt

sdk: pip install -r {toxinidir}/opentelemetry-sdk/test-requirements.txt

semantic-conventions: pip install -r {toxinidir}/opentelemetry-semantic-conventions/test-requirements.txt
test-utils: pip install -r {toxinidir}/tests/opentelemetry-test-utils/test-requirements.txt

; Install common packages for all the tests. These are not needed in all the
; cases but it saves a lot of boilerplate in this file.
opentelemetry: pip install {toxinidir}/opentelemetry-api {toxinidir}/opentelemetry-semantic-conventions {toxinidir}/opentelemetry-sdk {toxinidir}/tests/opentelemetry-test-utils
test-utils: pip install -r {toxinidir}/tests/opentelemetry-test-utils/test-requirements.txt

protobuf-0: pip install -r {toxinidir}/opentelemetry-proto/test-requirements-0.txt
protobuf-1: pip install -r {toxinidir}/opentelemetry-proto/test-requirements-1.txt
Expand Down

0 comments on commit a156bf1

Please sign in to comment.