From 41cf7885cf7ebcbb782d4225696fc622db21fb9b Mon Sep 17 00:00:00 2001 From: Diego Hurtado Date: Thu, 7 Mar 2024 12:29:30 -0600 Subject: [PATCH] Remove [test] package from opentelemetry-sdk (#3735) Fixes #3717 Co-authored-by: Leighton Chen --- opentelemetry-sdk/pyproject.toml | 3 --- opentelemetry-sdk/test-requirements.txt | 19 +++++++++++++++++++ tox.ini | 5 ++++- 3 files changed, 23 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..ed03f730556 --- /dev/null +++ b/opentelemetry-sdk/test-requirements.txt @@ -0,0 +1,19 @@ +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 opentelemetry-semantic-conventions +-e opentelemetry-sdk diff --git a/tox.ini b/tox.ini index 25343771aee..3d688944eba 100644 --- a/tox.ini +++ b/tox.ini @@ -99,6 +99,9 @@ setenv = commands_pre = ; Install without -e to test the actual installation py3{8,9,10,11}: python -m pip install -U pip setuptools wheel + + sdk: pip install -r {toxinidir}/opentelemetry-sdk/test-requirements.txt + ; 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. opentelemetry: pip install {toxinidir}/opentelemetry-api {toxinidir}/opentelemetry-semantic-conventions {toxinidir}/opentelemetry-sdk {toxinidir}/tests/opentelemetry-test-utils @@ -212,7 +215,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] + pip install -r {toxinidir}/opentelemetry-sdk/test-requirements.txt 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]