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
{{ message }}
Repository navigation
Create the project .venv with the supported Python version #703
uv venv is called without a version, so a generated project can land on any interpreter uv finds. The project then claims >=3.12 but is not built with the version Nexy supports.
What we know
nexy/modules/cli/init/dependencies.py lines 138 to 145 creates the virtualenv with uv venv <path>.
The generated pyproject.toml files declare requires-python = ">=3.12".
New projects have no .python-version file.
Proposal
Pass the version from .python-version to uv venv as --python.
Write the same version into a .python-version file in the generated project.
Keep the offline path unchanged apart from the new version argument.
Acceptance
A test asserts the exact uv venv arguments.
A test asserts the content of the generated .python-version.
Activity