-
Notifications
You must be signed in to change notification settings - Fork 807
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
Consider presence on the PATH
an opt-in to Python pre-releases
#7469
Comments
I don't like handling pre-releases differently from full releases in general - if someone is helping test pre-releases, making it harder for them isn't very helpful. We want to encourage pre-release to be easy to test and use like regular releases (especially RC's). The only exception I know of is the original motivation: if you have installed several managed Pythons, defaulting to the latest non-prerelease is a good default. But these aren't on the PATH. What about only having special handling for commands that pick up a managed release automatically, and letting PATH work normally? Is that possible? - uses: actions/setup-python@v5
with:
python-version: "3.13"
allow-prereleases: true
- run: python --version # 3.13
- run: uv venv # I would kind of expect Python 3.13 here - run: uv python install 3.11
- run: uv python install 3.12
- run: uv python install 3.13
- run: python --version # This is whatever's already present, or nothing
- run: uv venv # I would not expect Python 3.13 here, either system or 3.12 |
It's definitely possible — we just need to align on the behavior. I believe #7470 would achieve the behavior here. |
--system
an opt-in to Python pre-releasesPATH
an opt-in to Python pre-releases
PATH
an opt-in to Python pre-releasesPATH
an opt-in to Python pre-releases
From @henryiii in #7300 (comment)
We may want to consider allowing
--system
to opt-in here, but I'm a little hesitant to have different discovery behaviors.cc @carljm / @AlexWaygood who suggested to me that we should not select Python pre-releases by default.
The text was updated successfully, but these errors were encountered: