Compare commits
38 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d75b46f658 | |||
| b4ba860b69 | |||
| d9a6f719c1 | |||
| 9563bbdac5 | |||
| 8cf18c1668 | |||
| 2f93389231 | |||
| 922a545faa | |||
| e49da09661 | |||
| 61c4d12583 | |||
| 96ebf90b73 | |||
| d36fd1a300 | |||
| 9b2be034cb | |||
| 74d59deab1 | |||
| 4d5c7515bd | |||
| f499afd94b | |||
| e110a8cf3d | |||
| dd4cef5bcc | |||
| ca5c54dde8 | |||
| 829afbafac | |||
| e39b5eb019 | |||
| e83463635a | |||
| 9aa7b46861 | |||
| 990053552b | |||
| c979aa30d9 | |||
| d026dedcb3 | |||
| e5cd1721c5 | |||
| 657a1a4f6d | |||
| 59e4ed0021 | |||
| 205209dadf | |||
| 80e46b6494 | |||
| 209af9b943 | |||
| 43318d4f4f | |||
| 95601e8cfd | |||
| 81bbab5835 | |||
| e3b147457c | |||
| 26223fb20b | |||
| 7406e1d9f7 | |||
| 94c566800e |
@@ -0,0 +1,14 @@
|
||||
# To get started with Dependabot version updates, you'll need to specify which
|
||||
# package ecosystems to update and where the package manifests are located.
|
||||
# Please see the documentation for all configuration options:
|
||||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
||||
|
||||
version: 2
|
||||
updates:
|
||||
# Enable version updates for GitHub Actions
|
||||
- package-ecosystem: 'github-actions'
|
||||
# Workflow files stored in the default location of `.github/workflows`
|
||||
# You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.
|
||||
directory: '/'
|
||||
schedule:
|
||||
interval: 'weekly'
|
||||
@@ -1,11 +1,11 @@
|
||||
name: Build Python package
|
||||
run-name: Generate Python ${{ inputs.VERSION || '3.12.3' }}
|
||||
run-name: Generate Python ${{ inputs.VERSION || '3.13.7' }}
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
VERSION:
|
||||
description: 'Python version to build and upload'
|
||||
default: '3.12.3'
|
||||
default: '3.13.7'
|
||||
required: true
|
||||
PUBLISH_RELEASES:
|
||||
description: 'Whether to publish releases'
|
||||
@@ -20,7 +20,7 @@ on:
|
||||
PLATFORMS:
|
||||
description: 'Platforms for execution in "os" or "os_arch" format (arch is "x64" by default)'
|
||||
required: true
|
||||
default: 'ubuntu-22.04,ubuntu-22.04_arm64,ubuntu-24.04,ubuntu-24.04_arm64,macos-13_x64,macos-14_arm64,windows-2019_x64,windows-2019_x86,windows-11_arm64'
|
||||
default: 'ubuntu-22.04,ubuntu-22.04_arm64,ubuntu-24.04,ubuntu-24.04_arm64,macos-15-intel_x64,macos-14_arm64,windows-2022_x64,windows-2022_x86,windows-11_arm64'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- 'versions-manifest.json'
|
||||
@@ -30,7 +30,7 @@ on:
|
||||
- 'main'
|
||||
|
||||
env:
|
||||
VERSION: ${{ inputs.VERSION || '3.12.3' }}
|
||||
VERSION: ${{ inputs.VERSION || '3.13.7' }}
|
||||
defaults:
|
||||
run:
|
||||
shell: pwsh
|
||||
@@ -44,7 +44,7 @@ jobs:
|
||||
- name: Generate execution matrix
|
||||
id: generate-matrix
|
||||
run: |
|
||||
[String[]]$configurations = "${{ inputs.platforms || 'ubuntu-22.04,ubuntu-22.04_arm64,ubuntu-24.04,ubuntu-24.04_arm64,macos-13,macos-14_arm64,windows-2019_x64,windows-2019_x86,windows-11_arm64' }}".Split(",").Trim()
|
||||
[String[]]$configurations = "${{ inputs.platforms || 'ubuntu-22.04,ubuntu-22.04_arm64,ubuntu-24.04,ubuntu-24.04_arm64,macos-15-intel,macos-14_arm64,windows-2022_x64,windows-2022_x86,windows-11_arm64' }}".Split(",").Trim()
|
||||
[String[]]$buildModes = "${{ inputs.threading_build_modes || 'default' }}".Split(",").Trim()
|
||||
$matrix = @()
|
||||
|
||||
@@ -83,24 +83,20 @@ jobs:
|
||||
include: ${{ fromJson(needs.generate_matrix.outputs.matrix) }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
env:
|
||||
ARTIFACT_NAME: python-${{ inputs.VERSION || '3.12.3' }}-${{ matrix.platform }}-${{ matrix.arch }}
|
||||
ARTIFACT_NAME: python-${{ inputs.VERSION || '3.13.7' }}-${{ matrix.platform }}-${{ matrix.arch }}
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Adding Symlink
|
||||
if: matrix.os == 'macos-13'
|
||||
run: ln -sf /usr/local/opt/tcl-tk@8 /usr/local/opt/tcl-tk
|
||||
|
||||
|
||||
- name: Build Python ${{ env.VERSION }}
|
||||
run: |
|
||||
./builders/build-python.ps1 -Version $env:VERSION `
|
||||
-Platform ${{ matrix.platform }} -Architecture ${{ matrix.arch }}
|
||||
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: ${{ env.ARTIFACT_NAME }}
|
||||
path: ${{ runner.temp }}/artifact
|
||||
@@ -114,10 +110,10 @@ jobs:
|
||||
include: ${{ fromJson(needs.generate_matrix.outputs.matrix) }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
env:
|
||||
ARTIFACT_NAME: python-${{ inputs.VERSION || '3.12.3' }}-${{ matrix.platform }}-${{ matrix.arch }}
|
||||
ARTIFACT_NAME: python-${{ inputs.VERSION || '3.13.7' }}-${{ matrix.platform }}-${{ matrix.arch }}
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
@@ -130,7 +126,7 @@ jobs:
|
||||
run: if [ -d /Library/Frameworks/Python.framework ]; then sudo rm -rf /Library/Frameworks/Python.framework; fi
|
||||
|
||||
- name: Download artifact
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
name: ${{ env.ARTIFACT_NAME }}
|
||||
path: ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}
|
||||
@@ -158,7 +154,7 @@ jobs:
|
||||
working-directory: ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}
|
||||
|
||||
- name: Setup Python ${{ env.VERSION }}
|
||||
uses: actions/setup-python@v5
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: ${{ env.VERSION }}
|
||||
architecture: ${{ matrix.arch }}
|
||||
@@ -199,18 +195,22 @@ jobs:
|
||||
needs: test_python
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/download-artifact@v4
|
||||
- uses: actions/download-artifact@v7
|
||||
|
||||
- name: Publish Release ${{ env.VERSION }}
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ env.VERSION }}-${{ github.run_id }}
|
||||
release_name: ${{ env.VERSION }}
|
||||
body: |
|
||||
Python ${{ env.VERSION }}
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
shell: bash
|
||||
run: |
|
||||
tag_name="${{ env.VERSION }}-${{ github.run_id }}"
|
||||
gh release create "$tag_name" \
|
||||
--repo="$GITHUB_REPOSITORY" \
|
||||
--title="${{ env.VERSION }}" \
|
||||
--notes="Python ${{ env.VERSION }}"
|
||||
|
||||
release_id=$(gh release view "$tag_name" --repo "$GITHUB_REPOSITORY" --json databaseId --jq '.databaseId')
|
||||
echo "id=$release_id" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Generate hash for packages
|
||||
run: |
|
||||
@@ -225,7 +225,7 @@ jobs:
|
||||
}
|
||||
|
||||
- name: Upload release assets
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v8
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
@@ -249,7 +249,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Trigger "Create Pull Request" workflow
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v8
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
name: Get Python versions
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 3,15 * * *'
|
||||
- cron: '0 0,12 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -10,4 +10,4 @@ jobs:
|
||||
with:
|
||||
tool-name: "Python"
|
||||
image-url: "https://avatars.githubusercontent.com/u/1525981?s=200&v=4"
|
||||
secrets: inherit
|
||||
secrets: inherit
|
||||
|
||||
@@ -11,7 +11,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Trigger python workflow
|
||||
run: |
|
||||
|
||||
@@ -14,11 +14,11 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-latest, windows-latest, ubuntu-22.04, ubuntu-latest, macos-13]
|
||||
os: [macos-latest, windows-latest, ubuntu-22.04, ubuntu-latest, macos-15-intel]
|
||||
python: [3.9.13, 3.10.11, 3.11.8, 3.12.7, 3.13.0]
|
||||
steps:
|
||||
- name: setup-python ${{ matrix.python }}
|
||||
uses: actions/setup-python@v5
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: ${{ matrix.python }}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-latest, windows-latest, ubuntu-22.04, ubuntu-latest, macos-13]
|
||||
os: [macos-latest, windows-latest, ubuntu-22.04, ubuntu-latest, macos-15-intel]
|
||||
steps:
|
||||
- name: Setup Python ${{ github.event.inputs.version }}
|
||||
uses: actions/setup-python@main
|
||||
|
||||
@@ -73,7 +73,7 @@ class NixPythonBuilder : PythonBuilder {
|
||||
$sourceUri = $this.GetSourceUri()
|
||||
Write-Host "Sources URI: $sourceUri"
|
||||
|
||||
$archiveFilepath = Download-File -Uri $sourceUri -OutputFolder $this.WorkFolderLocation
|
||||
$archiveFilepath = Download-File -Uri $sourceUri -OutputFolder $this.TempFolderLocation
|
||||
$expandedSourceLocation = Join-Path -Path $this.TempFolderLocation -ChildPath "SourceCode"
|
||||
New-Item -Path $expandedSourceLocation -ItemType Directory
|
||||
|
||||
@@ -146,6 +146,14 @@ class NixPythonBuilder : PythonBuilder {
|
||||
$sourcesLocation = $this.Download()
|
||||
|
||||
Push-Location -Path $sourcesLocation
|
||||
|
||||
# Patch for 3.15.0a6: Fix test_bz2 BIG_DATA to ensure two compressed blocks
|
||||
# See: https://github.com/python/cpython/pull/145730
|
||||
if (($this.Architecture -match "arm64") -and ($this.Platform -match "22\.04") -and ($this.Version -eq [semver]"3.15.0-alpha.6")) {
|
||||
Write-Host "Applying patch for python/cpython#145730 (test_bz2 fix)..."
|
||||
Execute-Command -Command "curl -sL -o Lib/test/test_bz2.py https://raw.githubusercontent.com/python/cpython/19676e5fc28bdee8325a062a31ddeee60960cf75/Lib/test/test_bz2.py"
|
||||
}
|
||||
|
||||
Write-Host "Configure for $($this.Platform)..."
|
||||
$this.Configure()
|
||||
|
||||
|
||||
@@ -241,6 +241,12 @@ if sys.version_info >= (3, 14):
|
||||
'annotationlib',
|
||||
])
|
||||
|
||||
# https://docs.python.org/3.15/whatsnew/3.15.html
|
||||
if sys.version_info >= (3, 15):
|
||||
standard_library.remove('sre_compile')
|
||||
standard_library.remove('sre_constants')
|
||||
standard_library.remove('sre_parse')
|
||||
|
||||
# Remove tkinter and Easter eggs
|
||||
excluded_modules = [
|
||||
'antigravity',
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user