diff --git a/exporter/opentelemetry-exporter-prometheus/pyproject.toml b/exporter/opentelemetry-exporter-prometheus/pyproject.toml index 0f086924ec..3117ee6afb 100644 --- a/exporter/opentelemetry-exporter-prometheus/pyproject.toml +++ b/exporter/opentelemetry-exporter-prometheus/pyproject.toml @@ -30,9 +30,6 @@ dependencies = [ "prometheus_client >= 0.5.0, < 1.0.0", ] -[project.optional-dependencies] -test = [] - [project.entry-points.opentelemetry_metrics_exporter] prometheus = "opentelemetry.exporter.prometheus:_AutoPrometheusMetricReader" diff --git a/exporter/opentelemetry-exporter-prometheus/test-requirements.txt b/exporter/opentelemetry-exporter-prometheus/test-requirements.txt new file mode 100644 index 0000000000..2b3dd0f9f0 --- /dev/null +++ b/exporter/opentelemetry-exporter-prometheus/test-requirements.txt @@ -0,0 +1,21 @@ +asgiref==3.7.2 +attrs==23.2.0 +Deprecated==1.2.14 +flaky==3.7.0 +importlib-metadata==6.11.0 +iniconfig==2.0.0 +packaging==23.2 +pluggy==1.4.0 +prometheus_client==0.20.0 +py==1.11.0 +py-cpuinfo==9.0.0 +pytest==7.1.3 +pytest-benchmark==4.0.0 +tomli==2.0.1 +typing_extensions==4.10.0 +wrapt==1.16.0 +zipp==3.17.0 +-e opentelemetry-api +-e opentelemetry-sdk +-e opentelemetry-semantic-conventions +-e exporter/opentelemetry-exporter-prometheus diff --git a/tox.ini b/tox.ini index 3d688944eb..fc1c0ae07a 100644 --- a/tox.ini +++ b/tox.ini @@ -140,7 +140,7 @@ commands_pre = opencensus-shim: pip install {toxinidir}/opentelemetry-sdk opencensus-shim: pip install {toxinidir}/shim/opentelemetry-opencensus-shim[test] - exporter-prometheus: pip install {toxinidir}/exporter/opentelemetry-exporter-prometheus + exporter-prometheus: pip install -r {toxinidir}/exporter/opentelemetry-exporter-prometheus/test-requirements.txt exporter-zipkin-combined: pip install {toxinidir}/exporter/opentelemetry-exporter-zipkin-json exporter-zipkin-combined: pip install {toxinidir}/exporter/opentelemetry-exporter-zipkin-proto-http @@ -225,7 +225,7 @@ commands_pre = python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-grpc[test] python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-http[test] python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-otlp[test] - python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-prometheus[test] + pip install -r {toxinidir}/exporter/opentelemetry-exporter-prometheus/test-requirements.txt python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-zipkin-json[test] python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-zipkin-proto-http[test] python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-zipkin[test]