You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to use the new cool kid of package management in my nox sessions , namely uv.
I run things as simple as this:
@nox.session(reuse_venv=True, venv_backend="uv")deftest(session):
"""Run the selected tests and report coverage in html."""session.install(".[test]")
test_files=session.posargsor ["tests"]
session.run("pytest", "--cov", "--cov-report=html", *test_files)
from my package and recently I was trying to handle a more complicated prblem of error catching. WHataver the changes I was making the result of my test was never changing. After some time I decided to remove the "uv" backend and everything started to work as expected. My finding is that session.install(".[test]") is not honored by the uv backend and the lib I'm working on is never reinstalled which makes it unusable.
Expected Behavior
I would like the session.install(".") to be honored as per pip i.e. reinstalling the local package systematically.
The text was updated successfully, but these errors were encountered:
12rambau
changed the title
<title> The uv cache is preventing me from updating the environment with my lastest development
The uv cache is preventing me from updating the environment with my lastest development
Jan 27, 2025
That's a bug/feature with uv. Here's the warning copied from our docs:
Warning
The uv backend does not reinstall, even for local packages, so you need to include --reinstall-package <pkg-name> (uv-only) if reusing the environment.
Longer term, maybe we could introduce some sort of command like .install_package(extras=["test"], editable=False) that adds this for uv.
Though I'm not sure how we can guess the package name reliably...
Current Behavior
I tried to use the new cool kid of package management in my nox sessions , namely
uv
.I run things as simple as this:
from my package and recently I was trying to handle a more complicated prblem of error catching. WHataver the changes I was making the result of my test was never changing. After some time I decided to remove the "uv" backend and everything started to work as expected. My finding is that
session.install(".[test]")
is not honored by the uv backend and the lib I'm working on is never reinstalled which makes it unusable.Expected Behavior
I would like the
session.install(".")
to be honored as per pip i.e. reinstalling the local package systematically.The text was updated successfully, but these errors were encountered: