Skip to content

Commit 97f8bd0

Browse files
committed
Merge in the main branch
2 parents 8014206 + 1ddb412 commit 97f8bd0

File tree

772 files changed

+46191
-25661
lines changed

Some content is hidden

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

772 files changed

+46191
-25661
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ Lib/test/test_stable_abi_ctypes.py generated
9494
Lib/test/test_zoneinfo/data/*.json generated
9595
Lib/token.py generated
9696
Misc/sbom.spdx.json generated
97+
Modules/_testinternalcapi/test_cases.c.h generated
98+
Modules/_testinternalcapi/test_targets.h generated
9799
Objects/typeslots.inc generated
98100
PC/python3dll.c generated
99101
Parser/parser.c generated
@@ -104,6 +106,7 @@ Python/executor_cases.c.h generated
104106
Python/generated_cases.c.h generated
105107
Python/optimizer_cases.c.h generated
106108
Python/opcode_targets.h generated
109+
Python/record_functions.c.h generated
107110
Python/stdlib_module_names.h generated
108111
Tools/peg_generator/pegen/grammar_parser.py generated
109112
aclocal.m4 generated

.github/CODEOWNERS

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ Tools/wasm/config.site-wasm32-emscripten @freakboy3742 @emmatyping
176176
Tools/wasm/emscripten @freakboy3742 @emmatyping
177177

178178
# WebAssembly (WASI)
179+
Platforms/WASI @brettcannon @emmatyping @savannahostrowski
179180
Tools/wasm/wasi-env @brettcannon @emmatyping @savannahostrowski
180181
Tools/wasm/wasi.py @brettcannon @emmatyping @savannahostrowski
181182
Tools/wasm/wasi @brettcannon @emmatyping @savannahostrowski
@@ -291,6 +292,12 @@ Python/jit.c @brandtbucher @savannahostrowski @diegorusso
291292
Tools/jit/ @brandtbucher @savannahostrowski @diegorusso
292293
InternalDocs/jit.md @brandtbucher @savannahostrowski @diegorusso @AA-Turner
293294

295+
# Lazy imports (PEP 810)
296+
Objects/lazyimportobject.c @twouters @DinoV @pablogsal
297+
Include/internal/pycore_lazyimportobject.h @twouters @DinoV @pablogsal
298+
Lib/test/test_import/test_lazy_imports.py @twouters @DinoV @pablogsal
299+
Lib/test/test_import/data/lazy_imports/ @twouters @DinoV @pablogsal
300+
294301
# Micro-op / μop / Tier 2 Optimiser
295302
Python/optimizer.c @markshannon @Fidget-Spinner
296303
Python/optimizer_analysis.c @markshannon @tomasr8 @Fidget-Spinner @savannahostrowski
@@ -417,6 +424,7 @@ Lib/test/test_dataclasses/ @ericvsmith
417424

418425
# Dates and times
419426
Doc/**/*time.rst @pganssle @abalkin
427+
Doc/library/datetime-* @pganssle
420428
Doc/library/zoneinfo.rst @pganssle
421429
Include/datetime.h @pganssle @abalkin
422430
Include/internal/pycore_time.h @pganssle @abalkin
@@ -466,8 +474,9 @@ Lib/test/test_functools.py @rhettinger
466474
Modules/_functoolsmodule.c @rhettinger
467475

468476
# Garbage collector
469-
Modules/gcmodule.c @pablogsal
470-
Doc/library/gc.rst @pablogsal
477+
Modules/gcmodule.c @pablogsal
478+
Doc/library/gc.rst @pablogsal
479+
InternalDocs/garbage_collector.md @pablogsal
471480

472481
# Gettext
473482
Doc/library/gettext.rst @tomasr8

.github/ISSUE_TEMPLATE/documentation.md

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Documentation
2+
description: Report a problem with the documentation
3+
labels: ["docs"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
> [!NOTE]
9+
> Trivial changes (for example typos) don’t require an issue before opening a PR.
10+
- type: textarea
11+
id: description
12+
attributes:
13+
label: "Documentation"
14+
description: "A clear and concise description of the issue. Include a link to the page."
15+
validations:
16+
required: true

.github/actionlint.yaml

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

65
config-variables: null
76

.github/workflows/build.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,18 @@ jobs:
242242
# BOLT currently crashes during instrumentation on aarch64
243243
- os: ubuntu-24.04-arm
244244
bolt: true
245+
include:
246+
# Enable CPU-intensive tests on ARM (default build only)
247+
- os: ubuntu-24.04-arm
248+
bolt: false
249+
free-threading: false
250+
test-opts: '-u cpu'
245251
uses: ./.github/workflows/reusable-ubuntu.yml
246252
with:
247253
bolt-optimizations: ${{ matrix.bolt }}
248254
free-threading: ${{ matrix.free-threading }}
249255
os: ${{ matrix.os }}
256+
test-opts: ${{ matrix.test-opts || '' }}
250257

251258
build-ubuntu-ssltests-openssl:
252259
name: 'Ubuntu SSL tests with OpenSSL'
@@ -261,7 +268,7 @@ jobs:
261268
# Keep 1.1.1w in our list despite it being upstream EOL and otherwise
262269
# unsupported as it most resembles other 1.1.1-work-a-like ssl APIs
263270
# supported by important vendors such as AWS-LC.
264-
openssl_ver: [1.1.1w, 3.0.18, 3.3.5, 3.4.3, 3.5.4, 3.6.0]
271+
openssl_ver: [1.1.1w, 3.0.19, 3.3.6, 3.4.4, 3.5.5, 3.6.1]
265272
# See Tools/ssl/make_ssl_data.py for notes on adding a new version
266273
env:
267274
OPENSSL_VER: ${{ matrix.openssl_ver }}
@@ -428,7 +435,7 @@ jobs:
428435
needs: build-context
429436
if: needs.build-context.outputs.run-ubuntu == 'true'
430437
env:
431-
OPENSSL_VER: 3.0.18
438+
OPENSSL_VER: 3.5.5
432439
PYTHONSTRICTEXTENSIONBUILD: 1
433440
steps:
434441
- uses: actions/checkout@v6
@@ -539,7 +546,7 @@ jobs:
539546
matrix:
540547
os: [ubuntu-24.04]
541548
env:
542-
OPENSSL_VER: 3.0.18
549+
OPENSSL_VER: 3.5.5
543550
PYTHONSTRICTEXTENSIONBUILD: 1
544551
ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0
545552
steps:
@@ -574,7 +581,7 @@ jobs:
574581
run: |
575582
echo "PATH=/usr/lib/ccache:$PATH" >> "$GITHUB_ENV"
576583
- name: Configure CPython
577-
run: ./configure --config-cache --with-address-sanitizer --without-pymalloc
584+
run: ./configure --config-cache --with-address-sanitizer --without-pymalloc --with-openssl="$OPENSSL_DIR"
578585
- name: Build CPython
579586
run: make -j4
580587
- name: Display build info
@@ -655,11 +662,14 @@ jobs:
655662
matrix:
656663
sanitizer:
657664
- address
658-
- undefined
659-
- memory
660665
oss-fuzz-project-name:
661666
- cpython3
662667
- python3-libraries
668+
include:
669+
- sanitizer: undefined
670+
oss-fuzz-project-name: cpython3
671+
- sanitizer: memory
672+
oss-fuzz-project-name: cpython3
663673
exclude:
664674
# Note that the 'no-exclude' sentinel below is to prevent
665675
# an empty string value from excluding all jobs and causing

.github/workflows/jit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ jobs:
7474
include:
7575
- target: i686-pc-windows-msvc/msvc
7676
architecture: Win32
77-
runner: windows-2022
77+
runner: windows-2025
7878
- target: x86_64-pc-windows-msvc/msvc
7979
architecture: x64
80-
runner: windows-2022
80+
runner: windows-2025
8181
- target: aarch64-pc-windows-msvc/msvc
8282
architecture: ARM64
8383
runner: windows-11-arm

.github/workflows/reusable-macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
3636
- name: Install Homebrew dependencies
3737
run: |
38-
brew install pkg-config openssl@3.0 xz gdbm tcl-tk@9 make
38+
brew install pkg-config openssl@3.5 xz gdbm tcl-tk@9 make
3939
# Because alternate versions are not symlinked into place by default:
4040
brew link --overwrite tcl-tk@9
4141
- name: Configure CPython
@@ -50,7 +50,7 @@ jobs:
5050
--enable-safety \
5151
${{ inputs.free-threading && '--disable-gil' || '' }} \
5252
--prefix=/opt/python-dev \
53-
--with-openssl="$(brew --prefix openssl@3.0)"
53+
--with-openssl="$(brew --prefix openssl@3.5)"
5454
- name: Build CPython
5555
if : ${{ inputs.free-threading || inputs.os != 'macos-15-intel' }}
5656
run: gmake -j8

.github/workflows/reusable-ubuntu.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ on:
1717
description: OS to run the job
1818
required: true
1919
type: string
20+
test-opts:
21+
description: Extra options to pass to the test runner via TESTOPTS
22+
required: false
23+
type: string
24+
default: ''
2025

2126
env:
2227
FORCE_COLOR: 1
@@ -27,7 +32,7 @@ jobs:
2732
runs-on: ${{ inputs.os }}
2833
timeout-minutes: 60
2934
env:
30-
OPENSSL_VER: 3.0.18
35+
OPENSSL_VER: 3.5.5
3136
PYTHONSTRICTEXTENSIONBUILD: 1
3237
TERM: linux
3338
steps:
@@ -111,4 +116,6 @@ jobs:
111116
run: sudo mount "$CPYTHON_RO_SRCDIR" -oremount,rw
112117
- name: Tests
113118
working-directory: ${{ env.CPYTHON_BUILDDIR }}
114-
run: xvfb-run make ci
119+
run: xvfb-run make ci EXTRATESTOPTS="${TEST_OPTS}"
120+
env:
121+
TEST_OPTS: ${{ inputs.test-opts }}

.github/workflows/reusable-wasi.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
timeout-minutes: 60
1414
env:
1515
WASMTIME_VERSION: 38.0.3
16-
WASI_SDK_VERSION: 29
16+
WASI_SDK_VERSION: 30
1717
WASI_SDK_PATH: /opt/wasi-sdk
1818
CROSS_BUILD_PYTHON: cross-build/build
1919
CROSS_BUILD_WASI: cross-build/wasm32-wasip1
@@ -47,14 +47,14 @@ jobs:
4747
- name: "Runner image version"
4848
run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
4949
- name: "Configure build Python"
50-
run: python3 Tools/wasm/wasi configure-build-python -- --config-cache --with-pydebug
50+
run: python3 Platforms/WASI configure-build-python -- --config-cache --with-pydebug
5151
- name: "Make build Python"
52-
run: python3 Tools/wasm/wasi make-build-python
52+
run: python3 Platforms/WASI make-build-python
5353
- name: "Configure host"
5454
# `--with-pydebug` inferred from configure-build-python
55-
run: python3 Tools/wasm/wasi configure-host -- --config-cache
55+
run: python3 Platforms/WASI configure-host -- --config-cache
5656
- name: "Make host"
57-
run: python3 Tools/wasm/wasi make-host
57+
run: python3 Platforms/WASI make-host
5858
- name: "Display build info"
5959
run: make --directory "${CROSS_BUILD_WASI}" pythoninfo
6060
- name: "Test"

0 commit comments

Comments
 (0)