logoalt Hacker News

politelemonyesterday at 11:55 AM2 repliesview on HN

Doesn't it store the python version in the pyproject.toml though, is the python version file needed?


Replies

JimDabellyesterday at 12:07 PM

It’s not:

> uv will respect Python requirements defined in requires-python in the pyproject.toml file during project command invocations. The first Python version that is compatible with the requirement will be used, unless a version is otherwise requested, e.g., via a .python-version file or the --python flag.

https://docs.astral.sh/uv/concepts/python-versions/#project-...

show 1 reply