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

Enable discovery for --discover flag #170

Open
mneumei opened this issue Feb 6, 2025 · 4 comments
Open

Enable discovery for --discover flag #170

mneumei opened this issue Feb 6, 2025 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@mneumei
Copy link

mneumei commented Feb 6, 2025

What's the problem this feature will solve?

The current way we use tox is to run it with --discover and multiple versions of python that are preinstalled on the machine.

From what i see, i can not specify this with tox-uv, but have to rely on uv picking the right version from path.

As we use UV_PYTHON_DOWNLOADS=never, the result is not having tox runs for versions that are not on path.

Describe the solution you'd like

I´d like tox uv to still respect the --discover flag and use those python versions as well for discovery.

@mneumei mneumei added the enhancement New feature or request label Feb 6, 2025
@gaborbernat
Copy link
Member

What's the UV solution to something like this?

@gaborbernat gaborbernat added the help wanted Extra attention is needed label Feb 6, 2025
@mneumei
Copy link
Author

mneumei commented Feb 7, 2025

UV will either download (we cant do that), detect from path or you give it a single python version with --python
There is sadly no possibility to give it multiple paths and let it decide from there. But if the resolution already has been done, running each run of venv creation with --python would work

@gaborbernat
Copy link
Member

There is sadly no possibility to give it multiple paths and let it decide from there.

Can you raise that as an issue with them and see what they say?

@mneumei
Copy link
Author

mneumei commented Feb 7, 2025

astral-sh/uv#11308 Created this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants