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

Allow Python pre-releases to be used if they are first on the PATH #7470

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@ jobs:
run: echo $(which python)

- name: "Validate global Python install"
run: py -3.13 ./scripts/check_system_python.py --uv ./uv.exe --python 3.13
run: py -3.13 ./scripts/check_system_python.py --uv ./uv.exe

system-test-choco:
timeout-minutes: 10
Expand Down Expand Up @@ -1405,7 +1405,7 @@ jobs:
run: echo $(which python3.13)

- name: "Validate global Python install"
run: python3.13 scripts/check_system_python.py --uv ./uv --python 3.13
run: python3.13 scripts/check_system_python.py --uv ./uv

system-test-conda:
timeout-minutes: 10
Expand Down
5 changes: 3 additions & 2 deletions crates/uv-python/src/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1370,8 +1370,9 @@ impl PythonSource {
/// Whether a pre-release Python installation from the source should be used without opt-in.
pub(crate) fn allows_prereleases(self) -> bool {
match self {
Self::Managed | Self::Registry | Self::SearchPath | Self::MicrosoftStore => false,
Self::CondaPrefix
Self::Managed | Self::Registry | Self::MicrosoftStore => false,
Self::SearchPath
| Self::CondaPrefix
| Self::ProvidedPath
| Self::ParentInterpreter
| Self::ActiveEnvironment
Expand Down
Loading