Skip to content

Commit 51cb8b7

Browse files
committed
Remove [test] package from pymysql instrumentation
Fixes #2213
1 parent 1e0b11f commit 51cb8b7

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

instrumentation/opentelemetry-instrumentation-pymysql/pyproject.toml

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

4137
[project.entry-points.opentelemetry_instrumentor]
4238
pymysql = "opentelemetry.instrumentation.pymysql:PyMySQLInstrumentor"
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+
packaging==23.2
7+
pluggy==1.4.0
8+
py==1.11.0
9+
py-cpuinfo==9.0.0
10+
PyMySQL==1.1.0
11+
pytest==7.1.3
12+
pytest-benchmark==4.0.0
13+
tomli==2.0.1
14+
typing_extensions==4.9.0
15+
wrapt==1.16.0
16+
zipp==3.17.0
17+
-e opentelemetry-instrumentation
18+
-e instrumentation/opentelemetry-instrumentation-dbapi
19+
-e instrumentation/opentelemetry-instrumentation-pymysql

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ commands_pre =
376376

377377
psycopg2: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi {toxinidir}/instrumentation/opentelemetry-instrumentation-psycopg2[test]
378378

379-
pymysql: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi {toxinidir}/instrumentation/opentelemetry-instrumentation-pymysql[test]
379+
pymysql: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-pymysql/test-requirements.txt
380380

381381
pyramid: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-pyramid[test]
382382

@@ -569,7 +569,7 @@ commands_pre =
569569
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-requests[test]
570570
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-urllib[test]
571571
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-urllib3[test]
572-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-pymysql[test]
572+
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-pymysql/test-requirements.txt
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]

0 commit comments

Comments
 (0)