From de95b80bbcab397573f95da9b16d974fb1944532 Mon Sep 17 00:00:00 2001 From: Diego Hurtado Date: Wed, 28 Feb 2024 19:38:53 -0600 Subject: [PATCH] Remove [test] package from exporter-prometheus-remote-write Fixes #2233 --- .../pyproject.toml | 3 --- .../test-requirements.txt | 24 +++++++++++++++++++ tox.ini | 2 +- 3 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 exporter/opentelemetry-exporter-prometheus-remote-write/test-requirements.txt diff --git a/exporter/opentelemetry-exporter-prometheus-remote-write/pyproject.toml b/exporter/opentelemetry-exporter-prometheus-remote-write/pyproject.toml index a6dea9a9de..b0006a0682 100644 --- a/exporter/opentelemetry-exporter-prometheus-remote-write/pyproject.toml +++ b/exporter/opentelemetry-exporter-prometheus-remote-write/pyproject.toml @@ -31,9 +31,6 @@ dependencies = [ "python-snappy ~= 0.6", ] -[project.optional-dependencies] -test = [] - [project.urls] Homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/exporter/opentelemetry-exporter-prometheus-remote-write" diff --git a/exporter/opentelemetry-exporter-prometheus-remote-write/test-requirements.txt b/exporter/opentelemetry-exporter-prometheus-remote-write/test-requirements.txt new file mode 100644 index 0000000000..96877ead8a --- /dev/null +++ b/exporter/opentelemetry-exporter-prometheus-remote-write/test-requirements.txt @@ -0,0 +1,24 @@ +asgiref==3.7.2 +attrs==23.2.0 +certifi==2024.2.2 +charset-normalizer==3.3.2 +cramjam==2.8.1 +Deprecated==1.2.14 +idna==3.6 +importlib-metadata==6.11.0 +iniconfig==2.0.0 +packaging==23.2 +pluggy==1.4.0 +protobuf==4.25.3 +py==1.11.0 +py-cpuinfo==9.0.0 +pytest==7.1.3 +pytest-benchmark==4.0.0 +python-snappy==0.7.1 +requests==2.31.0 +tomli==2.0.1 +typing_extensions==4.10.0 +urllib3==2.2.1 +wrapt==1.16.0 +zipp==3.17.0 +-e ../../../exporter/opentelemetry-exporter-prometheus-remote-write diff --git a/tox.ini b/tox.ini index 820ac93816..8b74061824 100644 --- a/tox.ini +++ b/tox.ini @@ -468,7 +468,7 @@ commands_pre = richconsole: pip install flaky {toxinidir}/exporter/opentelemetry-exporter-richconsole[test] - prometheus: pip install {toxinidir}/exporter/opentelemetry-exporter-prometheus-remote-write[test] + prometheus: pip install -r {toxinidir}/exporter/opentelemetry-exporter-prometheus-remote-write/test-requirements.txt sklearn: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-sklearn[test]