Skip to content

Commit 5b9d647

Browse files
committedMar 6, 2024
Remove [test] package from requests instrumentation
Fixes #2217
1 parent 46a8c59 commit 5b9d647

File tree

3 files changed

+27
-8
lines changed

3 files changed

+27
-8
lines changed
 

‎instrumentation/opentelemetry-instrumentation-requests/pyproject.toml

-5
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ dependencies = [
3434
instruments = [
3535
"requests ~= 2.0",
3636
]
37-
test = [
38-
"opentelemetry-instrumentation-requests[instruments]",
39-
"httpretty ~= 1.0",
40-
"opentelemetry-test-utils == 0.45b0.dev",
41-
]
4237

4338
[project.entry-points.opentelemetry_instrumentor]
4439
requests = "opentelemetry.instrumentation.requests:RequestsInstrumentor"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
asgiref==3.7.2
2+
attrs==23.2.0
3+
certifi==2024.2.2
4+
charset-normalizer==3.3.2
5+
Deprecated==1.2.14
6+
httpretty==1.1.4
7+
idna==3.6
8+
importlib-metadata==6.11.0
9+
iniconfig==2.0.0
10+
packaging==23.2
11+
pluggy==1.4.0
12+
py==1.11.0
13+
py-cpuinfo==9.0.0
14+
pytest==7.1.3
15+
pytest-benchmark==4.0.0
16+
requests==2.31.0
17+
tomli==2.0.1
18+
typing_extensions==4.9.0
19+
urllib3==2.2.1
20+
wrapt==1.16.0
21+
zipp==3.17.0
22+
-e opentelemetry-instrumentation
23+
-e util/opentelemetry-util-http
24+
-e instrumentation/opentelemetry-instrumentation-requests

‎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,asgi,httpx-{18,21},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

@@ -386,7 +386,7 @@ commands_pre =
386386

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

389-
requests: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-requests[test]
389+
requests: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-requests/test-requirements.txt
390390

391391
starlette: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-starlette[test]
392392

@@ -566,7 +566,7 @@ commands_pre =
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]
569-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-requests[test]
569+
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-requests/test-requirements.txt
570570
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-urllib[test]
571571
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-urllib3[test]
572572
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-pymysql[test]

0 commit comments

Comments
 (0)