Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3ce7ff1

Browse files
committedMar 15, 2024··
Remove [test] package from wsgi instrumentation
Fixes #2227
1 parent 5f68e97 commit 3ce7ff1

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
@@ -343,10 +343,12 @@ commands_pre =
343343

344344
grpc: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-grpc[test]
345345

346-
falcon-{1,2,3},pyramid,tornado,starlette,fastapi,aiohttp,httpx-{18,21},requests,urllib,urllib3v-{1,2},wsgi: pip install {toxinidir}/util/opentelemetry-util-http
347-
wsgi,falcon-{1,2,3},pyramid: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi[test]
346+
falcon-{1,2,3},pyramid,tornado,starlette,fastapi,aiohttp,httpx-{18,21},requests,urllib,urllib3v-{1,2}: pip install {toxinidir}/util/opentelemetry-util-http
347+
falcon-{1,2,3},pyramid: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi
348348
starlette,fastapi: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi
349349

350+
wsgi: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi/test-requirements.txt
351+
350352
asyncpg: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncpg[test]
351353

352354
aws-lambda: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-aws-lambda[test]
@@ -550,7 +552,7 @@ commands_pre =
550552
python -m pip install {env:CORE_REPO}\#egg=opentelemetry-test-utils&subdirectory=tests/opentelemetry-test-utils
551553
python -m pip install -e {toxinidir}/util/opentelemetry-util-http[test]
552554
python -m pip install -e {toxinidir}/opentelemetry-instrumentation[test]
553-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi[test]
555+
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi/test-requirements.txt
554556
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi[test]
555557
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi/test-requirements.txt
556558
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-botocore[test]

0 commit comments

Comments
 (0)
Please sign in to comment.