-
Notifications
You must be signed in to change notification settings - Fork 502
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
Add support of pre-release Python versions #112
Add support of pre-release Python versions #112
Conversation
src/find-python.ts
Outdated
@@ -171,14 +173,15 @@ export function pythonVersionToSemantic(versionSpec: string) { | |||
|
|||
export async function findPythonVersion( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bryanmacfarlane , @konradpabjan , there is a function pythonVersionToSemantic
that converts version from format 3.7.0b2
to 3.7.0-b2
. Not sure why this function was needed before because we have never added pre-release versions previously (may be self-hosted?). May be it makes sense to modify this function to convert from 3.7.0b2
to 3.7.0-beta.2
so version will be resolved from manifest?
https://github.com/actions/setup-python/pull/112/files#diff-7159c6139aba803e6290bd5cb287d23fR169
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic job! 😀 Users will love this new feature
In scope of this PR we've added ability to set up pre-release Python versions.
Details:
There are several ways to specify pre-release versions, for example:
3.9.0-beta.4
to set up an exact pre-release version3.9.0-alpha - 3.9.0
to set up the latest available version of Python (including both pre-release and stable versions).Currently, we do not preinstall pre-release versions on our images. All available pre-release versions will be downloaded and installed in runtime from versions-manifest.json located in the actions/python-versions repository.
Also we've updated tests to cover set up of pre-release versions.