Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

How make tox-uv ignore pyproject.toml? #171

Closed
emdneto opened this issue Feb 6, 2025 · 1 comment
Closed

How make tox-uv ignore pyproject.toml? #171

emdneto opened this issue Feb 6, 2025 · 1 comment

Comments

@emdneto
Copy link

emdneto commented Feb 6, 2025

I have a root pyproject.toml with:

# https://docs.astral.sh/uv/reference/settings/
[tool.uv]
package = false # https://docs.astral.sh/uv/reference/settings/#package

# https://docs.astral.sh/uv/reference/settings/#sources
[tool.uv.sources]
opentelemetry-api = { git = "https://github.com/open-telemetry/opentelemetry-python", branch = "main", subdirectory = "opentelemetry-api" }
opentelemetry-sdk = { git = "https://github.com/open-telemetry/opentelemetry-python", branch = "main", subdirectory = "opentelemetry-sdk" }
opentelemetry-semantic-conventions = { git = "https://github.com/open-telemetry/opentelemetry-python", branch = "main", subdirectory = "opentelemetry-semantic-conventions" }
opentelemetry-test-utils = { git = "https://github.com/open-telemetry/opentelemetry-python", branch = "main", subdirectory = "tests/opentelemetry-test-utils" }

Right now, I want to use uv locally to have the dependencies on a venv and keep tox environments installing from pypi. how can I make uv not to consider the sources configuration under this file when installing packages and instead look at pypi?

related issue: open-telemetry/opentelemetry-python-contrib#3124

@gaborbernat
Copy link
Member

This is an uv question, not tox 🤔 tox-uv is only a shim, if uv has an environment variable to achieve this behaviour you can set that. Otherwise if has a CLI flag you can use https://github.com/tox-dev/tox-uv#uv_sync_flags.

@tox-dev tox-dev locked and limited conversation to collaborators Feb 6, 2025
@gaborbernat gaborbernat converted this issue into discussion #172 Feb 6, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants