Fix uv setup when using tox (#3282)

* Update core_contrib_test_0.yml

* add tox-uv.toml to ignore sources

Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>

* revert workflows change

Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>

* add aws xray propagator to show it works

Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>

* add genai

Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>

---------

Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
This commit is contained in:
Emídio Neto
2025-02-21 13:26:46 -03:00
committed by GitHub
parent 638c57f7a4
commit 72490eafcd
4 changed files with 800 additions and 32 deletions

View File

@ -60,7 +60,10 @@ dependencies = [
"opentelemetry-instrumentation-urllib3[instruments]",
"opentelemetry-instrumentation-wsgi",
"opentelemetry-propagator-ot-trace",
"opentelemetry-propagator-aws-xray",
"opentelemetry-util-http",
"opentelemetry-instrumentation-vertexai[instruments]",
"opentelemetry-instrumentation-openai-v2[instruments]",
]
# https://docs.astral.sh/uv/reference/settings/
@ -126,15 +129,19 @@ opentelemetry-instrumentation-urllib = { workspace = true }
opentelemetry-instrumentation-urllib3 = { workspace = true }
opentelemetry-instrumentation-wsgi = { workspace = true }
opentelemetry-propagator-ot-trace = { workspace = true }
opentelemetry-propagator-aws-xray = { workspace = true }
opentelemetry-util-http = { workspace = true }
opentelemetry-instrumentation-vertexai = { workspace = true }
opentelemetry-instrumentation-openai-v2 = { workspace = true }
# https://docs.astral.sh/uv/reference/settings/#workspace
[tool.uv.workspace]
members = [
"instrumentation/*",
"instrumentation-genai/*",
"exporter/*",
"opentelemetry-instrumentation",
"propagator/opentelemetry-propagator-ot-trace",
"propagator/*",
"util/opentelemetry-util-http",
]

3
tox-uv.toml Normal file
View File

@ -0,0 +1,3 @@
# https://docs.astral.sh/uv/reference/settings/#pip_no-sources
[pip]
no-sources = true

View File

@ -703,6 +703,7 @@ setenv =
; i.e: CORE_REPO_SHA=dde62cebffe519c35875af6d06fae053b3be65ec tox -e <env to test>
CORE_REPO_SHA={env:CORE_REPO_SHA:main}
CORE_REPO=git+https://github.com/open-telemetry/opentelemetry-python.git@{env:CORE_REPO_SHA}
UV_CONFIG_FILE={toxinidir}/tox-uv.toml
commands_pre =
; In order to get a health coverage report,

819
uv.lock generated

File diff suppressed because it is too large Load Diff