Skip to content

Commit a99dc2c

Browse files
committed
Remove [test] package from system-metrics instrumentation
Fixes #2222
1 parent 565e78d commit a99dc2c

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

instrumentation/opentelemetry-instrumentation-system-metrics/pyproject.toml

+1-4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ classifiers = [
2424
"Programming Language :: Python :: 3.11",
2525
]
2626
dependencies = [
27+
"opentelemetry-instrumentation == 0.45b0.dev",
2728
"opentelemetry-api ~= 1.11",
2829
"opentelemetry-sdk ~= 1.11",
2930
"psutil ~= 5.9",
@@ -33,10 +34,6 @@ dependencies = [
3334
instruments = [
3435
"psutil >= 5",
3536
]
36-
test = [
37-
"opentelemetry-instrumentation-system-metrics[instruments]",
38-
"opentelemetry-test-utils == 0.45b0.dev",
39-
]
4037

4138
[project.entry-points.opentelemetry_instrumentor]
4239
system_metrics = "opentelemetry.instrumentation.system_metrics:SystemMetricsInstrumentor"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
psutil==5.9.8
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-system-metrics

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ commands_pre =
390390

391391
starlette: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-starlette[test]
392392

393-
system-metrics: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-system-metrics[test]
393+
system-metrics: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-system-metrics/test-requirements.txt
394394

395395
tornado: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-tornado[test]
396396

@@ -581,7 +581,7 @@ commands_pre =
581581
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-mysql[test]
582582
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-httpx[test]
583583
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-aws-lambda[test]
584-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-system-metrics[test]
584+
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-system-metrics/test-requirements.txt
585585
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncio[test]
586586
python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-richconsole[test]
587587
# requires snappy headers to be available on the system

0 commit comments

Comments
 (0)