Skip to content

Commit 210d27f

Browse files
committed
Remove [test] package from pymongo instrumentation
Fixes #2212
1 parent 46a8c59 commit 210d27f

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

instrumentation/opentelemetry-instrumentation-pymongo/pyproject.toml

-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ dependencies = [
3333
instruments = [
3434
"pymongo >= 3.1, < 5.0",
3535
]
36-
test = [
37-
"opentelemetry-instrumentation-pymongo[instruments]",
38-
"opentelemetry-test-utils == 0.45b0.dev",
39-
]
4036

4137
[project.entry-points.opentelemetry_instrumentor]
4238
pymongo = "opentelemetry.instrumentation.pymongo:PymongoInstrumentor"
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+
dnspython==2.6.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+
pymongo==4.6.2
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-pymongo

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ commands_pre =
370370

371371
pymemcache-{135,200,300,342,400}: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-pymemcache[test]
372372

373-
pymongo: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-pymongo[test]
373+
pymongo: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-pymongo/test-requirements.txt
374374

375375
psycopg: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi {toxinidir}/instrumentation/opentelemetry-instrumentation-psycopg[test]
376376

@@ -573,7 +573,7 @@ commands_pre =
573573
# prerequisite: follow the instructions here https://github.com/PyMySQL/mysqlclient#install
574574
# for your OS to install the required dependencies
575575
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-mysqlclient[test]
576-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-pymongo[test]
576+
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-pymongo/test-requirements.txt
577577
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-elasticsearch[test]
578578
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncpg[test]
579579
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-tornado[test]

0 commit comments

Comments
 (0)