Skip to content

Commit 4bed788

Browse files
committed
release: 3.12.10
0 parents  commit 4bed788

5 files changed

Lines changed: 152 additions & 0 deletions

File tree

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 4
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
13+
[*.{md,yaml,yml}]
14+
indent_size = 2
15+
insert_final_newline = true

.github/workflows/autoupdate.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: autoupdate
2+
3+
on:
4+
schedule:
5+
- cron: '0 18 10 2-12/2 *'
6+
workflow_dispatch:
7+
8+
jobs:
9+
autoupdate:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repo
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
token: ${{ secrets.COATL_BOT_GH_TOKEN }}
17+
18+
- name: Fetch latest Python 3.12 release
19+
run: |
20+
python_version=$(curl -s https://www.python.org/ftp/python/ | grep -oP '3\.12\.\d+/' | uniq | sort -V | tail -n 1 | tr -d '/')
21+
22+
echo "python3.12: $python_version"
23+
24+
echo ${python_version} > .python_version
25+
echo "PYTHON_VERSION=${python_version}" >> $GITHUB_ENV
26+
27+
- name: Detect changes
28+
id: git-diff
29+
uses: coatl-dev/actions/simple-git-diff@v4
30+
31+
- name: Import GPG key
32+
if: ${{ steps.git-diff.outputs.diff == 'true' }}
33+
id: gpg-import
34+
uses: coatl-dev/actions/gpg-import@v4
35+
with:
36+
passphrase: ${{ secrets.COATL_BOT_GPG_PASSPHRASE }}
37+
private-key: ${{ secrets.COATL_BOT_GPG_PRIVATE_KEY }}
38+
39+
- name: Commit and push changes
40+
if: ${{ steps.git-diff.outputs.diff == 'true' }}
41+
run: |
42+
git add -u
43+
git commit -m "release: ${{ env.PYTHON_VERSION }}"
44+
git tag -a ${{ env.PYTHON_VERSION }} -m "${{ env.PYTHON_VERSION }}"
45+
git push --tags

.github/workflows/release.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- 3.12.*
7+
8+
jobs:
9+
build:
10+
runs-on: windows-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
token: ${{ secrets.COATL_BOT_GH_TOKEN }}
17+
18+
- name: Download Python 3.12
19+
run: |
20+
curl -O "https://www.python.org/ftp/python/${{ github.ref_name }}/Python-${{ github.ref_name }}.tgz"
21+
tar -xzf "Python-${{ github.ref_name }}.tgz"
22+
shell: bash
23+
24+
- uses: actions/setup-python@v5
25+
with:
26+
python-version: '3.x'
27+
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install Sphinx
31+
shell: bash
32+
33+
- name: Set SPHINXBUILD environment variable
34+
run: |
35+
$sphinxBuild = (Get-Command sphinx-build.exe).Source
36+
echo "SPHINXBUILD=$sphinxBuild" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
37+
shell: powershell
38+
39+
- name: Fetch external libraries and tools
40+
run: |
41+
.\PCbuild\get_externals.bat
42+
.\Tools\msi\get_externals.bat
43+
shell: powershell
44+
working-directory: Python-${{ github.ref_name }}
45+
46+
- name: Building ...
47+
run: |
48+
.\Tools\msi\buildrelease.bat -x86
49+
.\Tools\msi\buildrelease.bat -x64
50+
working-directory: Python-${{ github.ref_name }}
51+
shell: powershell
52+
53+
- name: Create GitHub release
54+
run: |
55+
gh release create "${{ github.ref_name }}" \
56+
--title "${{ github.ref_name }}" \
57+
--notes "Automated release for version ${{ github.ref_name }}"
58+
env:
59+
GITHUB_TOKEN: ${{ secrets.COATL_BOT_GH_TOKEN }}
60+
shell: bash
61+
62+
- name: Upload artifacts to GitHub release
63+
run: |
64+
gh release upload "${{ github.ref_name }}" `
65+
--clobber `
66+
Python-${{ github.ref_name }}\PCbuild\win32\en-us\python-${{ github.ref_name }}.exe `
67+
Python-${{ github.ref_name }}\PCbuild\win32\en-us\python-${{ github.ref_name }}-embed-win32.zip `
68+
Python-${{ github.ref_name }}\PCbuild\win32\en-us\pythonx86.${{ github.ref_name }}.nupkg `
69+
Python-${{ github.ref_name }}\PCbuild\amd64\en-us\python.${{ github.ref_name }}.nupkg `
70+
Python-${{ github.ref_name }}\PCbuild\amd64\en-us\python-${{ github.ref_name }}-amd64.exe `
71+
Python-${{ github.ref_name }}\PCbuild\amd64\en-us\python-${{ github.ref_name }}-embed-amd64.zip
72+
env:
73+
GITHUB_TOKEN: ${{ secrets.COATL_BOT_GH_TOKEN }}
74+
shell: powershell

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12.10

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Python 3.12 Installers for Windows
2+
3+
This repository provides binary installers for Python 3.12 on Windows.
4+
5+
## Motivation
6+
7+
Python 3.12 has reached the end of its regular bugfix support (see: [PEP 693]), obtaining official installers can become challenging. This repository aims to bridge that gap by hosting the necessary installers for Windows users.
8+
9+
## Usage
10+
11+
Download the appropriate installer for your system from the repository's releases section and follow the standard installation process for Python on Windows.
12+
13+
## License
14+
15+
This repository is provided for convenience and follows the licensing terms of Python Software Foundation.
16+
17+
[PEP 693]: https://peps.python.org/pep-0693/

0 commit comments

Comments
 (0)