From 6a2fcfcbd486bd47c2b4b5e1a7dd055eb91d8a61 Mon Sep 17 00:00:00 2001 From: Diego Hurtado Date: Fri, 1 Mar 2024 17:25:56 -0600 Subject: [PATCH] Remove [test] package from opentelemetry-exporter-otlp-proto-http Fixes #3723 --- .../pyproject.toml | 5 ---- .../test-requirements-0.txt | 28 +++++++++++++++++++ .../test-requirements-1.txt | 28 +++++++++++++++++++ tox.ini | 7 ++--- 4 files changed, 59 insertions(+), 9 deletions(-) create mode 100644 exporter/opentelemetry-exporter-otlp-proto-http/test-requirements-0.txt create mode 100644 exporter/opentelemetry-exporter-otlp-proto-http/test-requirements-1.txt diff --git a/exporter/opentelemetry-exporter-otlp-proto-http/pyproject.toml b/exporter/opentelemetry-exporter-otlp-proto-http/pyproject.toml index 95a613f6ef1..77a3bcb95b8 100644 --- a/exporter/opentelemetry-exporter-otlp-proto-http/pyproject.toml +++ b/exporter/opentelemetry-exporter-otlp-proto-http/pyproject.toml @@ -33,11 +33,6 @@ dependencies = [ "requests ~= 2.7", ] -[project.optional-dependencies] -test = [ - "responses >= 0.22.0, < 0.25", -] - [project.entry-points.opentelemetry_traces_exporter] otlp_proto_http = "opentelemetry.exporter.otlp.proto.http.trace_exporter:OTLPSpanExporter" diff --git a/exporter/opentelemetry-exporter-otlp-proto-http/test-requirements-0.txt b/exporter/opentelemetry-exporter-otlp-proto-http/test-requirements-0.txt new file mode 100644 index 00000000000..71485a6a23c --- /dev/null +++ b/exporter/opentelemetry-exporter-otlp-proto-http/test-requirements-0.txt @@ -0,0 +1,28 @@ +asgiref==3.7.2 +attrs==23.2.0 +certifi==2024.2.2 +charset-normalizer==3.3.2 +Deprecated==1.2.14 +flaky==3.7.0 +googleapis-common-protos==1.62.0 +idna==3.6 +importlib-metadata==6.11.0 +iniconfig==2.0.0 +packaging==23.2 +pluggy==1.4.0 +protobuf==3.19.6 +py==1.11.0 +py-cpuinfo==9.0.0 +pytest==7.1.3 +pytest-benchmark==4.0.0 +PyYAML==6.0.1 +requests==2.31.0 +responses==0.24.1 +tomli==2.0.1 +typing_extensions==4.10.0 +urllib3==2.2.1 +wrapt==1.16.0 +zipp==3.17.0 +-e opentelemetry-proto +-e exporter/opentelemetry-exporter-otlp-proto-common +-e exporter/opentelemetry-exporter-otlp-proto-http diff --git a/exporter/opentelemetry-exporter-otlp-proto-http/test-requirements-1.txt b/exporter/opentelemetry-exporter-otlp-proto-http/test-requirements-1.txt new file mode 100644 index 00000000000..e37adead11e --- /dev/null +++ b/exporter/opentelemetry-exporter-otlp-proto-http/test-requirements-1.txt @@ -0,0 +1,28 @@ +asgiref==3.7.2 +attrs==23.2.0 +certifi==2024.2.2 +charset-normalizer==3.3.2 +Deprecated==1.2.14 +flaky==3.7.0 +googleapis-common-protos==1.62.0 +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 +PyYAML==6.0.1 +requests==2.31.0 +responses==0.24.1 +tomli==2.0.1 +typing_extensions==4.10.0 +urllib3==2.2.1 +wrapt==1.16.0 +zipp==3.17.0 +-e opentelemetry-proto +-e exporter/opentelemetry-exporter-otlp-proto-common +-e exporter/opentelemetry-exporter-otlp-proto-http diff --git a/tox.ini b/tox.ini index 3d688944eba..14e65137a25 100644 --- a/tox.ini +++ b/tox.ini @@ -130,9 +130,8 @@ commands_pre = exporter-otlp-proto-grpc: pip install {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-common exporter-otlp-proto-grpc: pip install {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-grpc - exporter-otlp-proto-http: pip install {toxinidir}/opentelemetry-proto - exporter-otlp-proto-http: pip install {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-common - exporter-otlp-proto-http: pip install {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-http[test] + proto3-opentelemetry-exporter-otlp-proto-http: pip install -r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-http/test-requirements-0.txt + proto4-opentelemetry-exporter-otlp-proto-http: pip install -r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-http/test-requirements-1.txt opentracing-shim: pip install {toxinidir}/opentelemetry-sdk opentracing-shim: pip install {toxinidir}/shim/opentelemetry-opentracing-shim @@ -223,7 +222,7 @@ commands_pre = python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-opencensus[test] python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-common[test] 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] + pip install -r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-http/test-requirements-1.txt python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-otlp[test] python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-prometheus[test] python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-zipkin-json[test]