Skip to content

Commit 1bf9f42

Browse files
authored
Remove [test] package from asgi instrumentation (#2247)
Fixes #2187
1 parent 2417c09 commit 1bf9f42

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

instrumentation/opentelemetry-instrumentation-asgi/pyproject.toml

-4
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ dependencies = [
3535
instruments = [
3636
"asgiref ~= 3.0",
3737
]
38-
test = [
39-
"opentelemetry-instrumentation-asgi[instruments]",
40-
"opentelemetry-test-utils == 0.45b0.dev",
41-
]
4238

4339
[project.urls]
4440
Homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-asgi"
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-asgi

tox.ini

+5-3
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ commands_pre =
323323

324324
distro: pip install {toxinidir}/opentelemetry-distro
325325

326+
asgi: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi/test-requirements.txt
327+
326328
celery: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-celery[test]
327329

328330
sio-pika-{0,1}: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-pika[test]
@@ -337,9 +339,9 @@ commands_pre =
337339

338340
grpc: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-grpc[test]
339341

340-
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
342+
falcon-{1,2,3},flask-{213,220,300},django-{1,2,3,4},pyramid,tornado,starlette,fastapi,aiohttp,httpx-{18,21},requests,urllib,urllib3v-{1,2},wsgi: pip install {toxinidir}/util/opentelemetry-util-http
341343
wsgi,falcon-{1,2,3},flask-{213,220,300},django-{1,2,3,4},pyramid: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi[test]
342-
asgi,django-{3,4},starlette,fastapi: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi[test]
344+
django-{3,4},starlette,fastapi: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi
343345

344346
asyncpg: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncpg[test]
345347

@@ -538,7 +540,7 @@ commands_pre =
538540
python -m pip install -e {toxinidir}/opentelemetry-instrumentation[test]
539541
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi[test]
540542
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi[test]
541-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi[test]
543+
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi/test-requirements.txt
542544
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-botocore[test]
543545
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-boto3sqs[test]
544546
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-django[test]

0 commit comments

Comments
 (0)