astral-sh / uv

An extremely fast Python package and project manager, written in Rust.
https://docs.astral.sh/uv
Apache License 2.0
20.5k stars 605 forks source link

Support reading Python versions from `tool.uv` #4359

Open zanieb opened 3 months ago

zanieb commented 3 months ago

https://github.com/astral-sh/uv/pull/4335 adds support for Python version files, but we should also support a section in the pyproject.toml with more structured data.

TommasoAmici commented 4 weeks ago

for projects with multiple languages/tools, it's possible to have the python version in a .tool-versions file which is very similar in spirit to .python-versions, I don't think uv currently supports this and I can't find an existing issue. I suppose this is more of a feature request, though.

e.g.: https://asdf-vm.com/manage/configuration.html#tool-versions https://mise.jdx.dev/configuration.html#tool-versions

zanieb commented 4 weeks ago

@TommasoAmici would you mind opening a dedicated issue for supporting that?

TommasoAmici commented 4 weeks ago

sure! https://github.com/astral-sh/uv/issues/6574