Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.python-version is created by default but this is not documented #7027

Closed
my1e5 opened this issue Sep 4, 2024 · 1 comment · Fixed by #7051
Closed

.python-version is created by default but this is not documented #7027

my1e5 opened this issue Sep 4, 2024 · 1 comment · Fixed by #7051
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@my1e5
Copy link
Contributor

my1e5 commented Sep 4, 2024

I think I'm right in saying that #6869 has made the creation of a .python-version file happen by default if you run uv init.

But this still needs to be updated in the project docs? see https://docs.astral.sh/uv/guides/projects/

@zanieb
Copy link
Member

zanieb commented Sep 4, 2024

Yep! Thanks

@zanieb zanieb added documentation Improvements or additions to documentation good first issue Good for newcomers labels Sep 4, 2024
charliermarsh pushed a commit that referenced this issue Sep 4, 2024
## Summary

Closes #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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants