Skip to content

Commit fba255e

Browse files
authored
Merge branch '3.14' into backport-a10152f-3.14
2 parents cb2b783 + ddd1264 commit fba255e

File tree

368 files changed

+11295
-5687
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

368 files changed

+11295
-5687
lines changed

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ Lib/concurrent/futures/interpreter.py @ericsnowcurrently
293293
**/*Android* @mhsmith @freakboy3742
294294
**/*android* @mhsmith @freakboy3742
295295

296+
# Apple
297+
/Apple @freakboy3742
298+
296299
# iOS (but not termios)
297300
**/iOS* @freakboy3742
298301
**/ios* @freakboy3742

.github/actionlint.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
self-hosted-runner:
22
# Pending https://github.com/rhysd/actionlint/issues/533
3-
labels: ["windows-11-arm"]
3+
# and https://github.com/rhysd/actionlint/issues/571
4+
labels: ["windows-11-arm", "macos-15-intel"]
45

56
config-variables: null
67

.github/workflows/build.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ jobs:
177177
- name: Build CPython
178178
run: |
179179
make -j4 regen-all
180-
make regen-stdlib-module-names regen-sbom regen-unicodedata
180+
make regen-stdlib-module-names regen-sbom
181181
- name: Check for changes
182182
run: |
183183
git add -u
@@ -249,13 +249,13 @@ jobs:
249249
strategy:
250250
fail-fast: false
251251
matrix:
252-
# Cirrus and macos-14 are M1, macos-13 is default GHA Intel.
252+
# Cirrus and macos-14 are M1, macos-15-intel is default GHA Intel.
253253
# macOS 13 only runs tests against the GIL-enabled CPython.
254254
# Cirrus used for upstream, macos-14 for forks.
255255
os:
256256
- ghcr.io/cirruslabs/macos-runner:sonoma
257257
- macos-14
258-
- macos-13
258+
- macos-15-intel
259259
is-fork: # only used for the exclusion trick
260260
- ${{ github.repository_owner != 'python' }}
261261
free-threading:
@@ -266,7 +266,7 @@ jobs:
266266
is-fork: true
267267
- os: macos-14
268268
is-fork: false
269-
- os: macos-13
269+
- os: macos-15-intel
270270
free-threading: true
271271
uses: ./.github/workflows/reusable-macos.yml
272272
with:
@@ -317,7 +317,10 @@ jobs:
317317
fail-fast: false
318318
matrix:
319319
os: [ubuntu-24.04]
320-
openssl_ver: [3.0.16, 3.1.8, 3.2.4, 3.3.3, 3.4.1]
320+
# Keep 1.1.1w in our list despite it being upstream EOL and otherwise
321+
# unsupported as it most resembles other 1.1.1-work-a-like ssl APIs
322+
# supported by important vendors such as AWS-LC.
323+
openssl_ver: [1.1.1w, 3.0.18, 3.2.6, 3.3.5, 3.4.3, 3.5.4]
321324
# See Tools/ssl/make_ssl_data.py for notes on adding a new version
322325
env:
323326
OPENSSL_VER: ${{ matrix.openssl_ver }}
@@ -390,7 +393,7 @@ jobs:
390393
with:
391394
persist-credentials: false
392395
- name: Build and test
393-
run: ./Android/android.py ci ${{ matrix.arch }}-linux-android
396+
run: ./Android/android.py ci --fast-ci ${{ matrix.arch }}-linux-android
394397

395398
build-wasi:
396399
name: 'WASI'
@@ -407,7 +410,7 @@ jobs:
407410
needs: build-context
408411
if: needs.build-context.outputs.run-tests == 'true'
409412
env:
410-
OPENSSL_VER: 3.0.16
413+
OPENSSL_VER: 3.0.18
411414
PYTHONSTRICTEXTENSIONBUILD: 1
412415
steps:
413416
- uses: actions/checkout@v4
@@ -527,7 +530,7 @@ jobs:
527530
matrix:
528531
os: [ubuntu-24.04]
529532
env:
530-
OPENSSL_VER: 3.0.16
533+
OPENSSL_VER: 3.0.18
531534
PYTHONSTRICTEXTENSIONBUILD: 1
532535
ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0
533536
steps:

.github/workflows/jit.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,16 @@ jobs:
6868
include:
6969
- target: i686-pc-windows-msvc/msvc
7070
architecture: Win32
71-
runner: windows-latest
71+
runner: windows-2022
7272
- target: x86_64-pc-windows-msvc/msvc
7373
architecture: x64
74-
runner: windows-latest
74+
runner: windows-2022
7575
- target: aarch64-pc-windows-msvc/msvc
7676
architecture: ARM64
7777
runner: windows-11-arm
7878
- target: x86_64-apple-darwin/clang
7979
architecture: x86_64
80-
runner: macos-13
80+
runner: macos-15-intel
8181
- target: aarch64-apple-darwin/clang
8282
architecture: aarch64
8383
runner: macos-14
@@ -102,15 +102,10 @@ jobs:
102102
./PCbuild/build.bat --experimental-jit ${{ matrix.debug && '-d' || '' }} -p ${{ matrix.architecture }}
103103
./PCbuild/rt.bat ${{ matrix.debug && '-d' || '' }} -p ${{ matrix.architecture }} -q --multiprocess 0 --timeout 4500 --verbose2 --verbose3
104104
105-
# The `find` line is required as a result of https://github.com/actions/runner-images/issues/9966.
106-
# This is a bug in the macOS runner image where the pre-installed Python is installed in the same
107-
# directory as the Homebrew Python, which causes the build to fail for macos-13. This line removes
108-
# the symlink to the pre-installed Python so that the Homebrew Python is used instead.
109105
- name: macOS
110106
if: runner.os == 'macOS'
111107
run: |
112108
brew update
113-
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
114109
brew install llvm@${{ matrix.llvm }}
115110
export SDKROOT="$(xcrun --show-sdk-path)"
116111
# Set MACOSX_DEPLOYMENT_TARGET and -Werror=unguarded-availability to

.github/workflows/mypy.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,17 @@ on:
1313
- "Lib/test/libregrtest/**"
1414
- "Lib/tomllib/**"
1515
- "Misc/mypy/**"
16-
- "Tools/build/mypy.ini"
1716
- "Tools/build/check_extension_modules.py"
17+
- "Tools/build/check_warnings.py"
1818
- "Tools/build/compute-changes.py"
1919
- "Tools/build/deepfreeze.py"
20+
- "Tools/build/generate-build-details.py"
2021
- "Tools/build/generate_sbom.py"
2122
- "Tools/build/generate_stdlib_module_names.py"
22-
- "Tools/build/generate-build-details.py"
23-
- "Tools/build/verify_ensurepip_wheels.py"
24-
- "Tools/build/update_file.py"
23+
- "Tools/build/mypy.ini"
2524
- "Tools/build/umarshal.py"
25+
- "Tools/build/update_file.py"
26+
- "Tools/build/verify_ensurepip_wheels.py"
2627
- "Tools/cases_generator/**"
2728
- "Tools/clinic/**"
2829
- "Tools/jit/**"

.github/workflows/reusable-macos.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ jobs:
6060
--prefix=/opt/python-dev \
6161
--with-openssl="$(brew --prefix [email protected])"
6262
- name: Build CPython
63-
if : ${{ inputs.free-threading || inputs.os != 'macos-13' }}
63+
if : ${{ inputs.free-threading || inputs.os != 'macos-15-intel' }}
6464
run: gmake -j8
6565
- name: Build CPython for compiler warning check
66-
if : ${{ !inputs.free-threading && inputs.os == 'macos-13' }}
66+
if : ${{ !inputs.free-threading && inputs.os == 'macos-15-intel' }}
6767
run: set -o pipefail; gmake -j8 --output-sync 2>&1 | tee compiler_output_macos.txt
6868
- name: Display build info
6969
run: make pythoninfo
7070
- name: Check compiler warnings
71-
if : ${{ !inputs.free-threading && inputs.os == 'macos-13' }}
71+
if : ${{ !inputs.free-threading && inputs.os == 'macos-15-intel' }}
7272
run: >-
7373
python3 Tools/build/check_warnings.py
7474
--compiler-output-file-path=compiler_output_macos.txt

.github/workflows/reusable-ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ${{ inputs.os }}
3131
timeout-minutes: 60
3232
env:
33-
OPENSSL_VER: 3.0.15
33+
OPENSSL_VER: 3.0.18
3434
PYTHONSTRICTEXTENSIONBUILD: 1
3535
TERM: linux
3636
steps:

.github/workflows/reusable-windows-msi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717
jobs:
1818
build:
1919
name: installer for ${{ inputs.arch }}
20-
runs-on: ${{ inputs.arch == 'arm64' && 'windows-11-arm' || 'windows-latest' }}
20+
runs-on: ${{ inputs.arch == 'arm64' && 'windows-11-arm' || 'windows-2022' }}
2121
timeout-minutes: 60
2222
env:
2323
ARCH: ${{ inputs.arch }}

.github/workflows/reusable-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ env:
2121
jobs:
2222
build:
2323
name: Build and test (${{ inputs.arch }})
24-
runs-on: ${{ inputs.arch == 'arm64' && 'windows-11-arm' || 'windows-latest' }}
24+
runs-on: ${{ inputs.arch == 'arm64' && 'windows-11-arm' || 'windows-2022' }}
2525
timeout-minutes: 60
2626
env:
2727
ARCH: ${{ inputs.arch }}

.github/workflows/tail-call.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ jobs:
4949
include:
5050
# - target: i686-pc-windows-msvc/msvc
5151
# architecture: Win32
52-
# runner: windows-latest
52+
# runner: windows-2022
5353
- target: x86_64-pc-windows-msvc/msvc
5454
architecture: x64
55-
runner: windows-latest
55+
runner: windows-2022
5656
# - target: aarch64-pc-windows-msvc/msvc
5757
# architecture: ARM64
58-
# runner: windows-latest
58+
# runner: windows-2022
5959
- target: x86_64-apple-darwin/clang
6060
architecture: x86_64
61-
runner: macos-13
61+
runner: macos-15-intel
6262
- target: aarch64-apple-darwin/clang
6363
architecture: aarch64
6464
runner: macos-14
@@ -101,21 +101,14 @@ jobs:
101101
set LLVMInstallDir=C:\Program Files\LLVM
102102
./PCbuild/build.bat --tail-call-interp -p ${{ matrix.architecture }}
103103
104-
# The `find` line is required as a result of https://github.com/actions/runner-images/issues/9966.
105-
# This is a bug in the macOS runner image where the pre-installed Python is installed in the same
106-
# directory as the Homebrew Python, which causes the build to fail for macos-13. This line removes
107-
# the symlink to the pre-installed Python so that the Homebrew Python is used instead.
108-
# Note: when a new LLVM is released, the homebrew installation directory changes, so the builds will fail.
109-
# We either need to upgrade LLVM or change the directory being pointed to.
110104
- name: Native macOS (release)
111105
if: runner.os == 'macOS'
112106
run: |
113107
brew update
114-
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
115108
brew install llvm@${{ matrix.llvm }}
116109
export SDKROOT="$(xcrun --show-sdk-path)"
117-
export PATH="/usr/local/opt/llvm/bin:$PATH"
118-
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
110+
export PATH="/usr/local/opt/llvm@${{ matrix.llvm }}/bin:$PATH"
111+
export PATH="/opt/homebrew/opt/llvm@${{ matrix.llvm }}/bin:$PATH"
119112
CC=clang-20 ./configure --with-tail-call-interp
120113
make all --jobs 4
121114
./python.exe -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3

0 commit comments

Comments
 (0)