Conversation
|
This doesn't feel right to me yet. You can already do: @nox.session(venv_backend="uv")
def test(session):
session.run_install("uv", "sync", "--inexact", "--frozen", "--all-extras",
env={"UV_PROJECT_ENVIRONMENT": session.virtualenv.location})
session.install("pytest")
session.run("pytest", "tests")Which is more explicit and more flexible - the UV_PROJECT_ENVIRONMENT is inconvenient, but I'm not sure it warrants a custom command - a recipe for this would be better for now, I thinl. The benefit of a custom command would be to provide the same API for multiple backends (which isn't here yet). If we had a plugin system (#848), and users could add support for Poetry and whatnot, that might be more interesting. Or maybe if we integrate with |
|
Thanks for your feedback. I start with However, I see your point and I think it's worth to wait for PEP 751. |
This is a draft how
uv synvcould be added tonox[uv].