Skip to content

Commit 3b681b3

Browse files
committed
Merge remote-tracking branch 'upstream/main' into 3.14-fix-jsonlines
2 parents dbe2895 + 2060089 commit 3b681b3

File tree

1,542 files changed

+100758
-32366
lines changed

Some content is hidden

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

1,542 files changed

+100758
-32366
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"image": "ghcr.io/python/devcontainer:2024.09.25.11038928730",
2+
"image": "ghcr.io/python/devcontainer:2025.05.29.15334414373",
33
"onCreateCommand": [
44
// Install common tooling.
55
"dnf",

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
*.ico binary
1111
*.jpg binary
1212
*.pck binary
13+
*.pdf binary
1314
*.png binary
1415
*.psd binary
1516
*.tar binary
@@ -67,6 +68,7 @@ PCbuild/readme.txt dos
6768
**/clinic/*.cpp.h generated
6869
**/clinic/*.h.h generated
6970
*_db.h generated
71+
Doc/c-api/lifecycle.dot.svg generated
7072
Doc/data/stable_abi.dat generated
7173
Doc/library/token-list.inc generated
7274
Include/internal/pycore_ast.h generated

.github/CODEOWNERS

Lines changed: 42 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@ Modules/Setup* @erlend-aasland
3030
Objects/set* @rhettinger
3131
Objects/dict* @methane @markshannon
3232
Objects/typevarobject.c @JelleZijlstra
33+
Objects/unionobject.c @JelleZijlstra
3334
Objects/type* @markshannon
3435
Objects/codeobject.c @markshannon
3536
Objects/frameobject.c @markshannon
3637
Objects/call.c @markshannon
38+
Objects/object.c @ZeroIntensity
3739
Python/ceval*.c @markshannon
3840
Python/ceval*.h @markshannon
3941
Python/codegen.c @markshannon @iritkatriel
@@ -43,8 +45,9 @@ Python/flowgraph.c @markshannon @iritkatriel
4345
Python/instruction_sequence.c @iritkatriel
4446
Python/bytecodes.c @markshannon
4547
Python/optimizer*.c @markshannon
46-
Python/optimizer_analysis.c @Fidget-Spinner
47-
Python/optimizer_bytecodes.c @Fidget-Spinner
48+
Python/optimizer_analysis.c @Fidget-Spinner @tomasr8
49+
Python/optimizer_bytecodes.c @Fidget-Spinner @tomasr8
50+
Python/optimizer_symbols.c @tomasr8
4851
Python/symtable.c @JelleZijlstra @carljm
4952
Lib/_pyrepl/* @pablogsal @lysnikolaou @ambv
5053
Lib/test/test_patma.py @brandtbucher
@@ -65,8 +68,8 @@ Doc/_static/** @AA-Turner @hugovk
6568
Doc/tools/** @AA-Turner @hugovk
6669

6770
# runtime state/lifecycle
68-
**/*pylifecycle* @ericsnowcurrently
69-
**/*pystate* @ericsnowcurrently
71+
**/*pylifecycle* @ericsnowcurrently @ZeroIntensity
72+
**/*pystate* @ericsnowcurrently @ZeroIntensity
7073
**/*preconfig* @ericsnowcurrently
7174
**/*initconfig* @ericsnowcurrently
7275
**/*pathconfig* @ericsnowcurrently
@@ -167,6 +170,9 @@ Include/internal/pycore_time.h @pganssle @abalkin
167170
**/*imap* @python/email-team
168171
**/*poplib* @python/email-team
169172

173+
# Exclude .mailmap from being owned by @python/email-team
174+
/.mailmap
175+
170176
# Garbage collector
171177
/Modules/gcmodule.c @pablogsal
172178
/Doc/library/gc.rst @pablogsal
@@ -183,13 +189,13 @@ Include/internal/pycore_time.h @pganssle @abalkin
183189
/Tools/cases_generator/ @markshannon
184190

185191
# AST
186-
Python/ast.c @isidentical @JelleZijlstra @eclips4
187-
Python/ast_opt.c @isidentical @eclips4
188-
Parser/asdl.py @isidentical @JelleZijlstra @eclips4
189-
Parser/asdl_c.py @isidentical @JelleZijlstra @eclips4
190-
Lib/ast.py @isidentical @JelleZijlstra @eclips4
191-
Lib/_ast_unparse.py @isidentical @JelleZijlstra @eclips4
192-
Lib/test/test_ast/ @eclips4
192+
Python/ast.c @isidentical @JelleZijlstra @eclips4 @tomasr8
193+
Python/ast_preprocess.c @isidentical @eclips4 @tomasr8
194+
Parser/asdl.py @isidentical @JelleZijlstra @eclips4 @tomasr8
195+
Parser/asdl_c.py @isidentical @JelleZijlstra @eclips4 @tomasr8
196+
Lib/ast.py @isidentical @JelleZijlstra @eclips4 @tomasr8
197+
Lib/_ast_unparse.py @isidentical @JelleZijlstra @eclips4 @tomasr8
198+
Lib/test/test_ast/ @eclips4 @tomasr8
193199

194200
# Mock
195201
/Lib/unittest/mock.py @cjw296
@@ -277,9 +283,13 @@ Doc/howto/clinic.rst @erlend-aasland
277283
# Subinterpreters
278284
**/*interpreteridobject.* @ericsnowcurrently
279285
**/*crossinterp* @ericsnowcurrently
280-
Lib/test/support/interpreters/ @ericsnowcurrently
281286
Modules/_interp*module.c @ericsnowcurrently
287+
Lib/test/test__interp*.py @ericsnowcurrently
288+
Lib/concurrent/interpreters/ @ericsnowcurrently
289+
Lib/test/support/channels.py @ericsnowcurrently
290+
Doc/library/concurrent.interpreters.rst @ericsnowcurrently
282291
Lib/test/test_interpreters/ @ericsnowcurrently
292+
Lib/concurrent/futures/interpreter.py @ericsnowcurrently
283293

284294
# Android
285295
**/*Android* @mhsmith @freakboy3742
@@ -294,7 +304,12 @@ Lib/test/test_interpreters/ @ericsnowcurrently
294304
**/*-ios* @freakboy3742
295305

296306
# WebAssembly
297-
/Tools/wasm/ @brettcannon @freakboy3742
307+
Tools/wasm/config.site-wasm32-emscripten @freakboy3742
308+
/Tools/wasm/README.md @brettcannon @freakboy3742
309+
/Tools/wasm/wasi-env @brettcannon
310+
/Tools/wasm/wasi.py @brettcannon
311+
/Tools/wasm/emscripten @freakboy3742
312+
/Tools/wasm/wasi @brettcannon
298313

299314
# SBOM
300315
/Misc/externals.spdx.json @sethmlarson
@@ -316,3 +331,17 @@ Lib/test/test__colorize.py @hugovk
316331

317332
# Fuzzing
318333
Modules/_xxtestfuzz/ @ammaraskar
334+
335+
# t-strings
336+
**/*interpolationobject* @lysnikolaou
337+
**/*templateobject* @lysnikolaou
338+
**/*templatelib* @lysnikolaou
339+
**/*tstring* @lysnikolaou
340+
341+
# Remote debugging
342+
Python/remote_debug.h @pablogsal
343+
Python/remote_debugging.c @pablogsal
344+
Modules/_remote_debugging_module.c @pablogsal @ambv @1st1
345+
346+
# gettext
347+
**/*gettext* @tomasr8

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ body:
4040
- "3.12"
4141
- "3.13"
4242
- "3.14"
43+
- "3.15"
4344
- "CPython main branch"
4445
validations:
4546
required: true

.github/ISSUE_TEMPLATE/crash.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ body:
3333
- "3.12"
3434
- "3.13"
3535
- "3.14"
36+
- "3.15"
3637
- "CPython main branch"
3738
validations:
3839
required: true

.github/workflows/build.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ permissions:
1515
contents: read
1616

1717
concurrency:
18-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-reusable
18+
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency
19+
# 'group' must be a key uniquely representing a PR or push event.
20+
# github.workflow is the workflow name
21+
# github.actor is the user invoking the workflow
22+
# github.head_ref is the source branch of the PR or otherwise blank
23+
# github.run_id is a unique number for the current run
24+
group: ${{ github.workflow }}-${{ github.actor }}-${{ github.head_ref || github.run_id }}
1925
cancel-in-progress: true
2026

2127
env:
@@ -264,7 +270,7 @@ jobs:
264270
fail-fast: false
265271
matrix:
266272
os: [ubuntu-24.04]
267-
openssl_ver: [3.0.15, 3.1.7, 3.2.3, 3.3.2, 3.4.0]
273+
openssl_ver: [3.0.16, 3.1.8, 3.2.4, 3.3.3, 3.4.1]
268274
# See Tools/ssl/make_ssl_data.py for notes on adding a new version
269275
env:
270276
OPENSSL_VER: ${{ matrix.openssl_ver }}
@@ -331,7 +337,7 @@ jobs:
331337
needs: build-context
332338
if: needs.build-context.outputs.run-tests == 'true'
333339
env:
334-
OPENSSL_VER: 3.0.15
340+
OPENSSL_VER: 3.0.16
335341
PYTHONSTRICTEXTENSIONBUILD: 1
336342
steps:
337343
- uses: actions/checkout@v4
@@ -422,8 +428,9 @@ jobs:
422428
# failing when executed from inside a virtual environment.
423429
"${VENV_PYTHON}" -m test \
424430
-W \
425-
-o \
431+
--slowest \
426432
-j4 \
433+
--timeout 900 \
427434
-x test_asyncio \
428435
-x test_multiprocessing_fork \
429436
-x test_multiprocessing_forkserver \
@@ -450,7 +457,7 @@ jobs:
450457
matrix:
451458
os: [ubuntu-24.04]
452459
env:
453-
OPENSSL_VER: 3.0.15
460+
OPENSSL_VER: 3.0.16
454461
PYTHONSTRICTEXTENSIONBUILD: 1
455462
ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0
456463
steps:
@@ -520,6 +527,14 @@ jobs:
520527
config_hash: ${{ needs.build-context.outputs.config-hash }}
521528
free-threading: ${{ matrix.free-threading }}
522529

530+
build-ubsan:
531+
name: Undefined behavior sanitizer
532+
needs: build-context
533+
if: needs.build-context.outputs.run-tests == 'true'
534+
uses: ./.github/workflows/reusable-ubsan.yml
535+
with:
536+
config_hash: ${{ needs.build-context.outputs.config-hash }}
537+
523538
cross-build-linux:
524539
name: Cross build Linux
525540
runs-on: ubuntu-latest

.github/workflows/jit.yml

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ jobs:
9595
with:
9696
python-version: '3.11'
9797

98+
# PCbuild downloads LLVM automatically:
9899
- name: Windows
99100
if: runner.os == 'Windows'
100101
run: |
101-
choco install llvm --allow-downgrade --no-progress --version ${{ matrix.llvm }}.1.0
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
@@ -113,7 +113,7 @@ jobs:
113113
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
114114
brew install llvm@${{ matrix.llvm }}
115115
export SDKROOT="$(xcrun --show-sdk-path)"
116-
./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '' }}
116+
./configure --enable-experimental-jit --enable-universalsdk --with-universal-archs=universal2 ${{ matrix.debug && '--with-pydebug' || '' }}
117117
make all --jobs 4
118118
./python.exe -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
119119
@@ -126,29 +126,30 @@ jobs:
126126
make all --jobs 4
127127
./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
128128
129-
jit-with-disabled-gil:
130-
name: Free-Threaded (Debug)
131-
needs: interpreter
132-
runs-on: ubuntu-24.04
133-
timeout-minutes: 90
134-
strategy:
135-
fail-fast: false
136-
matrix:
137-
llvm:
138-
- 19
139-
steps:
140-
- uses: actions/checkout@v4
141-
with:
142-
persist-credentials: false
143-
- uses: actions/setup-python@v5
144-
with:
145-
python-version: '3.11'
146-
- name: Build with JIT enabled and GIL disabled
147-
run: |
148-
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }}
149-
export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH"
150-
./configure --enable-experimental-jit --with-pydebug --disable-gil
151-
make all --jobs 4
152-
- name: Run tests
153-
run: |
154-
./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
129+
# XXX: GH-133171
130+
# jit-with-disabled-gil:
131+
# name: Free-Threaded (Debug)
132+
# needs: interpreter
133+
# runs-on: ubuntu-24.04
134+
# timeout-minutes: 90
135+
# strategy:
136+
# fail-fast: false
137+
# matrix:
138+
# llvm:
139+
# - 19
140+
# steps:
141+
# - uses: actions/checkout@v4
142+
# with:
143+
# persist-credentials: false
144+
# - uses: actions/setup-python@v5
145+
# with:
146+
# python-version: '3.11'
147+
# - name: Build with JIT enabled and GIL disabled
148+
# run: |
149+
# sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }}
150+
# export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH"
151+
# ./configure --enable-experimental-jit --with-pydebug --disable-gil
152+
# make all --jobs 4
153+
# - name: Run tests
154+
# run: |
155+
# ./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3

.github/workflows/mypy.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,23 @@ on:
88
pull_request:
99
paths:
1010
- ".github/workflows/mypy.yml"
11+
- "Lib/_colorize.py"
1112
- "Lib/_pyrepl/**"
1213
- "Lib/test/libregrtest/**"
14+
- "Lib/tomllib/**"
15+
- "Misc/mypy/**"
16+
- "Tools/build/compute-changes.py"
17+
- "Tools/build/deepfreeze.py"
1318
- "Tools/build/generate_sbom.py"
19+
- "Tools/build/generate-build-details.py"
20+
- "Tools/build/verify_ensurepip_wheels.py"
21+
- "Tools/build/update_file.py"
22+
- "Tools/build/umarshal.py"
1423
- "Tools/cases_generator/**"
1524
- "Tools/clinic/**"
1625
- "Tools/jit/**"
1726
- "Tools/peg_generator/**"
1827
- "Tools/requirements-dev.txt"
19-
- "Tools/wasm/**"
2028
workflow_dispatch:
2129

2230
permissions:
@@ -42,12 +50,12 @@ jobs:
4250
target: [
4351
"Lib/_pyrepl",
4452
"Lib/test/libregrtest",
53+
"Lib/tomllib",
4554
"Tools/build",
4655
"Tools/cases_generator",
4756
"Tools/clinic",
4857
"Tools/jit",
4958
"Tools/peg_generator",
50-
"Tools/wasm",
5159
]
5260
steps:
5361
- uses: actions/checkout@v4

.github/workflows/posix-deps-apt.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ apt-get -yq install \
1717
libreadline6-dev \
1818
libsqlite3-dev \
1919
libssl-dev \
20+
libzstd-dev \
2021
lzma \
2122
lzma-dev \
2223
strace \

.github/workflows/reusable-context.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ jobs:
9797
run: python Tools/build/compute-changes.py
9898
env:
9999
GITHUB_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
100+
GITHUB_EVENT_NAME: ${{ github.event_name }}
101+
CCF_TARGET_REF: ${{ github.base_ref || github.event.repository.default_branch }}
102+
CCF_HEAD_REF: ${{ github.event.pull_request.head.sha || github.sha }}
100103

101104
- name: Compute hash for config cache key
102105
id: config-hash

0 commit comments

Comments
 (0)