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

uv support doesn't work out of the box anymore #840

Open
hynek opened this issue Aug 6, 2024 · 0 comments
Open

uv support doesn't work out of the box anymore #840

hynek opened this issue Aug 6, 2024 · 0 comments
Labels

Comments

@hynek
Copy link
Contributor

hynek commented Aug 6, 2024

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

@hynek hynek added the bug label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant