From bbf44f17daffc2b0ccf9e5fa4495603222acc54d Mon Sep 17 00:00:00 2001 From: Diego Hurtado Date: Wed, 28 Feb 2024 21:38:05 -0600 Subject: [PATCH] Remove [test] package from opentelemetry-sdk Fixes #3717 --- opentelemetry-sdk/pyproject.toml | 3 --- opentelemetry-sdk/test-requirements.txt | 17 +++++++++++++++++ tox.ini | 5 ++++- 3 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 opentelemetry-sdk/test-requirements.txt diff --git a/opentelemetry-sdk/pyproject.toml b/opentelemetry-sdk/pyproject.toml index a6319c70a20..e8718e2d679 100644 --- a/opentelemetry-sdk/pyproject.toml +++ b/opentelemetry-sdk/pyproject.toml @@ -30,9 +30,6 @@ dependencies = [ "typing-extensions >= 3.7.4", ] -[project.optional-dependencies] -test = [] - [project.entry-points.opentelemetry_environment_variables] sdk = "opentelemetry.sdk.environment_variables" diff --git a/opentelemetry-sdk/test-requirements.txt b/opentelemetry-sdk/test-requirements.txt new file mode 100644 index 00000000000..d3011d2c778 --- /dev/null +++ b/opentelemetry-sdk/test-requirements.txt @@ -0,0 +1,17 @@ +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-sdk diff --git a/tox.ini b/tox.ini index 1bd0c98226e..4d26f04d2d1 100644 --- a/tox.ini +++ b/tox.ini @@ -124,6 +124,9 @@ commands_pre = py3{8,9,10,11}: python -m pip install -U pip setuptools wheel ; Install common packages for all the tests. These are not needed in all the ; cases but it saves a lot of boilerplate in this file. + + sdk: pip install -r {toxinidir}/opentelemetry-sdk/test-requirements.txt + opentelemetry: pip install {toxinidir}/opentelemetry-api {toxinidir}/opentelemetry-semantic-conventions {toxinidir}/opentelemetry-sdk {toxinidir}/tests/opentelemetry-test-utils protobuf: pip install {toxinidir}/opentelemetry-proto @@ -214,7 +217,7 @@ deps = commands_pre = python -m pip install -e {toxinidir}/opentelemetry-api[test] python -m pip install -e {toxinidir}/opentelemetry-semantic-conventions[test] - python -m pip install -e {toxinidir}/opentelemetry-sdk[test] + python -m pip install -e {toxinidir}/opentelemetry-sdk python -m pip install -e {toxinidir}/opentelemetry-proto[test] python -m pip install -e {toxinidir}/tests/opentelemetry-test-utils[test] python -m pip install -e {toxinidir}/shim/opentelemetry-opentracing-shim[test]