Skip to content

Commit 0faaf50

Browse files
authored
Merge branch '3.14' into backport-f24a012-3.14
2 parents 889aaab + 54261b6 commit 0faaf50

File tree

718 files changed

+20521
-8773
lines changed

Some content is hidden

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

718 files changed

+20521
-8773
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
{
2-
"image": "ghcr.io/python/devcontainer:2024.09.25.11038928730",
2+
"image": "ghcr.io/python/devcontainer:latest",
33
"onCreateCommand": [
44
// Install common tooling.
55
"dnf",
66
"install",
77
"-y",
8-
"which",
9-
"zsh",
10-
"fish",
118
// For umask fix below.
129
"/usr/bin/setfacl"
1310
],

.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: 13 additions & 19 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,24 +249,16 @@ jobs:
249249
strategy:
250250
fail-fast: false
251251
matrix:
252-
# Cirrus and macos-14 are M1, macos-13 is default GHA Intel.
253-
# macOS 13 only runs tests against the GIL-enabled CPython.
254-
# Cirrus used for upstream, macos-14 for forks.
252+
# macos-14 is M1, macos-15-intel is Intel.
253+
# macos-15-intel only runs tests against the GIL-enabled CPython.
255254
os:
256-
- ghcr.io/cirruslabs/macos-runner:sonoma
257255
- macos-14
258-
- macos-13
259-
is-fork: # only used for the exclusion trick
260-
- ${{ github.repository_owner != 'python' }}
256+
- macos-15-intel
261257
free-threading:
262258
- false
263259
- true
264260
exclude:
265-
- os: ghcr.io/cirruslabs/macos-runner:sonoma
266-
is-fork: true
267-
- os: macos-14
268-
is-fork: false
269-
- os: macos-13
261+
- os: macos-15-intel
270262
free-threading: true
271263
uses: ./.github/workflows/reusable-macos.yml
272264
with:
@@ -317,7 +309,10 @@ jobs:
317309
fail-fast: false
318310
matrix:
319311
os: [ubuntu-24.04]
320-
openssl_ver: [3.0.16, 3.1.8, 3.2.4, 3.3.3, 3.4.1]
312+
# Keep 1.1.1w in our list despite it being upstream EOL and otherwise
313+
# unsupported as it most resembles other 1.1.1-work-a-like ssl APIs
314+
# supported by important vendors such as AWS-LC.
315+
openssl_ver: [1.1.1w, 3.0.18, 3.2.6, 3.3.5, 3.4.3, 3.5.4]
321316
# See Tools/ssl/make_ssl_data.py for notes on adding a new version
322317
env:
323318
OPENSSL_VER: ${{ matrix.openssl_ver }}
@@ -378,9 +373,8 @@ jobs:
378373
fail-fast: false
379374
matrix:
380375
include:
381-
# Use the same runs-on configuration as build-macos and build-ubuntu.
382376
- arch: aarch64
383-
runs-on: ${{ github.repository_owner == 'python' && 'ghcr.io/cirruslabs/macos-runner:sonoma' || 'macos-14' }}
377+
runs-on: macos-14
384378
- arch: x86_64
385379
runs-on: ubuntu-24.04
386380

@@ -390,7 +384,7 @@ jobs:
390384
with:
391385
persist-credentials: false
392386
- name: Build and test
393-
run: ./Android/android.py ci ${{ matrix.arch }}-linux-android
387+
run: ./Android/android.py ci --fast-ci ${{ matrix.arch }}-linux-android
394388

395389
build-wasi:
396390
name: 'WASI'
@@ -407,7 +401,7 @@ jobs:
407401
needs: build-context
408402
if: needs.build-context.outputs.run-tests == 'true'
409403
env:
410-
OPENSSL_VER: 3.0.16
404+
OPENSSL_VER: 3.0.18
411405
PYTHONSTRICTEXTENSIONBUILD: 1
412406
steps:
413407
- uses: actions/checkout@v4
@@ -527,7 +521,7 @@ jobs:
527521
matrix:
528522
os: [ubuntu-24.04]
529523
env:
530-
OPENSSL_VER: 3.0.16
524+
OPENSSL_VER: 3.0.18
531525
PYTHONSTRICTEXTENSIONBUILD: 1
532526
ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0
533527
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 & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ 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/**"
2930
- "Tools/peg_generator/**"
3031
- "Tools/requirements-dev.txt"
31-
- "Tools/wasm/**"
3232
workflow_dispatch:
3333

3434
permissions:
@@ -60,7 +60,6 @@ jobs:
6060
"Tools/clinic",
6161
"Tools/jit",
6262
"Tools/peg_generator",
63-
"Tools/wasm",
6463
]
6564
steps:
6665
- uses: actions/checkout@v4

.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 }}

0 commit comments

Comments
 (0)