Skip to content
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

Merged
merged 6 commits into from
Jul 17, 2020
Merged

Add support of pre-release Python versions #112

merged 6 commits into from
Jul 17, 2020

Conversation

MaksimZhukov
Copy link
Contributor

@MaksimZhukov MaksimZhukov commented Jul 15, 2020

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 version
  • 3.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.

@@ -171,14 +173,15 @@ export function pythonVersionToSemantic(versionSpec: string) {

export async function findPythonVersion(
Copy link
Contributor

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

@MaksimZhukov MaksimZhukov changed the title Add support of unstable Python versions Add support of pre-release Python versions Jul 15, 2020
@MaksimZhukov MaksimZhukov changed the base branch from main to master July 15, 2020 16:44
@MaksimZhukov MaksimZhukov changed the base branch from master to main July 15, 2020 16:44
@MaksimZhukov MaksimZhukov marked this pull request as ready for review July 15, 2020 16:46
action.yml Outdated Show resolved Hide resolved
Copy link
Collaborator

@konradpabjan konradpabjan left a 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

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
@konradpabjan konradpabjan merged commit 306c473 into actions:main Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants