Skip to content

Commit 34fbb33

Browse files
committed
Remove [test] package from opentelemetry-exporter-prometheus
Fixes open-telemetry#3725
1 parent 41cf788 commit 34fbb33

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

Diff for: exporter/opentelemetry-exporter-prometheus/pyproject.toml

-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ dependencies = [
3030
"prometheus_client >= 0.5.0, < 1.0.0",
3131
]
3232

33-
[project.optional-dependencies]
34-
test = []
35-
3633
[project.entry-points.opentelemetry_metrics_exporter]
3734
prometheus = "opentelemetry.exporter.prometheus:_AutoPrometheusMetricReader"
3835

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
asgiref==3.7.2
2+
attrs==23.2.0
3+
Deprecated==1.2.14
4+
flaky==3.7.0
5+
importlib-metadata==6.11.0
6+
iniconfig==2.0.0
7+
packaging==23.2
8+
pluggy==1.4.0
9+
prometheus_client==0.20.0
10+
py==1.11.0
11+
py-cpuinfo==9.0.0
12+
pytest==7.1.3
13+
pytest-benchmark==4.0.0
14+
tomli==2.0.1
15+
typing_extensions==4.10.0
16+
wrapt==1.16.0
17+
zipp==3.17.0
18+
-e opentelemetry-api
19+
-e opentelemetry-sdk
20+
-e opentelemetry-semantic-conventions
21+
-e exporter/opentelemetry-exporter-prometheus

Diff for: tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ commands_pre =
140140
opencensus-shim: pip install {toxinidir}/opentelemetry-sdk
141141
opencensus-shim: pip install {toxinidir}/shim/opentelemetry-opencensus-shim[test]
142142

143-
exporter-prometheus: pip install {toxinidir}/exporter/opentelemetry-exporter-prometheus
143+
exporter-prometheus: pip install -r {toxinidir}/exporter/opentelemetry-exporter-prometheus/test-requirements.txt
144144

145145
exporter-zipkin-combined: pip install {toxinidir}/exporter/opentelemetry-exporter-zipkin-json
146146
exporter-zipkin-combined: pip install {toxinidir}/exporter/opentelemetry-exporter-zipkin-proto-http
@@ -225,7 +225,7 @@ commands_pre =
225225
python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-grpc[test]
226226
python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-http[test]
227227
python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-otlp[test]
228-
python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-prometheus[test]
228+
pip install -r {toxinidir}/exporter/opentelemetry-exporter-prometheus/test-requirements.txt
229229
python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-zipkin-json[test]
230230
python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-zipkin-proto-http[test]
231231
python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-zipkin[test]

0 commit comments

Comments
 (0)