diff --git a/tests/opentelemetry-test-utils/test-requirements-constraints.txt b/tests/opentelemetry-test-utils/test-requirements-constraints.txt new file mode 100644 index 0000000000..53e085ae7a --- /dev/null +++ b/tests/opentelemetry-test-utils/test-requirements-constraints.txt @@ -0,0 +1,5 @@ +# these are required for weaver integration tests, we're running that only on linux / CPython +# because of lack of support for gRPC on Windows in some cases. +opentelemetry-proto ; sys_platform != 'win32' and platform_python_implementation != 'PyPy' +opentelemetry-exporter-otlp-proto-common ; sys_platform != 'win32' and platform_python_implementation != 'PyPy' +opentelemetry-exporter-otlp-proto-grpc ; sys_platform != 'win32' and platform_python_implementation != 'PyPy' diff --git a/tests/opentelemetry-test-utils/test-requirements.txt b/tests/opentelemetry-test-utils/test-requirements.txt index 6b4dbcec04..246399549e 100644 --- a/tests/opentelemetry-test-utils/test-requirements.txt +++ b/tests/opentelemetry-test-utils/test-requirements.txt @@ -15,7 +15,6 @@ zipp==3.19.2 -e tests/opentelemetry-test-utils # these are required for weaver integration tests, we're running that only on linux / CPython # because of lack of support for gRPC on Windows in some cases. -# note: tox does not support PEP 508 markers on `-e` editable installs, so these are installed non-editable -./opentelemetry-proto ; sys_platform != 'win32' and platform_python_implementation != 'PyPy' -./exporter/opentelemetry-exporter-otlp-proto-common ; sys_platform != 'win32' and platform_python_implementation != 'PyPy' -./exporter/opentelemetry-exporter-otlp-proto-grpc ; sys_platform != 'win32' and platform_python_implementation != 'PyPy' +-e opentelemetry-proto +-e exporter/opentelemetry-exporter-otlp-proto-common +-e exporter/opentelemetry-exporter-otlp-proto-grpc diff --git a/tox.ini b/tox.ini index d1c5aff8c9..fe7c30ed0a 100644 --- a/tox.ini +++ b/tox.ini @@ -122,6 +122,7 @@ deps = semantic-conventions: -r {toxinidir}/opentelemetry-semantic-conventions/test-requirements.txt + test-utils: -c {toxinidir}/tests/opentelemetry-test-utils/test-requirements-constraints.txt test-utils: -r {toxinidir}/tests/opentelemetry-test-utils/test-requirements.txt opentelemetry-proto-gen-oldest: -r {toxinidir}/opentelemetry-proto/test-requirements.oldest.txt