Skip to content

Commit 3a16a63

Browse files
committed
Remove [test] package from asgi instrumentation
Fixes open-telemetry#2187
1 parent 46a8c59 commit 3a16a63

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
@@ -321,6 +321,8 @@ commands_pre =
321321

322322
distro: pip install {toxinidir}/opentelemetry-distro
323323

324+
asgi: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi/test-requirements.txt
325+
324326
celery: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-celery[test]
325327

326328
sio-pika-{0,1}: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-pika[test]
@@ -333,9 +335,9 @@ commands_pre =
333335

334336
grpc: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-grpc[test]
335337

336-
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
338+
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
337339
wsgi,falcon-{1,2,3},flask-{213,220,300},django-{1,2,3,4},pyramid: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi[test]
338-
asgi,django-{3,4},starlette,fastapi: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi[test]
340+
django-{3,4},starlette,fastapi: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi
339341

340342
asyncpg: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncpg[test]
341343

@@ -536,7 +538,7 @@ commands_pre =
536538
python -m pip install -e {toxinidir}/opentelemetry-instrumentation[test]
537539
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi[test]
538540
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi[test]
539-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi[test]
541+
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi/test-requirements.txt
540542
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-botocore[test]
541543
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-boto3sqs[test]
542544
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-django[test]

0 commit comments

Comments
 (0)