Skip to content

Commit 8d43618

Browse files
authored
Remove [test] package from tornado instrumentation (#2280)
Fixes #2223
1 parent 7404e69 commit 8d43618

File tree

4 files changed

+36
-9
lines changed

4 files changed

+36
-9
lines changed

instrumentation/opentelemetry-instrumentation-tornado/pyproject.toml

-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ dependencies = [
3333
instruments = [
3434
"tornado >= 5.1.1",
3535
]
36-
test = [
37-
"opentelemetry-instrumentation-tornado[instruments]",
38-
"opentelemetry-test-utils == 0.45b0.dev",
39-
"http-server-mock"
40-
]
4136

4237
[project.entry-points.opentelemetry_instrumentor]
4338
tornado = "opentelemetry.instrumentation.tornado:TornadoInstrumentor"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
asgiref==3.7.2
2+
attrs==23.2.0
3+
blinker==1.7.0
4+
certifi==2024.2.2
5+
charset-normalizer==3.3.2
6+
click==8.1.7
7+
Deprecated==1.2.14
8+
Flask==3.0.2
9+
http_server_mock==1.7
10+
idna==3.6
11+
importlib-metadata==6.11.0
12+
iniconfig==2.0.0
13+
itsdangerous==2.1.2
14+
Jinja2==3.1.3
15+
MarkupSafe==2.1.5
16+
packaging==23.2
17+
pluggy==1.4.0
18+
py==1.11.0
19+
py-cpuinfo==9.0.0
20+
pytest==7.1.3
21+
pytest-benchmark==4.0.0
22+
requests==2.31.0
23+
tomli==2.0.1
24+
tornado==6.4
25+
typing_extensions==4.9.0
26+
urllib3==2.2.1
27+
Werkzeug==3.0.1
28+
wrapt==1.16.0
29+
zipp==3.17.0
30+
-e opentelemetry-instrumentation
31+
-e util/opentelemetry-util-http
32+
-e instrumentation/opentelemetry-instrumentation-tornado

instrumentation/opentelemetry-instrumentation-tornado/tests/test_instrumentation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ def index():
528528

529529

530530
class TestTornadoInstrumentationWithXHeaders(TornadoTest):
531-
def get_httpserver_options(self):
531+
def get_httpserver_options(self): # pylint: disable=no-self-use
532532
return {"xheaders": True}
533533

534534
def test_xheaders(self):

tox.ini

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

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

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

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

@@ -414,7 +414,7 @@ commands_pre =
414414

415415
system-metrics: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-system-metrics[test]
416416

417-
tornado: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-tornado[test]
417+
tornado: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-tornado/test-requirements.txt
418418

419419
tortoiseorm: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-tortoiseorm[test]
420420

@@ -596,7 +596,7 @@ commands_pre =
596596
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-pymongo[test]
597597
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-elasticsearch[test]
598598
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncpg[test]
599-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-tornado[test]
599+
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-tornado/test-requirements.txt
600600
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-tortoiseorm[test]
601601
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-mysql[test]
602602
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-httpx[test]

0 commit comments

Comments
 (0)