Skip to content

Commit d8c83c3

Browse files
committed
Remove [test] package from aiohttp-server instrumentation
Fixes #2184
1 parent 2518a4a commit d8c83c3

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

Diff for: 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,6 @@
1+
aiohttp==3.9.3
2+
pytest-asyncio==0.23.5
3+
pytest-aiohttp==1.0.5
4+
-e ../../../opentelemetry-instrumentation
5+
-e ../../../util/opentelemetry-util-http
6+
-e ../../../instrumentation/opentelemetry-instrumentation-aiohttp-server

Diff for: tox.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ commands_pre =
386386

387387
grpc: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-grpc[test]
388388

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

@@ -455,7 +455,7 @@ commands_pre =
455455

456456
aiohttp-client: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-aiohttp-client[test]
457457

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

460460
aiopg: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-aiopg[test]
461461

@@ -557,7 +557,7 @@ commands_pre =
557557
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-pymemcache[test]
558558
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-psycopg2[test]
559559
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-aiohttp-client[test]
560-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-aiohttp-server[test]
560+
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-aiohttp-server
561561
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-aiopg[test]
562562
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-sqlite3[test]
563563
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-pyramid[test]

0 commit comments

Comments
 (0)