Update docs on .python-version file (#7051)
## Summary Closes https://github.com/astral-sh/uv/issues/7027 * When displaying the file structure of a uv-managed project show the `.python-version` file which is now created by default. * Mention the purpose of the `.python-version` file in `Guides/Working on projects/Project structure` * In `Concepts/Python versions/Project python versions`, changed sentence about `.python-version` file to reflect the fact it is included by default so is likely to be present.
This commit is contained in:
@@ -96,8 +96,8 @@ are used for requesting local interpreters such as a file path.
|
||||
By default `uv python install` will verify that a managed Python version is installed or install the
|
||||
latest version.
|
||||
|
||||
However, a project may define a `.python-version` file specifying the default Python version to be
|
||||
used. If present, uv will install the Python version listed in the file.
|
||||
However, a project may include a `.python-version` file specifying a default Python version. If
|
||||
present, uv will install the Python version listed in the file.
|
||||
|
||||
Alternatively, a project that requires multiple Python versions may also define a `.python-versions`
|
||||
file. If present, uv will install all of the Python versions listed in the file. This file takes
|
||||
|
||||
Reference in New Issue
Block a user