From 1b39f8b64af7e8ed252929c16103a27235319162 Mon Sep 17 00:00:00 2001 From: Diego Hurtado Date: Tue, 12 Mar 2024 15:28:59 -0600 Subject: [PATCH] Remove [test] package from opentelemetry-exporter-zipkin Fixes #3720 --- .../pyproject.toml | 3 --- .../test-requirements.txt | 22 +++++++++++++++++++ tox.ini | 6 ++--- 3 files changed, 24 insertions(+), 7 deletions(-) create mode 100644 exporter/opentelemetry-exporter-zipkin/test-requirements.txt diff --git a/exporter/opentelemetry-exporter-zipkin/pyproject.toml b/exporter/opentelemetry-exporter-zipkin/pyproject.toml index 5710158de77..2d22ea4f24f 100644 --- a/exporter/opentelemetry-exporter-zipkin/pyproject.toml +++ b/exporter/opentelemetry-exporter-zipkin/pyproject.toml @@ -29,9 +29,6 @@ dependencies = [ "opentelemetry-exporter-zipkin-proto-http == 1.24.0.dev", ] -[project.optional-dependencies] -test = [] - [project.entry-points.opentelemetry_traces_exporter] zipkin = "opentelemetry.exporter.zipkin.proto.http:ZipkinExporter" diff --git a/exporter/opentelemetry-exporter-zipkin/test-requirements.txt b/exporter/opentelemetry-exporter-zipkin/test-requirements.txt new file mode 100644 index 00000000000..b859e401d5c --- /dev/null +++ b/exporter/opentelemetry-exporter-zipkin/test-requirements.txt @@ -0,0 +1,22 @@ +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 +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 exporter/opentelemetry-exporter-zipkin-json +-e exporter/opentelemetry-exporter-zipkin-proto-http +-e opentelemetry-sdk +-e opentelemetry-semantic-conventions +-e exporter/opentelemetry-exporter-zipkin diff --git a/tox.ini b/tox.ini index 3d688944eba..f61483e1833 100644 --- a/tox.ini +++ b/tox.ini @@ -142,9 +142,7 @@ commands_pre = exporter-prometheus: pip install {toxinidir}/exporter/opentelemetry-exporter-prometheus - exporter-zipkin-combined: pip install {toxinidir}/exporter/opentelemetry-exporter-zipkin-json - exporter-zipkin-combined: pip install {toxinidir}/exporter/opentelemetry-exporter-zipkin-proto-http - exporter-zipkin-combined: pip install {toxinidir}/exporter/opentelemetry-exporter-zipkin + exporter-zipkin-combined: pip install -r {toxinidir}/exporter/opentelemetry-exporter-zipkin/test-requirements.txt exporter-zipkin-proto-http: pip install {toxinidir}/exporter/opentelemetry-exporter-zipkin-json exporter-zipkin-proto-http: pip install {toxinidir}/exporter/opentelemetry-exporter-zipkin-proto-http @@ -228,7 +226,7 @@ commands_pre = python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-prometheus[test] 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] + pip install -r {toxinidir}/exporter/opentelemetry-exporter-zipkin/test-requirements.txt python -m pip install -e {toxinidir}/propagator/opentelemetry-propagator-b3[test] python -m pip install -e {toxinidir}/propagator/opentelemetry-propagator-jaeger[test] # Pin protobuf version due to lint failing on v3.20.0