Skip to content

Commit 8b4d9b5

Browse files
committed
Remove [test] package from wsgi instrumentation
Fixes #2227
1 parent ce2de1f commit 8b4d9b5

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

instrumentation/opentelemetry-instrumentation-wsgi/pyproject.toml

-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ dependencies = [
3232

3333
[project.optional-dependencies]
3434
instruments = []
35-
test = [
36-
"opentelemetry-test-utils == 0.45b0.dev",
37-
]
3835

3936
[project.urls]
4037
Homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-wsgi"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
asgiref==3.7.2
2+
attrs==23.2.0
3+
Deprecated==1.2.14
4+
importlib-metadata==6.11.0
5+
iniconfig==2.0.0
6+
packaging==23.2
7+
pluggy==1.4.0
8+
py==1.11.0
9+
py-cpuinfo==9.0.0
10+
pytest==7.1.3
11+
pytest-benchmark==4.0.0
12+
tomli==2.0.1
13+
typing_extensions==4.9.0
14+
wrapt==1.16.0
15+
zipp==3.17.0
16+
-e opentelemetry-instrumentation
17+
-e util/opentelemetry-util-http
18+
-e instrumentation/opentelemetry-instrumentation-wsgi

tox.ini

+5-3
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,12 @@ commands_pre =
345345

346346
grpc: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-grpc[test]
347347

348-
pyramid,tornado,starlette,fastapi,aiohttp,httpx-{18,21},requests,urllib,urllib3v-{1,2},wsgi: pip install {toxinidir}/util/opentelemetry-util-http
349-
wsgi,pyramid: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi[test]
348+
pyramid,tornado,starlette,fastapi,aiohttp,httpx-{18,21},requests,urllib,urllib3v-{1,2}: pip install {toxinidir}/util/opentelemetry-util-http
349+
pyramid: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi
350350
starlette,fastapi: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi
351351

352+
wsgi: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi/test-requirements.txt
353+
352354
asyncpg: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncpg[test]
353355

354356
aws-lambda: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-aws-lambda[test]
@@ -554,7 +556,7 @@ commands_pre =
554556
python -m pip install {env:CORE_REPO}\#egg=opentelemetry-test-utils&subdirectory=tests/opentelemetry-test-utils
555557
python -m pip install -e {toxinidir}/util/opentelemetry-util-http[test]
556558
python -m pip install -e {toxinidir}/opentelemetry-instrumentation[test]
557-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi[test]
559+
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi/test-requirements.txt
558560
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi[test]
559561
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi/test-requirements.txt
560562
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-botocore[test]

0 commit comments

Comments
 (0)