diff --git a/propagator/opentelemetry-propagator-b3/pyproject.toml b/propagator/opentelemetry-propagator-b3/pyproject.toml index 9e17f4c8d3e..736006e74e4 100644 --- a/propagator/opentelemetry-propagator-b3/pyproject.toml +++ b/propagator/opentelemetry-propagator-b3/pyproject.toml @@ -29,9 +29,6 @@ dependencies = [ "opentelemetry-api ~= 1.3", ] -[project.optional-dependencies] -test = [] - [project.entry-points.opentelemetry_propagator] b3 = "opentelemetry.propagators.b3:B3SingleFormat" b3multi = "opentelemetry.propagators.b3:B3MultiFormat" diff --git a/propagator/opentelemetry-propagator-b3/test-requirements.txt b/propagator/opentelemetry-propagator-b3/test-requirements.txt new file mode 100644 index 00000000000..366dfca0d89 --- /dev/null +++ b/propagator/opentelemetry-propagator-b3/test-requirements.txt @@ -0,0 +1,18 @@ +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 propagator/opentelemetry-propagator-b3 diff --git a/tox.ini b/tox.ini index 3d688944eba..2dae2d3163b 100644 --- a/tox.ini +++ b/tox.ini @@ -151,7 +151,7 @@ commands_pre = exporter-zipkin-json: pip install {toxinidir}/exporter/opentelemetry-exporter-zipkin-json - b3: pip install {toxinidir}/propagator/opentelemetry-propagator-b3 + propagator-b3: pip install -r {toxinidir}/propagator/opentelemetry-propagator-b3/test-requirements.txt propagator-jaeger: pip install {toxinidir}/propagator/opentelemetry-propagator-jaeger @@ -229,7 +229,7 @@ commands_pre = 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] - python -m pip install -e {toxinidir}/propagator/opentelemetry-propagator-b3[test] + pip install -r {toxinidir}/propagator/opentelemetry-propagator-b3/test-requirements.txt python -m pip install -e {toxinidir}/propagator/opentelemetry-propagator-jaeger[test] # Pin protobuf version due to lint failing on v3.20.0 # https://github.com/protocolbuffers/protobuf/issues/9730