Skip to content

Commit 7404e69

Browse files
authored
Remove [test] package from fastapi instrumentation (open-telemetry#2289)
Fixes open-telemetry#2201
1 parent fd6b8f1 commit 7404e69

File tree

3 files changed

+38
-10
lines changed

3 files changed

+38
-10
lines changed

Diff for: instrumentation/opentelemetry-instrumentation-fastapi/pyproject.toml

-6
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ dependencies = [
3535
instruments = [
3636
"fastapi ~= 0.58",
3737
]
38-
test = [
39-
"opentelemetry-instrumentation-fastapi[instruments]",
40-
"opentelemetry-test-utils == 0.45b0.dev",
41-
"requests ~= 2.23", # needed for testclient
42-
"httpx ~= 0.22", # needed for testclient
43-
]
4438

4539
[project.entry-points.opentelemetry_instrumentor]
4640
fastapi = "opentelemetry.instrumentation.fastapi:FastAPIInstrumentor"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
annotated-types==0.6.0
2+
anyio==4.3.0
3+
asgiref==3.7.2
4+
attrs==23.2.0
5+
certifi==2024.2.2
6+
charset-normalizer==3.3.2
7+
Deprecated==1.2.14
8+
exceptiongroup==1.2.0
9+
fastapi==0.109.2
10+
h11==0.14.0
11+
httpcore==1.0.4
12+
httpx==0.27.0
13+
idna==3.6
14+
importlib-metadata==6.11.0
15+
iniconfig==2.0.0
16+
packaging==23.2
17+
pluggy==1.4.0
18+
py==1.11.0
19+
py-cpuinfo==9.0.0
20+
pydantic==2.6.2
21+
pydantic_core==2.16.3
22+
pytest==7.1.3
23+
pytest-benchmark==4.0.0
24+
requests==2.31.0
25+
sniffio==1.3.0
26+
starlette==0.36.3
27+
tomli==2.0.1
28+
typing_extensions==4.9.0
29+
urllib3==2.2.1
30+
wrapt==1.16.0
31+
zipp==3.17.0
32+
-e opentelemetry-instrumentation
33+
-e instrumentation/opentelemetry-instrumentation-asgi
34+
-e util/opentelemetry-util-http
35+
-e instrumentation/opentelemetry-instrumentation-fastapi

Diff for: tox.ini

+3-4
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,7 @@ commands_pre =
345345

346346
grpc: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-grpc[test]
347347

348-
tornado,fastapi,aiohttp,httpx-{18,21},requests,urllib,urllib3v-{1,2}: pip install {toxinidir}/util/opentelemetry-util-http
349-
fastapi: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi
348+
tornado,aiohttp,httpx-{18,21},requests,urllib,urllib3v-{1,2}: pip install {toxinidir}/util/opentelemetry-util-http
350349

351350
wsgi: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi/test-requirements.txt
352351

@@ -385,7 +384,7 @@ commands_pre =
385384
pypy3-test-instrumentation-django-0: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-django/test-requirements-0.txt
386385
pypy3-test-instrumentation-django-1: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-django/test-requirements-1.txt
387386

388-
fastapi: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-fastapi[test]
387+
fastapi: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-fastapi/test-requirements.txt
389388

390389
mysql: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi {toxinidir}/instrumentation/opentelemetry-instrumentation-mysql[test]
391390

@@ -574,7 +573,7 @@ commands_pre =
574573
; python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-sklearn[test]
575574
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-redis[test]
576575
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-remoulade[test]
577-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-fastapi[test]
576+
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-fastapi/test-requirements.txt
578577
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-jinja2[test]
579578
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-kafka-python[test]
580579
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-confluent-kafka[test]

0 commit comments

Comments
 (0)