tox-uv icon indicating copy to clipboard operation
tox-uv copied to clipboard

Enable discovery for --discover flag

Open mneumei opened this issue 1 year ago • 4 comments

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 avatar Feb 06 '25 12:02 mneumei

What's the UV solution to something like this?

gaborbernat avatar Feb 06 '25 16:02 gaborbernat

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

mneumei avatar Feb 07 '25 05:02 mneumei

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?

gaborbernat avatar Feb 07 '25 06:02 gaborbernat

https://github.com/astral-sh/uv/issues/11308 Created this issue

mneumei avatar Feb 07 '25 07:02 mneumei

Upstream https://github.com/astral-sh/uv/issues/9506 - we can probably close it on our side.

ssbarnea avatar Jun 20 '25 10:06 ssbarnea