Skip to content

Commit 955d785

Browse files
committed
Remove [test] package from aiohttp-server instrumentation
Fixes #2184
1 parent 8daa8ad commit 955d785

File tree

3 files changed

+30
-8
lines changed

3 files changed

+30
-8
lines changed

instrumentation/opentelemetry-instrumentation-aiohttp-server/pyproject.toml

-5
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ dependencies = [
3535
instruments = [
3636
"aiohttp ~= 3.0",
3737
]
38-
test = [
39-
"opentelemetry-instrumentation-aiohttp-server[instruments]",
40-
"pytest-asyncio",
41-
"pytest-aiohttp",
42-
]
4338

4439
[project.entry-points.opentelemetry_instrumentor]
4540
aiohttp-server = "opentelemetry.instrumentation.aiohttp_server:AioHttpServerInstrumentor"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
aiohttp==3.9.3
2+
aiosignal==1.3.1
3+
asgiref==3.7.2
4+
async-timeout==4.0.3
5+
attrs==23.2.0
6+
Deprecated==1.2.14
7+
frozenlist==1.4.1
8+
idna==3.6
9+
importlib-metadata==6.11.0
10+
iniconfig==2.0.0
11+
multidict==6.0.5
12+
packaging==23.2
13+
pluggy==1.4.0
14+
py==1.11.0
15+
py-cpuinfo==9.0.0
16+
pytest==7.1.3
17+
pytest-aiohttp==1.0.5
18+
pytest-asyncio==0.23.5
19+
pytest-benchmark==4.0.0
20+
tomli==2.0.1
21+
typing_extensions==4.10.0
22+
wrapt==1.16.0
23+
yarl==1.9.4
24+
zipp==3.17.0
25+
-e ../../../opentelemetry-instrumentation
26+
-e ../../../util/opentelemetry-util-http
27+
-e ../../../instrumentation/opentelemetry-instrumentation-aiohttp-server

tox.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ commands_pre =
391391

392392
grpc: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-grpc[test]
393393

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

@@ -462,7 +462,7 @@ commands_pre =
462462

463463
aiohttp-client: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-aiohttp-client[test]
464464

465-
aiohttp-server: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-aiohttp-server[test]
465+
aiohttp-server: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-aiohttp-server/test-requirements.txt
466466

467467
aiopg: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-aiopg[test]
468468

@@ -565,7 +565,7 @@ commands_pre =
565565
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-psycopg[test]
566566
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-psycopg2[test]
567567
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-aiohttp-client[test]
568-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-aiohttp-server[test]
568+
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-aiohttp-server
569569
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-aiopg[test]
570570
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-sqlite3[test]
571571
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-pyramid[test]

0 commit comments

Comments
 (0)