Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 651078f

Browse files
committedMar 6, 2024
Remove [test] package from mysql instrumentation
Fixes open-telemetry#2207
1 parent 8daa8ad commit 651078f

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed
 

‎instrumentation/opentelemetry-instrumentation-mysql/pyproject.toml

-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ dependencies = [
3333
instruments = [
3434
"mysql-connector-python ~= 8.0",
3535
]
36-
test = [
37-
"opentelemetry-instrumentation-mysql[instruments]",
38-
"opentelemetry-test-utils == 0.45b0.dev",
39-
]
4036

4137
[project.entry-points.opentelemetry_instrumentor]
4238
mysql = "opentelemetry.instrumentation.mysql:MySQLInstrumentor"
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+
mysql-connector-python==8.3.0
7+
packaging==23.2
8+
pluggy==1.4.0
9+
py==1.11.0
10+
py-cpuinfo==9.0.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-mysql

‎tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ commands_pre =
422422

423423
fastapi: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-fastapi[test]
424424

425-
mysql: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi {toxinidir}/instrumentation/opentelemetry-instrumentation-mysql[test]
425+
mysql: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-mysql/test-requirements.txt
426426

427427
mysqlclient: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi {toxinidir}/instrumentation/opentelemetry-instrumentation-mysqlclient[test]
428428

@@ -581,7 +581,7 @@ commands_pre =
581581
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncpg[test]
582582
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-tornado[test]
583583
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-tortoiseorm[test]
584-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-mysql[test]
584+
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-mysql/test-requirements.txt
585585
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-httpx[test]
586586
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-aws-lambda[test]
587587
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-system-metrics[test]

0 commit comments

Comments
 (0)
Please sign in to comment.