From 3ca5d21235daaf65e2478a997e5c10567c6b6ab3 Mon Sep 17 00:00:00 2001 From: Diego Hurtado Date: Sat, 17 Feb 2024 12:57:22 -0600 Subject: [PATCH] Remove [test] package from aws-lambda instrumentation Fixes #2190 --- .../opentelemetry-instrumentation-aws-lambda/pyproject.toml | 3 --- .../test-requirements.txt | 2 ++ tox.ini | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 instrumentation/opentelemetry-instrumentation-aws-lambda/test-requirements.txt diff --git a/instrumentation/opentelemetry-instrumentation-aws-lambda/pyproject.toml b/instrumentation/opentelemetry-instrumentation-aws-lambda/pyproject.toml index 13729c8b56..2b6931b1a9 100644 --- a/instrumentation/opentelemetry-instrumentation-aws-lambda/pyproject.toml +++ b/instrumentation/opentelemetry-instrumentation-aws-lambda/pyproject.toml @@ -28,9 +28,6 @@ dependencies = [ [project.optional-dependencies] instruments = [] -test = [ - "opentelemetry-test-utils == 0.44b0.dev", -] [project.urls] Homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-aws-lambda" diff --git a/instrumentation/opentelemetry-instrumentation-aws-lambda/test-requirements.txt b/instrumentation/opentelemetry-instrumentation-aws-lambda/test-requirements.txt new file mode 100644 index 0000000000..e532518bdf --- /dev/null +++ b/instrumentation/opentelemetry-instrumentation-aws-lambda/test-requirements.txt @@ -0,0 +1,2 @@ +-e ../../../opentelemetry-instrumentation +-e ../../../instrumentation/opentelemetry-instrumentation-aws-lambda diff --git a/tox.ini b/tox.ini index 74f785974d..e804725f29 100644 --- a/tox.ini +++ b/tox.ini @@ -392,7 +392,7 @@ commands_pre = asyncpg: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncpg[test] - aws-lambda: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-aws-lambda[test] + aws-lambda: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-aws-lambda/test-requirements.txt boto: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-botocore[test] boto: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-boto[test] @@ -575,7 +575,7 @@ commands_pre = python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-tortoiseorm[test] python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-mysql[test] python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-httpx[test] - python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-aws-lambda[test] + python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-aws-lambda python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-system-metrics[test] python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncio[test] python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-richconsole[test]