Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix uv setup when using tox #3282

Merged
merged 8 commits into from
Feb 21, 2025
Merged

Fix uv setup when using tox #3282

merged 8 commits into from
Feb 21, 2025

Conversation

emdneto
Copy link
Member

@emdneto emdneto commented Feb 21, 2025

Since we are using tox-uv, it is reading the uv configuration under pyproject.toml for sources and workspaces (as expected), and this is causing some tests to fail because uv and tox deps are conflicting (e.g., tox is installing opentelemetry-api@CORE_REPO_SHA and uv is telling to install opentelemetry-api@main. I explained a bit about that behavior here

This change is to make tox ignore whatever is defined in [tool.uv.sources] configuration

Note: I tried UV_NO_CONFIG env var but didn't work because workspaces/sources are related to pyproject scope

PR in -core to show it works for cross-reference SHA: open-telemetry/opentelemetry-python#4445

@emdneto emdneto requested a review from a team as a code owner February 21, 2025 03:16
@emdneto emdneto added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Feb 21, 2025
@emdneto emdneto changed the title Update core_contrib_test_0.yml Fix uv setup when using tox Feb 21, 2025
Copy link
Member

@aabmass aabmass left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Signed-off-by: emdneto <[email protected]>
@xrmx xrmx enabled auto-merge (squash) February 21, 2025 16:14
@xrmx xrmx merged commit 72490ea into open-telemetry:main Feb 21, 2025
694 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants