Avoid selecting prerelease Python installations without opt-in (#7300)

Similar to our semantics for packages with pre-release versions.

We will not use prerelease versions unless there are only prerelease
versions available, a specific version is requested,
or the prerelease version is found in a reasonable source (active
environment, explicit path, etc. but not `PATH`).

For example, `uv python install 3.13 && uv run python --version` will no
longer use `3.13.0rc2` unless that is the only Python version available,
`--python 3.13` is used, or that's the Python version that is present in
`.venv`.
This commit is contained in:
Zanie Blue
2024-09-11 15:49:33 -05:00
committed by GitHub
parent c124cda098
commit f22e5ef69a
3 changed files with 84 additions and 15 deletions
+1 -1
View File
@@ -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
run: python3.13 scripts/check_system_python.py --uv ./uv --python 3.13
system-test-conda:
timeout-minutes: 10