Skip to content

Commit b12137b

Browse files
committed
Remove [test] package from httpx instrumentation
Fixes #2203
1 parent 1e0b11f commit b12137b

File tree

4 files changed

+65
-14
lines changed

4 files changed

+65
-14
lines changed

instrumentation/opentelemetry-instrumentation-httpx/pyproject.toml

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

4338
[project.entry-points.opentelemetry_instrumentor]
4439
httpx = "opentelemetry.instrumentation.httpx:HTTPXClientInstrumentor"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
anyio==3.7.1
2+
asgiref==3.7.2
3+
attrs==23.2.0
4+
certifi==2024.2.2
5+
Deprecated==1.2.14
6+
exceptiongroup==1.2.0
7+
h11==0.12.0
8+
httpcore==0.13.7
9+
httpx==0.18.2
10+
idna==3.6
11+
importlib-metadata==6.11.0
12+
iniconfig==2.0.0
13+
packaging==23.2
14+
pluggy==1.4.0
15+
py==1.11.0
16+
py-cpuinfo==9.0.0
17+
pytest==7.1.3
18+
pytest-benchmark==4.0.0
19+
respx==0.17.1
20+
rfc3986==1.5.0
21+
sniffio==1.3.1
22+
tomli==2.0.1
23+
typing_extensions==4.10.0
24+
wrapt==1.16.0
25+
zipp==3.17.0
26+
-e opentelemetry-instrumentation
27+
-e util/opentelemetry-util-http
28+
-e instrumentation/opentelemetry-instrumentation-httpx
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
anyio==4.3.0
2+
asgiref==3.7.2
3+
attrs==23.2.0
4+
certifi==2024.2.2
5+
Deprecated==1.2.14
6+
exceptiongroup==1.2.0
7+
h11==0.14.0
8+
httpcore==1.0.4
9+
httpx==0.27.0
10+
idna==3.6
11+
importlib-metadata==6.11.0
12+
iniconfig==2.0.0
13+
packaging==23.2
14+
pluggy==1.4.0
15+
py==1.11.0
16+
py-cpuinfo==9.0.0
17+
pytest==7.1.3
18+
pytest-benchmark==4.0.0
19+
respx==0.20.2
20+
sniffio==1.3.1
21+
tomli==2.0.1
22+
typing_extensions==4.10.0
23+
wrapt==1.16.0
24+
zipp==3.17.0
25+
-e opentelemetry-instrumentation
26+
-e util/opentelemetry-util-http
27+
-e instrumentation/opentelemetry-instrumentation-httpx

tox.ini

+10-9
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ envlist =
203203
pypy3-test-instrumentation-tortoiseorm
204204

205205
; opentelemetry-instrumentation-httpx
206-
py3{8,9,10,11}-test-instrumentation-httpx-{18,21}
207-
pypy3-test-instrumentation-httpx-{18,21}
206+
py3{8,9,10,11}-test-instrumentation-httpx-{0,1}
207+
pypy3-test-instrumentation-httpx-{0,1}
208208

209209
; opentelemetry-util-http
210210
py3{8,9,10,11}-test-util-http
@@ -292,10 +292,6 @@ deps =
292292
pymemcache-300: pymemcache >3.0.0,<3.4.2
293293
pymemcache-342: pymemcache ==3.4.2
294294
pymemcache-400: pymemcache ==4.0.0
295-
httpx-18: httpx>=0.18.0,<0.19.0
296-
httpx-18: respx~=0.17.0
297-
httpx-21: httpx>=0.19.0
298-
httpx-21: respx~=0.20.1
299295
urllib3v-1: urllib3 >=1.0.0,<2.0.0
300296
urllib3v-2: urllib3 >=2.0.0,<3.0.0
301297

@@ -333,7 +329,7 @@ commands_pre =
333329

334330
grpc: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-grpc[test]
335331

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
332+
falcon-{1,2,3},flask-{213,220,300},django-{1,2,3,4},pyramid,tornado,starlette,fastapi,aiohttp,asgi,requests,urllib,urllib3v-{1,2},wsgi: pip install {toxinidir}/util/opentelemetry-util-http
337333
wsgi,falcon-{1,2,3},flask-{213,220,300},django-{1,2,3,4},pyramid: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi[test]
338334
asgi,django-{3,4},starlette,fastapi: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi[test]
339335

@@ -420,7 +416,12 @@ commands_pre =
420416

421417
asyncio: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncio[test]
422418

423-
httpx-{18,21}: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-httpx[test]
419+
; The numbers at the end of the environment names
420+
; below mean these dependencies are being used:
421+
; 0: httpx>=0.18.0,<0.19.0 respx~=0.17.0
422+
; 1: httpx>=0.19.0 respx~=0.20.1
423+
httpx-0: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-httpx/test-requirements-0.txt
424+
httpx-1: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-httpx/test-requirements-1.txt
424425

425426
sdkextension-aws: pip install {toxinidir}/sdk-extension/opentelemetry-sdk-extension-aws[test]
426427

@@ -579,7 +580,7 @@ commands_pre =
579580
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-tornado[test]
580581
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-tortoiseorm[test]
581582
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-mysql[test]
582-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-httpx[test]
583+
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-httpx
583584
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-aws-lambda[test]
584585
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-system-metrics[test]
585586
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncio[test]

0 commit comments

Comments
 (0)