Skip to content

Commit 72490ea

Browse files
authored
Fix uv setup when using tox (#3282)
* Update core_contrib_test_0.yml * add tox-uv.toml to ignore sources Signed-off-by: emdneto <[email protected]> * revert workflows change Signed-off-by: emdneto <[email protected]> * add aws xray propagator to show it works Signed-off-by: emdneto <[email protected]> * add genai Signed-off-by: emdneto <[email protected]> --------- Signed-off-by: emdneto <[email protected]>
1 parent 638c57f commit 72490ea

File tree

4 files changed

+800
-32
lines changed

4 files changed

+800
-32
lines changed

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ dependencies = [
6060
"opentelemetry-instrumentation-urllib3[instruments]",
6161
"opentelemetry-instrumentation-wsgi",
6262
"opentelemetry-propagator-ot-trace",
63+
"opentelemetry-propagator-aws-xray",
6364
"opentelemetry-util-http",
65+
"opentelemetry-instrumentation-vertexai[instruments]",
66+
"opentelemetry-instrumentation-openai-v2[instruments]",
6467
]
6568

6669
# https://docs.astral.sh/uv/reference/settings/
@@ -126,15 +129,19 @@ opentelemetry-instrumentation-urllib = { workspace = true }
126129
opentelemetry-instrumentation-urllib3 = { workspace = true }
127130
opentelemetry-instrumentation-wsgi = { workspace = true }
128131
opentelemetry-propagator-ot-trace = { workspace = true }
132+
opentelemetry-propagator-aws-xray = { workspace = true }
129133
opentelemetry-util-http = { workspace = true }
134+
opentelemetry-instrumentation-vertexai = { workspace = true }
135+
opentelemetry-instrumentation-openai-v2 = { workspace = true }
130136

131137
# https://docs.astral.sh/uv/reference/settings/#workspace
132138
[tool.uv.workspace]
133139
members = [
134140
"instrumentation/*",
141+
"instrumentation-genai/*",
135142
"exporter/*",
136143
"opentelemetry-instrumentation",
137-
"propagator/opentelemetry-propagator-ot-trace",
144+
"propagator/*",
138145
"util/opentelemetry-util-http",
139146
]
140147

tox-uv.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://docs.astral.sh/uv/reference/settings/#pip_no-sources
2+
[pip]
3+
no-sources = true

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,7 @@ setenv =
703703
; i.e: CORE_REPO_SHA=dde62cebffe519c35875af6d06fae053b3be65ec tox -e <env to test>
704704
CORE_REPO_SHA={env:CORE_REPO_SHA:main}
705705
CORE_REPO=git+https://github.com/open-telemetry/opentelemetry-python.git@{env:CORE_REPO_SHA}
706+
UV_CONFIG_FILE={toxinidir}/tox-uv.toml
706707

707708
commands_pre =
708709
; In order to get a health coverage report,

0 commit comments

Comments
 (0)