astral-sh / uv

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

Support `.tool-versions` as an alternative to `.python-versions` #6574

Open TommasoAmici opened 2 months ago

TommasoAmici commented 2 months 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, but allows defining all versions in a centralized configuration file. It'd be nice if uv supported that.

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

charliermarsh commented 2 months ago

This generally makes sense to me (though the syntax is more flexible, e.g., supports sub and stuff, so it's not totally trivial).