Skip to content

Commit 0d93ae6

Browse files
committed
Remove [test] package from pymongo instrumentation
Fixes #2212
1 parent 1c21715 commit 0d93ae6

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
@@ -423,7 +423,7 @@ commands_pre =
423423

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

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

428428
psycopg2: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi {toxinidir}/instrumentation/opentelemetry-instrumentation-psycopg2[test]
429429

@@ -568,7 +568,7 @@ commands_pre =
568568
# prerequisite: follow the instructions here https://github.com/PyMySQL/mysqlclient#install
569569
# for your OS to install the required dependencies
570570
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-mysqlclient[test]
571-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-pymongo[test]
571+
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-pymongo
572572
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-elasticsearch[test]
573573
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncpg[test]
574574
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-tornado[test]

0 commit comments

Comments
 (0)