Current Behavior
The following exception is raised when a global uv installation is not available.
ValueError: No backends present, looked for ['uv'].
|
msg = f"No backends present, looked for {backends!r}." |
The underlying cause seems to be shutil.which("uv") not being able to find uv installed alongside nox.
|
"uv": shutil.which("uv") is not None, |
Expected Behavior
Installing nox[uv] is sufficient to use uv as a backend, without relying on a global uv installation.
Steps To Reproduce
- Install
nox[uv]
- Configure
uv as a venv backend, for example by setting nox.options.default_venv_backend = "uv" in the Noxfile
- Run any session
Environment
- OS: macOS
- Python: 3.12
- Nox: 2024.3.2
Anything else?
No response
Current Behavior
The following exception is raised when a global
uvinstallation is not available.nox/nox/sessions.py
Line 790 in 4c8e891
The underlying cause seems to be
shutil.which("uv")not being able to find uv installed alongside nox.nox/nox/virtualenv.py
Line 563 in 4c8e891
Expected Behavior
Installing
nox[uv]is sufficient to use uv as a backend, without relying on a global uv installation.Steps To Reproduce
nox[uv]uvas a venv backend, for example by settingnox.options.default_venv_backend = "uv"in the NoxfileEnvironment
Anything else?
No response