Skip to content

Commit b84d779

Browse files
authored
Remove [test] package from pymongo instrumentation (#2269)
Fixes #2212
1 parent ca8daea commit b84d779

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
@@ -392,7 +392,7 @@ commands_pre =
392392
pymemcache-3: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-pymemcache/test-requirements-3.txt
393393
pymemcache-4: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-pymemcache/test-requirements-4.txt
394394

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

397397
psycopg: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi {toxinidir}/instrumentation/opentelemetry-instrumentation-psycopg[test]
398398

@@ -603,10 +603,10 @@ commands_pre =
603603
# prerequisite: follow the instructions here https://github.com/PyMySQL/mysqlclient#install
604604
# for your OS to install the required dependencies
605605
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-mysqlclient/test-requirements.txt
606-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-pymongo[test]
607606
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-elasticsearch/test-requirements-2.txt
608607
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-tornado/test-requirements.txt
609608
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncpg/test-requirements.txt
609+
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-pymongo/test-requirements.txt
610610
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-tortoiseorm[test]
611611
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-httpx/test-requirements-1.txt
612612
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-aws-lambda/test-requirements.txt

0 commit comments

Comments
 (0)