Skip to content

Commit edea9b0

Browse files
committed
Remove [test] package from falcon instrumentation
Fixes #2200
1 parent 8daa8ad commit edea9b0

File tree

5 files changed

+72
-15
lines changed

5 files changed

+72
-15
lines changed

instrumentation/opentelemetry-instrumentation-falcon/pyproject.toml

-4
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ dependencies = [
3636
instruments = [
3737
"falcon >= 1.4.1, < 3.1.2",
3838
]
39-
test = [
40-
"opentelemetry-instrumentation-falcon[instruments]",
41-
"opentelemetry-test-utils == 0.45b0.dev",
42-
]
4339

4440
[project.entry-points.opentelemetry_instrumentor]
4541
falcon = "opentelemetry.instrumentation.falcon:FalconInstrumentor"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
asgiref==3.7.2
2+
attrs==23.2.0
3+
Deprecated==1.2.14
4+
falcon==1.4.1
5+
importlib-metadata==6.11.0
6+
iniconfig==2.0.0
7+
packaging==23.2
8+
pluggy==1.4.0
9+
py==1.11.0
10+
py-cpuinfo==9.0.0
11+
pytest==7.1.3
12+
pytest-benchmark==4.0.0
13+
python-mimeparse==1.6.0
14+
six==1.16.0
15+
tomli==2.0.1
16+
typing_extensions==4.10.0
17+
wrapt==1.16.0
18+
zipp==3.17.0
19+
-e ../../../opentelemetry-instrumentation
20+
-e ../../../util/opentelemetry-util-http
21+
-e ../../../instrumentation/opentelemetry-instrumentation-wsgi
22+
-e ../../../instrumentation/opentelemetry-instrumentation-falcon
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
asgiref==3.7.2
2+
attrs==23.2.0
3+
Deprecated==1.2.14
4+
falcon==2.0.0
5+
importlib-metadata==6.11.0
6+
iniconfig==2.0.0
7+
packaging==23.2
8+
pluggy==1.4.0
9+
py==1.11.0
10+
py-cpuinfo==9.0.0
11+
pytest==7.1.3
12+
pytest-benchmark==4.0.0
13+
tomli==2.0.1
14+
typing_extensions==4.10.0
15+
wrapt==1.16.0
16+
zipp==3.17.0
17+
-e ../../../opentelemetry-instrumentation
18+
-e ../../../util/opentelemetry-util-http
19+
-e ../../../instrumentation/opentelemetry-instrumentation-wsgi
20+
-e ../../../instrumentation/opentelemetry-instrumentation-falcon
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
asgiref==3.7.2
2+
attrs==23.2.0
3+
Deprecated==1.2.14
4+
falcon==3.1.1
5+
importlib-metadata==6.11.0
6+
iniconfig==2.0.0
7+
packaging==23.2
8+
pluggy==1.4.0
9+
py==1.11.0
10+
py-cpuinfo==9.0.0
11+
pytest==7.1.3
12+
pytest-benchmark==4.0.0
13+
tomli==2.0.1
14+
typing_extensions==4.10.0
15+
wrapt==1.16.0
16+
zipp==3.17.0
17+
-e ../../../opentelemetry-instrumentation
18+
-e ../../../util/opentelemetry-util-http
19+
-e ../../../instrumentation/opentelemetry-instrumentation-wsgi
20+
-e ../../../instrumentation/opentelemetry-instrumentation-falcon

tox.ini

+10-11
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ envlist =
7474

7575
; opentelemetry-instrumentation-falcon
7676
; py310 does not work with falcon 1
77-
py3{8,9}-test-instrumentation-falcon-1
78-
py3{8,9,10,11}-test-instrumentation-falcon-{2,3}
79-
pypy3-test-instrumentation-falcon-{1,2,3}
77+
py3{8,9}-test-instrumentation-falcon-0
78+
py3{8,9,10,11}-test-instrumentation-falcon-{1,2}
79+
pypy3-test-instrumentation-falcon-{0,1,2}
8080

8181
; opentelemetry-instrumentation-fastapi
8282
py3{8,9,10,11}-test-instrumentation-fastapi
@@ -269,9 +269,6 @@ deps =
269269
; elasticsearch-7: elasticsearch>=7.0,<8.0
270270
; elasticsearch-8: elasticsearch-dsl>=8.0,<9.0
271271
; elasticsearch-8: elasticsearch>=8.0,<9.0
272-
falcon-1: falcon ==1.4.1
273-
falcon-2: falcon >=2.0.0,<3.0.0
274-
falcon-3: falcon >=3.0.0,<4.0.0
275272
flask-213: Flask ==2.1.3
276273
flask-213: Werkzeug <3.0.0
277274
flask-220: Flask ==2.2.0
@@ -325,7 +322,7 @@ changedir =
325322
test-instrumentation-dbapi: instrumentation/opentelemetry-instrumentation-dbapi/tests
326323
test-instrumentation-django-{1,2,3,4}: instrumentation/opentelemetry-instrumentation-django/tests
327324
test-instrumentation-elasticsearch-{2,5,6}: instrumentation/opentelemetry-instrumentation-elasticsearch/tests
328-
test-instrumentation-falcon-{1,2,3}: instrumentation/opentelemetry-instrumentation-falcon/tests
325+
test-instrumentation-falcon-{0,1,2}: instrumentation/opentelemetry-instrumentation-falcon/tests
329326
test-instrumentation-fastapi: instrumentation/opentelemetry-instrumentation-fastapi/tests
330327
test-instrumentation-flask-{213,220,300}: instrumentation/opentelemetry-instrumentation-flask/tests
331328
test-instrumentation-urllib: instrumentation/opentelemetry-instrumentation-urllib/tests
@@ -391,8 +388,8 @@ commands_pre =
391388

392389
grpc: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-grpc[test]
393390

394-
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
395-
wsgi,falcon-{1,2,3},flask-{213,220,300},django-{1,2,3,4},pyramid: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi[test]
391+
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
392+
wsgi,flask-{213,220,300},django-{1,2,3,4},pyramid: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi[test]
396393
asgi,django-{3,4},starlette,fastapi: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi[test]
397394

398395
asyncpg: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncpg[test]
@@ -404,7 +401,9 @@ commands_pre =
404401

405402
boto3sqs: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-boto3sqs[test]
406403

407-
falcon-{1,2,3}: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-falcon[test]
404+
falcon-0: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-falcon/test-requirements-0.txt
405+
falcon-1: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-falcon/test-requirements-1.txt
406+
falcon-2: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-falcon/test-requirements-2.txt
408407

409408
flask-{213,220,300}: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-flask[test]
410409

@@ -545,7 +544,7 @@ commands_pre =
545544
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-django[test]
546545
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-starlette[test]
547546
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-grpc[test]
548-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-falcon[test]
547+
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-falcon
549548
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-boto[test]
550549
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-flask[test]
551550
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-sqlalchemy[test]

0 commit comments

Comments
 (0)