Skip to content

Commit 5f0c7e1

Browse files
committed
Remove [test] package from wsgi instrumentation
Fixes #2227
1 parent 1c21715 commit 5f0c7e1

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-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

+4-3
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,11 @@ commands_pre =
386386

387387
grpc: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-grpc[test]
388388

389-
falcon-{1,2,3},flask-{213,220,300},django-{1,2,3,4},pyramid,tornado,starlette,fastapi,aiohttp,asgi,httpx-{18,21},requests,urllib,urllib3v-{1,2},wsgi: pip install {toxinidir}/util/opentelemetry-util-http
390-
wsgi,falcon-{1,2,3},flask-{213,220,300},django-{1,2,3,4},pyramid: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi[test]
389+
falcon-{1,2,3},flask-{213,220,300},django-{1,2,3,4},pyramid,tornado,starlette,fastapi,aiohttp,asgi,httpx-{18,21},requests,urllib,urllib3v-{1,2}: pip install {toxinidir}/util/opentelemetry-util-http
391390
asgi,django-{3,4},starlette,fastapi: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi[test]
392391

392+
wsgi: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi/test-requirements.txt
393+
393394
asyncpg: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncpg[test]
394395

395396
aws-lambda: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-aws-lambda[test]
@@ -530,7 +531,7 @@ commands_pre =
530531
python -m pip install {env:CORE_REPO}\#egg=opentelemetry-test-utils&subdirectory=tests/opentelemetry-test-utils
531532
python -m pip install -e {toxinidir}/util/opentelemetry-util-http[test]
532533
python -m pip install -e {toxinidir}/opentelemetry-instrumentation[test]
533-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi[test]
534+
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi
534535
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi[test]
535536
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi[test]
536537
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-botocore[test]

0 commit comments

Comments
 (0)