Skip to content

Commit 4ba6c7a

Browse files
committed
Remove [test] package from aiohttp-server instrumentation
Fixes #2184
1 parent 1e0b11f commit 4ba6c7a

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
@@ -333,7 +333,7 @@ commands_pre =
333333

334334
grpc: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-grpc[test]
335335

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

@@ -404,7 +404,7 @@ commands_pre =
404404

405405
aiohttp-client: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-aiohttp-client[test]
406406

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

409409
aiopg: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-aiopg[test]
410410

@@ -562,7 +562,7 @@ commands_pre =
562562
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-psycopg[test]
563563
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-psycopg2[test]
564564
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-aiohttp-client[test]
565-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-aiohttp-server[test]
565+
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-aiohttp-server/test-requirements.txt
566566
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-aiopg[test]
567567
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-sqlite3[test]
568568
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-pyramid[test]

0 commit comments

Comments
 (0)