mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-16 09:45:01 +00:00
Pin .python-version
in uv init
(#6869)
## Summary I'm not convinced that the behavior is correct as-implemented. When the user passes a `--python >=3.8` or we discover a `requires-python` from the workspace, we're currently writing that request out to `.python-version`. I would probably rather that we write the resolved patch version? Closes https://github.com/astral-sh/uv/issues/6821.
This commit is contained in:
parent
3e8d53c8eb
commit
50d7b9c38a
7 changed files with 350 additions and 113 deletions
|
@ -94,7 +94,7 @@ impl PythonVersionFile {
|
|||
|
||||
/// Create a new representation of a version file at the given path.
|
||||
///
|
||||
/// The file will not any versions; see [`PythonVersionFile::with_versions`].
|
||||
/// The file will not any include versions; see [`PythonVersionFile::with_versions`].
|
||||
/// The file will not be created; see [`PythonVersionFile::write`].
|
||||
pub fn new(path: PathBuf) -> Self {
|
||||
Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue