Compare commits

...

19 Commits

Author SHA1 Message Date
github-actions[bot]
01d7e367e6 Update versions-manifest (#211)
Co-authored-by: Service account <no-reply@microsoft.com>
2022-12-07 10:10:05 +01:00
github-actions[bot]
66440ccb17 Update versions-manifest (#208)
Co-authored-by: Service account <no-reply@microsoft.com>
2022-12-06 10:01:24 +01:00
github-actions[bot]
08fcc9e2f9 Update versions-manifest (#207) 2022-12-02 13:45:28 +01:00
github-actions[bot]
1248039d12 Update versions-manifest (#206) 2022-11-30 11:24:47 +01:00
Marko Zivic
150cd39a1c Merge pull request #205 from MaksimZhukov/v-mzhukov/migrate-python-generation-to-macos-11
Switch Python generation from macOS 10.15 to 11
2022-11-28 12:58:51 +01:00
MaksimZhukov
93c66279f2 Update a comment
Co-authored-by: Marko Zivic <100996310+marko-zivic-93@users.noreply.github.com>
2022-11-28 12:07:33 +01:00
MaksimZhukov
14f269ec5f Switch Python generation from macOS 10.15 to 11 2022-11-28 10:54:51 +01:00
Marko Zivic
188d4c2fb8 Merge pull request #204 from actions/update-versions-manifest-file
[versions-manifest] Update for release from 11/22/2022
2022-11-22 16:54:57 +01:00
Service account
99b9e07db6 Update versions-manifest 2022-11-22 15:49:39 +00:00
Marko Zivic
875651ccf2 Merge pull request #203 from MaksimZhukov/python-3.12.0-alpha2
Remove asyncore and asynchat modules from tests
2022-11-22 16:13:17 +01:00
MaksimZhukov
f6ede0f473 Remove asyncore and asynchat modules from tests 2022-11-22 15:19:00 +01:00
Marko Zivic
60672e10e2 Merge pull request #201 from actions/rename-virt-env
Rename virtual-environments to runner-images
2022-11-14 10:53:24 +01:00
Aleksandr Chebotov
188c9d47fd update link to issues 2022-11-11 12:22:36 +01:00
Aleksandr Chebotov
01c7f11a0c revert CODEOWNERS 2022-11-11 12:20:24 +01:00
Aleksandr Chebotov
2cd33e8674 Rename virtual-environments to runner-images 2022-11-11 12:17:09 +01:00
Marko Zivic
16feed7bc1 Merge pull request #200 from MaksimZhukov/update-github-script-version
Update github-script action version
2022-11-09 13:24:30 +01:00
MaksimZhukov
fe8bc0106f Update github-script action version 2022-11-09 11:56:32 +01:00
Marko Zivic
4cb1787f1c Merge pull request #199 from actions/update-versions-manifest-file
[versions-manifest] Update for release from 11/09/2022
2022-11-09 11:52:06 +01:00
Service account
c81386e1fd Update versions-manifest 2022-11-09 10:50:05 +00:00
5 changed files with 201 additions and 14 deletions

View File

@@ -14,7 +14,7 @@ on:
PLATFORMS:
description: 'Platforms for execution in "os" or "os_arch" format (arch is "x64" by default)'
required: true
default: 'ubuntu-18.04,ubuntu-20.04,ubuntu-22.04,macos-10.15,windows-2019_x64,windows-2019_x86'
default: 'ubuntu-18.04,ubuntu-20.04,ubuntu-22.04,macos-11,windows-2019_x64,windows-2019_x86'
pull_request:
paths-ignore:
- 'versions-manifest.json'
@@ -38,7 +38,7 @@ jobs:
- name: Generate execution matrix
id: generate-matrix
run: |
$configurations = "${{ github.event.inputs.platforms || 'ubuntu-18.04,ubuntu-20.04,ubuntu-22.04,macos-10.15,windows-2019_x64,windows-2019_x86' }}".Split(",").Trim()
[String[]]$configurations = "${{ github.event.inputs.platforms || 'ubuntu-18.04,ubuntu-20.04,ubuntu-22.04,macos-11,windows-2019_x64,windows-2019_x86' }}".Split(",").Trim()
$matrix = @()
foreach ($configuration in $configurations) {
@@ -56,7 +56,7 @@ jobs:
'arch' = $arch
}
}
echo "matrix=$($matrix | ConvertTo-Json -Compress)" >> $env:GITHUB_OUTPUT
echo "matrix=$($matrix | ConvertTo-Json -Compress -AsArray)" >> $env:GITHUB_OUTPUT
build_python:
needs: generate_matrix
@@ -182,7 +182,7 @@ jobs:
Python ${{ env.VERSION }}
- name: Upload release assets
uses: actions/github-script@v3
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
@@ -190,7 +190,7 @@ jobs:
for (let artifactDir of fs.readdirSync('.')) {
let artifactName = fs.readdirSync(`${artifactDir}`)[0];
console.log(`Upload ${artifactName} asset`);
github.repos.uploadReleaseAsset({
github.rest.repos.uploadReleaseAsset({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: ${{ steps.create_release.outputs.id }},
@@ -205,11 +205,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Trigger "Create Pull Request" workflow
uses: actions/github-script@v3
uses: actions/github-script@v6
with:
github-token: ${{ secrets.PERSONAL_TOKEN }}
script: |
github.actions.createWorkflowDispatch({
github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'create-pr.yml',

View File

@@ -1,16 +1,16 @@
# Python for Actions
This repository contains the code and scripts that we use to build Python packages used in [virtual-environments](https://github.com/actions/virtual-environments) and accessible through the [setup-python](https://github.com/actions/setup-python) Action.
File [versions-manifest.json](./versions-manifest.json) contains the list of available and released versions.
This repository contains the code and scripts that we use to build Python packages used in [runner-images](https://github.com/actions/runner-images) and accessible through the [setup-python](https://github.com/actions/setup-python) Action.
File [versions-manifest.json](./versions-manifest.json) contains the list of available and released versions.
> Caution: this is prepared for and only permitted for use by actions `virtual-environments` and `setup-python` action.
> Caution: this is prepared for and only permitted for use by actions `runner-images` and `setup-python` action.
**Status**: Currently under development and in use for beta and preview actions. This repo is undergoing rapid changes.
Some versions are pre-installed on [virtual-environments](https://github.com/actions/virtual-environments) images.
Some versions are pre-installed on [runner-images](https://github.com/actions/runner-images) images.
More versions will (soon!) be available to install on-the-fly through the [`setup-python`](https://github.com/actions/setup-python) action.
## Adding new versions
We are trying to build and release new versions of Python as soon as they are released. Please open an issue in [actions/virtual-environments](https://github.com/actions/virtual-environments) if any versions are missing.
We are trying to build and release new versions of Python as soon as they are released. Please open an issue in [actions/setup-python](https://github.com/actions/setup-python/issues) if any versions are missing.
## Contribution
Contributions are welcome! See [Contributor's Guide](./CONTRIBUTING.md) for more details about contribution process and code structure

View File

@@ -54,7 +54,13 @@ echo "Create additional symlinks (Required for the UsePythonVersion Azure Pipeli
ln -s ./bin/$PYTHON_MAJOR_DOT_MINOR python
cd bin/
ln -s $PYTHON_MAJOR_DOT_MINOR $PYTHON_MAJOR_MINOR
# This symlink already exists if Python version with the same major.minor version is installed,
# since we do not remove the framework folder
if [ ! -f $PYTHON_MAJOR_MINOR ]; then
ln -s $PYTHON_MAJOR_DOT_MINOR $PYTHON_MAJOR_MINOR
fi
if [ ! -f python ]; then
ln -s $PYTHON_MAJOR_DOT_MINOR python
fi

View File

@@ -271,9 +271,11 @@ if sys.version_info >= (3, 11) and platform.system() == 'Linux' and '18.04' in p
standard_library.remove('tkinter')
standard_library.remove('turtle')
# 'smtpd' module has been removed from Python 3.12
# 'smtpd', 'asyncore' and 'asynchat' modules have been removed from Python 3.12
if sys.version_info >= (3, 12):
standard_library.remove('smtpd')
standard_library.remove('asyncore')
standard_library.remove('asynchat')
# Remove tkinter and Easter eggs
excluded_modules = [

View File

@@ -1,4 +1,96 @@
[
{
"version": "3.12.0-alpha.2",
"stable": false,
"release_url": "https://github.com/actions/python-versions/releases/tag/3.12.0-alpha.2-3524742960",
"files": [
{
"filename": "python-3.12.0-alpha.2-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/python-versions/releases/download/3.12.0-alpha.2-3524742960/python-3.12.0-alpha.2-darwin-x64.tar.gz"
},
{
"filename": "python-3.12.0-alpha.2-linux-18.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "18.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.12.0-alpha.2-3524742960/python-3.12.0-alpha.2-linux-18.04-x64.tar.gz"
},
{
"filename": "python-3.12.0-alpha.2-linux-20.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "20.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.12.0-alpha.2-3524742960/python-3.12.0-alpha.2-linux-20.04-x64.tar.gz"
},
{
"filename": "python-3.12.0-alpha.2-linux-22.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "22.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.12.0-alpha.2-3524742960/python-3.12.0-alpha.2-linux-22.04-x64.tar.gz"
},
{
"filename": "python-3.12.0-alpha.2-win32-x64.zip",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/python-versions/releases/download/3.12.0-alpha.2-3524742960/python-3.12.0-alpha.2-win32-x64.zip"
},
{
"filename": "python-3.12.0-alpha.2-win32-x86.zip",
"arch": "x86",
"platform": "win32",
"download_url": "https://github.com/actions/python-versions/releases/download/3.12.0-alpha.2-3524742960/python-3.12.0-alpha.2-win32-x86.zip"
}
]
},
{
"version": "3.12.0-alpha.1",
"stable": false,
"release_url": "https://github.com/actions/python-versions/releases/tag/3.12.0-alpha.1-3427281458",
"files": [
{
"filename": "python-3.12.0-alpha.1-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/python-versions/releases/download/3.12.0-alpha.1-3427281458/python-3.12.0-alpha.1-darwin-x64.tar.gz"
},
{
"filename": "python-3.12.0-alpha.1-linux-18.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "18.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.12.0-alpha.1-3427281458/python-3.12.0-alpha.1-linux-18.04-x64.tar.gz"
},
{
"filename": "python-3.12.0-alpha.1-linux-20.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "20.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.12.0-alpha.1-3427281458/python-3.12.0-alpha.1-linux-20.04-x64.tar.gz"
},
{
"filename": "python-3.12.0-alpha.1-linux-22.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "22.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.12.0-alpha.1-3427281458/python-3.12.0-alpha.1-linux-22.04-x64.tar.gz"
},
{
"filename": "python-3.12.0-alpha.1-win32-x64.zip",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/python-versions/releases/download/3.12.0-alpha.1-3427281458/python-3.12.0-alpha.1-win32-x64.zip"
},
{
"filename": "python-3.12.0-alpha.1-win32-x86.zip",
"arch": "x86",
"platform": "win32",
"download_url": "https://github.com/actions/python-versions/releases/download/3.12.0-alpha.1-3427281458/python-3.12.0-alpha.1-win32-x86.zip"
}
]
},
{
"version": "3.11.0",
"stable": true,
@@ -640,6 +732,52 @@
}
]
},
{
"version": "3.10.9",
"stable": true,
"release_url": "https://github.com/actions/python-versions/releases/tag/3.10.9-3636985951",
"files": [
{
"filename": "python-3.10.9-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.9-3636985951/python-3.10.9-darwin-x64.tar.gz"
},
{
"filename": "python-3.10.9-linux-18.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "18.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.9-3636985951/python-3.10.9-linux-18.04-x64.tar.gz"
},
{
"filename": "python-3.10.9-linux-20.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "20.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.9-3636985951/python-3.10.9-linux-20.04-x64.tar.gz"
},
{
"filename": "python-3.10.9-linux-22.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "22.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.9-3636985951/python-3.10.9-linux-22.04-x64.tar.gz"
},
{
"filename": "python-3.10.9-win32-x64.zip",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.9-3636985951/python-3.10.9-win32-x64.zip"
},
{
"filename": "python-3.10.9-win32-x86.zip",
"arch": "x86",
"platform": "win32",
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.9-3636985951/python-3.10.9-win32-x86.zip"
}
]
},
{
"version": "3.10.8",
"stable": true,
@@ -2543,6 +2681,40 @@
}
]
},
{
"version": "3.8.15",
"stable": true,
"release_url": "https://github.com/actions/python-versions/releases/tag/3.8.15-3601364564",
"files": [
{
"filename": "python-3.8.15-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.15-3601364564/python-3.8.15-darwin-x64.tar.gz"
},
{
"filename": "python-3.8.15-linux-18.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "18.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.15-3601364564/python-3.8.15-linux-18.04-x64.tar.gz"
},
{
"filename": "python-3.8.15-linux-20.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "20.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.15-3601364564/python-3.8.15-linux-20.04-x64.tar.gz"
},
{
"filename": "python-3.8.15-linux-22.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "22.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.15-3601364564/python-3.8.15-linux-22.04-x64.tar.gz"
}
]
},
{
"version": "3.8.14",
"stable": true,
@@ -4215,6 +4387,13 @@
"platform_version": "20.04",
"download_url": "https://github.com/actions/python-versions/releases/download/2.7.18-87224/python-2.7.18-linux-20.04-x64.tar.gz"
},
{
"filename": "python-2.7.18-linux-22.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "22.04",
"download_url": "https://github.com/actions/python-versions/releases/download/2.7.18-87224/python-2.7.18-linux-22.04-x64.tar.gz"
},
{
"filename": "python-2.7.18-win32-x64.zip",
"arch": "x64",