-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Improve UsePython to allow installation versions on-flight #13319
Comments
This would be very useful for trying out versions of python without waiting for deployment of a new image. |
This would also be really nice for self-hosted agents For example |
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days |
Still valid. Would be nice to have this in place for the Python 3.10 release in October. |
Would be nice to have this in place for the Python 3.11 release in October 2022 :) |
This feature will be released in the next few weeks in [email protected] |
@maxim-lobanov has noticed an error in the current implementation: #15820 (comment) |
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days |
@maxim-lobanov / @DaniilShmelev Did #16217 fix the aforementioned error? |
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days |
Awaiting confirmation. |
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days |
Would be nice for confirmation for the Python 3.12 release in October 2023. |
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days |
Would be nice for confirmation for the Python 3.13 release in October 2024. |
Problem
Currently, UsePython task just switches versions that are pre-cached on image (example).
It works for the most of the use-cases, because image always contains latest patch version for every major.minor pair.
However, some customers prefer to specify exact version of Python and would like to control it by themselves / freeze specific version. Current implementation of UsePython doesn't allow it.
Proposal
Versions of Python can be installed on-flight from https://github.com/actions/python-versions. This repo distributes versions of Python via GH releases. Also it contains
versions-manifest.json
as an index of versions.Installation on-flight is pretty quick and should cover those use-cases. Also it is not a breaking change because task will try to download version only in case if it is not found locally.
The same changes were already done for GitHub Actions task setup-python.
Related PRs:
The text was updated successfully, but these errors were encountered: