Skip to content

Commit 8904a20

Browse files
committed
Remove [test] package from jinja2 instrumentation
Fixes open-telemetry#2204
1 parent 8daa8ad commit 8904a20

File tree

3 files changed

+21
-7
lines changed

3 files changed

+21
-7
lines changed

instrumentation/opentelemetry-instrumentation-jinja2/pyproject.toml

-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ dependencies = [
3333
instruments = [
3434
"jinja2 >= 2.7, < 4.0",
3535
]
36-
test = [
37-
"opentelemetry-instrumentation-jinja2[instruments]",
38-
"markupsafe==2.0.1",
39-
"opentelemetry-test-utils == 0.45b0.dev",
40-
]
4136

4237
[project.entry-points.opentelemetry_instrumentor]
4338
jinja2 = "opentelemetry.instrumentation.jinja2:Jinja2Instrumentor"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
asgiref==3.7.2
2+
attrs==23.2.0
3+
Deprecated==1.2.14
4+
importlib-metadata==6.11.0
5+
iniconfig==2.0.0
6+
Jinja2==3.1.3
7+
MarkupSafe==2.0.1
8+
packaging==23.2
9+
pluggy==1.4.0
10+
py==1.11.0
11+
py-cpuinfo==9.0.0
12+
pytest==7.1.3
13+
pytest-benchmark==4.0.0
14+
tomli==2.0.1
15+
typing_extensions==4.9.0
16+
wrapt==1.16.0
17+
zipp==3.17.0
18+
-e ../../../opentelemetry-instrumentation
19+
-e ../../../instrumentation/opentelemetry-instrumentation-jinja2

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ commands_pre =
454454

455455
tortoiseorm: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-tortoiseorm[test]
456456

457-
jinja2: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-jinja2[test]
457+
jinja2: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-jinja2/test-requirements.txt
458458

459459
logging: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-logging[test]
460460

@@ -557,7 +557,7 @@ commands_pre =
557557
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-redis[test]
558558
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-remoulade[test]
559559
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-fastapi[test]
560-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-jinja2[test]
560+
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-jinja2
561561
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-kafka-python[test]
562562
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-confluent-kafka[test]
563563
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-logging[test]

0 commit comments

Comments
 (0)