mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-31 15:57:26 +00:00
Include pre-release versions in uv python install --reinstall
(#13645)
<!-- Thank you for contributing to uv! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary <!-- What's the purpose of the change? What does it do, and why? --> This change allows for `uv python install --reinstall` to include pre-releases when reinstalling. It does this by explicitly allowing pre-releases to be included within `PythonRequest::Any` if the user does not specify a version to reinstall. Fixes #13582 ## Test Plan <!-- How was it tested? --> ```bash uv python install 3.14 3.13 3.10 uv python install --no-config --reinstall ```
This commit is contained in:
parent
a7ae768118
commit
7e39a80b18
1 changed files with 5 additions and 1 deletions
|
@ -204,7 +204,11 @@ impl PythonDownloadRequest {
|
|||
.with_version(version.clone()),
|
||||
),
|
||||
PythonRequest::Key(request) => Some(request.clone()),
|
||||
PythonRequest::Default | PythonRequest::Any => Some(Self::default()),
|
||||
PythonRequest::Any => Some(Self {
|
||||
prereleases: Some(true), // Explicitly allow pre-releases for PythonRequest::Any
|
||||
..Self::default()
|
||||
}),
|
||||
PythonRequest::Default => Some(Self::default()),
|
||||
// We can't download a managed installation for these request kinds
|
||||
PythonRequest::Directory(_)
|
||||
| PythonRequest::ExecutableName(_)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue