wntrblm/nox

uv support doesn't work out of the box anymore

hynek opened this issue · 0 comments

Current Behavior

As of uv 0.2.28, packages that have dynamic metadata aren't automatically re-installed anymore.

That is very confusing, because what happens is that tests just run again old code.

Expected Behavior

I'm not sure Nox can fix it, but it should be clearly documented to either pass --reinstall-package=YOUR-PACKAGE or set tool.uv.reinstall-package in pyproject.toml (my preference, because it doesn't couple the noxfile to uv).

See also astral-sh/uv#5790

Steps To Reproduce

  1. check out stamina @ 4b7bd062712430a3fdd6d4dd77da76828ea20263 (ie before I fixed it)
  2. run nox and notice the stamina version in the pytest header
  3. add an XXX in any file and nox again – the tests will pass and version won't change – IF uv is 0.2.28 or newer

Environment

- OS: macOS
- Python: 3.12
- Nox: 2023.4.22

Anything else?

No response