Improve UsePython to allow installation versions on-flight
See original GitHub issueProblem
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:
Issue Analytics
- State:
- Created 3 years ago
- Reactions:48
- Comments:9 (3 by maintainers)
This would be very useful for trying out versions of python without waiting for deployment of a new image.
This feature will be released in the next few weeks in UsePythonVersion@0.202.0