Skip to content

Commit e0fd678

Browse files
authored
Merge branch '3.14' into backport-94498a5-3.14
2 parents 6fbfca6 + 9f97fa3 commit e0fd678

File tree

575 files changed

+16361
-7620
lines changed

Some content is hidden

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

575 files changed

+16361
-7620
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
.github/** @ezio-melotti @hugovk @AA-Turner
99

1010
# pre-commit
11-
.pre-commit-config.yaml @hugovk @AlexWaygood
11+
.pre-commit-config.yaml @hugovk
1212
.ruff.toml @hugovk @AlexWaygood @AA-Turner
1313

1414
# Build system
@@ -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: 39 additions & 11 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
@@ -225,8 +225,8 @@ jobs:
225225
free-threading: ${{ matrix.free-threading }}
226226

227227
build-windows-msi:
228-
name: >- # ${{ '' } is a hack to nest jobs under the same sidebar category
229-
Windows MSI${{ '' }}
228+
# ${{ '' } is a hack to nest jobs under the same sidebar category.
229+
name: Windows MSI${{ '' }} # zizmor: ignore[obfuscation]
230230
needs: build-context
231231
if: fromJSON(needs.build-context.outputs.run-windows-msi)
232232
strategy:
@@ -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 }}
@@ -369,6 +372,29 @@ jobs:
369372
- name: SSL tests
370373
run: ./python Lib/test/ssltests.py
371374

375+
build-android:
376+
name: Android (${{ matrix.arch }})
377+
needs: build-context
378+
if: needs.build-context.outputs.run-tests == 'true'
379+
timeout-minutes: 60
380+
strategy:
381+
fail-fast: false
382+
matrix:
383+
include:
384+
# Use the same runs-on configuration as build-macos and build-ubuntu.
385+
- arch: aarch64
386+
runs-on: ${{ github.repository_owner == 'python' && 'ghcr.io/cirruslabs/macos-runner:sonoma' || 'macos-14' }}
387+
- arch: x86_64
388+
runs-on: ubuntu-24.04
389+
390+
runs-on: ${{ matrix.runs-on }}
391+
steps:
392+
- uses: actions/checkout@v4
393+
with:
394+
persist-credentials: false
395+
- name: Build and test
396+
run: ./Android/android.py ci --fast-ci ${{ matrix.arch }}-linux-android
397+
372398
build-wasi:
373399
name: 'WASI'
374400
needs: build-context
@@ -384,7 +410,7 @@ jobs:
384410
needs: build-context
385411
if: needs.build-context.outputs.run-tests == 'true'
386412
env:
387-
OPENSSL_VER: 3.0.16
413+
OPENSSL_VER: 3.0.18
388414
PYTHONSTRICTEXTENSIONBUILD: 1
389415
steps:
390416
- uses: actions/checkout@v4
@@ -504,7 +530,7 @@ jobs:
504530
matrix:
505531
os: [ubuntu-24.04]
506532
env:
507-
OPENSSL_VER: 3.0.16
533+
OPENSSL_VER: 3.0.18
508534
PYTHONSTRICTEXTENSIONBUILD: 1
509535
ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0
510536
steps:
@@ -558,8 +584,8 @@ jobs:
558584
run: xvfb-run make ci
559585

560586
build-san:
561-
name: >- # ${{ '' } is a hack to nest jobs under the same sidebar category
562-
Sanitizers${{ '' }}
587+
# ${{ '' } is a hack to nest jobs under the same sidebar category.
588+
name: Sanitizers${{ '' }} # zizmor: ignore[obfuscation]
563589
needs: build-context
564590
if: needs.build-context.outputs.run-tests == 'true'
565591
strategy:
@@ -676,6 +702,7 @@ jobs:
676702
- build-macos
677703
- build-ubuntu
678704
- build-ubuntu-ssltests
705+
- build-android
679706
- build-wasi
680707
- test-hypothesis
681708
- build-asan
@@ -709,6 +736,7 @@ jobs:
709736
build-macos,
710737
build-ubuntu,
711738
build-ubuntu-ssltests,
739+
build-android,
712740
build-wasi,
713741
test-hypothesis,
714742
build-asan,

.github/workflows/jit.yml

Lines changed: 7 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,17 +102,16 @@ 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)"
111+
# Set MACOSX_DEPLOYMENT_TARGET and -Werror=unguarded-availability to
112+
# make sure we don't break downstream distributors (like uv):
113+
export CFLAGS_JIT='-Werror=unguarded-availability'
114+
export MACOSX_DEPLOYMENT_TARGET=10.15
116115
./configure --enable-experimental-jit --enable-universalsdk --with-universal-archs=universal2 ${{ matrix.debug && '--with-pydebug' || '' }}
117116
make all --jobs 4
118117
./python.exe -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3

.github/workflows/mypy.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,17 @@ on:
1313
- "Lib/test/libregrtest/**"
1414
- "Lib/tomllib/**"
1515
- "Misc/mypy/**"
16+
- "Tools/build/check_extension_modules.py"
17+
- "Tools/build/check_warnings.py"
1618
- "Tools/build/compute-changes.py"
1719
- "Tools/build/deepfreeze.py"
18-
- "Tools/build/generate_sbom.py"
1920
- "Tools/build/generate-build-details.py"
20-
- "Tools/build/verify_ensurepip_wheels.py"
21-
- "Tools/build/update_file.py"
21+
- "Tools/build/generate_sbom.py"
22+
- "Tools/build/generate_stdlib_module_names.py"
23+
- "Tools/build/mypy.ini"
2224
- "Tools/build/umarshal.py"
25+
- "Tools/build/update_file.py"
26+
- "Tools/build/verify_ensurepip_wheels.py"
2327
- "Tools/cases_generator/**"
2428
- "Tools/clinic/**"
2529
- "Tools/jit/**"

.github/workflows/reusable-docs.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
run: |
6767
set -Eeuo pipefail
6868
# Build docs with the nit-picky option; write warnings to file
69-
make -C Doc/ PYTHON=../python SPHINXOPTS="--quiet --nitpicky --fail-on-warning --warning-file sphinx-warnings.txt" html
69+
make -C Doc/ PYTHON=../python SPHINXOPTS="--quiet --nitpicky --warning-file sphinx-warnings.txt" html
7070
- name: 'Check warnings'
7171
if: github.event_name == 'pull_request'
7272
run: |
@@ -102,3 +102,30 @@ jobs:
102102
# Use "xvfb-run" since some doctest tests open GUI windows
103103
- name: 'Run documentation doctest'
104104
run: xvfb-run make -C Doc/ PYTHON=../python SPHINXERRORHANDLING="--fail-on-warning" doctest
105+
106+
check-epub:
107+
name: 'Check EPUB'
108+
runs-on: ubuntu-latest
109+
timeout-minutes: 30
110+
steps:
111+
- uses: actions/checkout@v4
112+
with:
113+
persist-credentials: false
114+
- name: 'Set up Python'
115+
uses: actions/setup-python@v5
116+
with:
117+
python-version: '3'
118+
cache: 'pip'
119+
cache-dependency-path: 'Doc/requirements.txt'
120+
- name: 'Install build dependencies'
121+
run: |
122+
make -C Doc/ venv
123+
python -m pip install epubcheck
124+
- name: 'Build EPUB documentation'
125+
run: make -C Doc/ PYTHON=../python epub
126+
- name: 'Run epubcheck'
127+
continue-on-error: true
128+
run: epubcheck Doc/build/epub/Python.epub &> Doc/epubcheck.txt
129+
- run: cat Doc/epubcheck.txt
130+
- name: 'Check for fatal errors in EPUB'
131+
run: python Doc/tools/check-epub.py

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

0 commit comments

Comments
 (0)