Skip to content

Commit 834d6d4

Browse files
committed
Update whatsnew again
2 parents 9cf844a + efc1685 commit 834d6d4

988 files changed

Lines changed: 35842 additions & 13198 deletions

File tree

Some content is hidden

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

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
root = true
22

3-
[*.{py,c,cpp,h,js,rst,md,yml,yaml}]
3+
[*.{py,c,cpp,h,js,rst,md,yml,yaml,gram}]
44
trim_trailing_whitespace = true
55
insert_final_newline = true
66
indent_style = space
77

8-
[*.{py,c,cpp,h}]
8+
[*.{py,c,cpp,h,gram}]
99
indent_size = 4
1010

1111
[*.rst]

.github/CODEOWNERS

Lines changed: 58 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,23 @@
44
# It uses the same pattern rule for gitignore file
55
# https://git-scm.com/docs/gitignore#_pattern_format
66

7-
# GitHub
7+
# Azure Pipelines
8+
.azure-pipelines/ @AA-Turner
9+
10+
# GitHub & related scripts
811
.github/** @ezio-melotti @hugovk @AA-Turner
12+
Tools/build/compute-changes.py @AA-Turner
13+
Tools/build/verify_ensurepip_wheels.py @AA-Turner
914

1015
# pre-commit
11-
.pre-commit-config.yaml @hugovk @AlexWaygood
16+
.pre-commit-config.yaml @hugovk
1217
.ruff.toml @hugovk @AlexWaygood @AA-Turner
1318

14-
# Build system
15-
configure* @erlend-aasland @corona10
16-
Makefile.pre.in @erlend-aasland
17-
Modules/Setup* @erlend-aasland
19+
# Build system (autotools)
20+
configure* @erlend-aasland @corona10 @AA-Turner
21+
Makefile.pre.in @erlend-aasland @AA-Turner
22+
Modules/Setup* @erlend-aasland @AA-Turner
23+
Tools/build/regen-configure.sh @AA-Turner
1824

1925
# argparse
2026
**/*argparse* @savannahostrowski
@@ -26,7 +32,8 @@ Modules/Setup* @erlend-aasland
2632
**/*context* @1st1
2733
**/*genobject* @markshannon
2834
**/*hamt* @1st1
29-
**/*jit* @brandtbucher @savannahostrowski
35+
**/*jit* @brandtbucher @savannahostrowski @diegorusso
36+
Python/perf_jit_trampoline.c # Exclude the owners of "**/*jit*", above.
3037
Objects/set* @rhettinger
3138
Objects/dict* @methane @markshannon
3239
Objects/typevarobject.c @JelleZijlstra
@@ -45,8 +52,9 @@ Python/flowgraph.c @markshannon @iritkatriel
4552
Python/instruction_sequence.c @iritkatriel
4653
Python/bytecodes.c @markshannon
4754
Python/optimizer*.c @markshannon
48-
Python/optimizer_analysis.c @Fidget-Spinner
49-
Python/optimizer_bytecodes.c @Fidget-Spinner
55+
Python/optimizer_analysis.c @Fidget-Spinner @tomasr8
56+
Python/optimizer_bytecodes.c @Fidget-Spinner @tomasr8
57+
Python/optimizer_symbols.c @tomasr8
5058
Python/symtable.c @JelleZijlstra @carljm
5159
Lib/_pyrepl/* @pablogsal @lysnikolaou @ambv
5260
Lib/test/test_patma.py @brandtbucher
@@ -65,6 +73,7 @@ Doc/make.bat @AA-Turner @hugovk
6573
Doc/requirements.txt @AA-Turner @hugovk
6674
Doc/_static/** @AA-Turner @hugovk
6775
Doc/tools/** @AA-Turner @hugovk
76+
.readthedocs.yml @AA-Turner
6877

6978
# runtime state/lifecycle
7079
**/*pylifecycle* @ericsnowcurrently @ZeroIntensity
@@ -153,6 +162,10 @@ Doc/c-api/module.rst @ericsnowcurrently
153162
**/*importlib/resources/* @jaraco @warsaw @FFY00
154163
**/*importlib/metadata/* @jaraco @warsaw
155164

165+
# Calendar
166+
Lib/calendar.py @AA-Turner
167+
Lib/test/test_calendar.py @AA-Turner
168+
156169
# Dates and times
157170
**/*datetime* @pganssle @abalkin
158171
**/*str*time* @pganssle @abalkin
@@ -188,13 +201,13 @@ Include/internal/pycore_time.h @pganssle @abalkin
188201
/Tools/cases_generator/ @markshannon
189202

190203
# AST
191-
Python/ast.c @isidentical @JelleZijlstra @eclips4
192-
Python/ast_preprocess.c @isidentical @eclips4
193-
Parser/asdl.py @isidentical @JelleZijlstra @eclips4
194-
Parser/asdl_c.py @isidentical @JelleZijlstra @eclips4
195-
Lib/ast.py @isidentical @JelleZijlstra @eclips4
196-
Lib/_ast_unparse.py @isidentical @JelleZijlstra @eclips4
197-
Lib/test/test_ast/ @eclips4
204+
Python/ast.c @isidentical @JelleZijlstra @eclips4 @tomasr8
205+
Python/ast_preprocess.c @isidentical @eclips4 @tomasr8
206+
Parser/asdl.py @isidentical @JelleZijlstra @eclips4 @tomasr8
207+
Parser/asdl_c.py @isidentical @JelleZijlstra @eclips4 @tomasr8
208+
Lib/ast.py @isidentical @JelleZijlstra @eclips4 @tomasr8
209+
Lib/_ast_unparse.py @isidentical @JelleZijlstra @eclips4 @tomasr8
210+
Lib/test/test_ast/ @eclips4 @tomasr8
198211

199212
# Mock
200213
/Lib/unittest/mock.py @cjw296
@@ -203,6 +216,11 @@ Lib/test/test_ast/ @eclips4
203216
# multiprocessing
204217
**/*multiprocessing* @gpshead
205218

219+
# pydoc
220+
Lib/pydoc.py @AA-Turner
221+
Lib/pydoc_data/ @AA-Turner
222+
Lib/test/test_pydoc/ @AA-Turner
223+
206224
# SQLite 3
207225
**/*sqlite* @berkerpeksag @erlend-aasland
208226

@@ -215,6 +233,11 @@ Lib/test/test_ast/ @eclips4
215233
**/*pdb* @gaogaotiantian
216234
**/*bdb* @gaogaotiantian
217235

236+
# types
237+
Lib/test/test_types.py @AA-Turner
238+
Lib/types.py @AA-Turner
239+
Modules/_typesmodule.c @AA-Turner
240+
218241
# Limited C API & stable ABI
219242
Tools/build/stable_abi.py @encukou
220243
Misc/stable_abi.toml @encukou
@@ -232,6 +255,11 @@ Doc/c-api/stable.rst @encukou
232255
/Tools/msi/ @python/windows-team
233256
/Tools/nuget/ @python/windows-team
234257

258+
# Zstandard
259+
Lib/compression/zstd/ @AA-Turner
260+
Lib/test/test_zstd.py @AA-Turner
261+
Modules/_zstd/ @AA-Turner
262+
235263
# Misc
236264
**/*itertools* @rhettinger
237265
**/*collections* @rhettinger
@@ -264,6 +292,9 @@ Doc/c-api/stable.rst @encukou
264292

265293
**/*cjkcodecs* @corona10
266294

295+
# Patchcheck
296+
Tools/patchcheck/ @AA-Turner
297+
267298
# macOS
268299
/Mac/ @python/macos-team
269300
**/*osx_support* @python/macos-team
@@ -275,9 +306,9 @@ Doc/c-api/stable.rst @encukou
275306
**/*zipfile/_path/* @jaraco
276307

277308
# Argument Clinic
278-
/Tools/clinic/** @erlend-aasland
279-
/Lib/test/test_clinic.py @erlend-aasland
280-
Doc/howto/clinic.rst @erlend-aasland
309+
/Tools/clinic/** @erlend-aasland @AA-Turner
310+
/Lib/test/test_clinic.py @erlend-aasland @AA-Turner
311+
Doc/howto/clinic.rst @erlend-aasland @AA-Turner
281312

282313
# Subinterpreters
283314
**/*interpreteridobject.* @ericsnowcurrently
@@ -321,6 +352,7 @@ Lib/test/test_configparser.py @jaraco
321352

322353
# Doc sections
323354
Doc/reference/ @willingc @AA-Turner
355+
Doc/whatsnew/ @AA-Turner
324356

325357
**/*weakref* @kumaraditya303
326358

@@ -334,10 +366,16 @@ Modules/_xxtestfuzz/ @ammaraskar
334366
# t-strings
335367
**/*interpolationobject* @lysnikolaou
336368
**/*templateobject* @lysnikolaou
337-
**/*templatelib* @lysnikolaou
369+
**/*templatelib* @lysnikolaou @AA-Turner
338370
**/*tstring* @lysnikolaou
339371

340372
# Remote debugging
341373
Python/remote_debug.h @pablogsal
342374
Python/remote_debugging.c @pablogsal
343375
Modules/_remote_debugging_module.c @pablogsal @ambv @1st1
376+
377+
# gettext
378+
**/*gettext* @tomasr8
379+
380+
# Internal Docs
381+
InternalDocs/ @AA-Turner

.github/CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Contributing to Python
44
Build Status
55
------------
66

7-
- `Buildbot status overview <https://buildbot.python.org/all/#/release_status>`_
7+
- `Buildbot status overview <https://buildbot.python.org/#/release_status>`_
88

99
- `GitHub Actions status <https://github.com/python/cpython/actions/workflows/build.yml>`_
1010

.github/workflows/build.yml

Lines changed: 97 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ jobs:
260260
free-threading: ${{ matrix.free-threading }}
261261
os: ${{ matrix.os }}
262262

263-
build-ubuntu-ssltests:
263+
build-ubuntu-ssltests-openssl:
264264
name: 'Ubuntu SSL tests with OpenSSL'
265265
runs-on: ${{ matrix.os }}
266266
timeout-minutes: 60
@@ -322,6 +322,81 @@ jobs:
322322
- name: SSL tests
323323
run: ./python Lib/test/ssltests.py
324324

325+
build-ubuntu-ssltests-awslc:
326+
name: 'Ubuntu SSL tests with AWS-LC'
327+
runs-on: ${{ matrix.os }}
328+
timeout-minutes: 60
329+
needs: build-context
330+
if: needs.build-context.outputs.run-tests == 'true'
331+
strategy:
332+
fail-fast: false
333+
matrix:
334+
os: [ubuntu-24.04]
335+
awslc_ver: [1.55.0]
336+
env:
337+
AWSLC_VER: ${{ matrix.awslc_ver}}
338+
MULTISSL_DIR: ${{ github.workspace }}/multissl
339+
OPENSSL_DIR: ${{ github.workspace }}/multissl/aws-lc/${{ matrix.awslc_ver }}
340+
LD_LIBRARY_PATH: ${{ github.workspace }}/multissl/aws-lc/${{ matrix.awslc_ver }}/lib
341+
steps:
342+
- uses: actions/checkout@v4
343+
with:
344+
persist-credentials: false
345+
- name: Runner image version
346+
run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
347+
- name: Restore config.cache
348+
uses: actions/cache@v4
349+
with:
350+
path: config.cache
351+
key: ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.build-context.outputs.config-hash }}
352+
- name: Register gcc problem matcher
353+
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
354+
- name: Install dependencies
355+
run: sudo ./.github/workflows/posix-deps-apt.sh
356+
- name: Configure SSL lib env vars
357+
run: |
358+
echo "MULTISSL_DIR=${GITHUB_WORKSPACE}/multissl" >> "$GITHUB_ENV"
359+
echo "OPENSSL_DIR=${GITHUB_WORKSPACE}/multissl/aws-lc/${AWSLC_VER}" >> "$GITHUB_ENV"
360+
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/aws-lc/${AWSLC_VER}/lib" >> "$GITHUB_ENV"
361+
- name: 'Restore AWS-LC build'
362+
id: cache-aws-lc
363+
uses: actions/cache@v4
364+
with:
365+
path: ./multissl/aws-lc/${{ matrix.awslc_ver }}
366+
key: ${{ matrix.os }}-multissl-aws-lc-${{ matrix.awslc_ver }}
367+
- name: Install AWS-LC
368+
if: steps.cache-aws-lc.outputs.cache-hit != 'true'
369+
run: |
370+
python3 Tools/ssl/multissltests.py \
371+
--steps=library \
372+
--base-directory "$MULTISSL_DIR" \
373+
--awslc ${{ matrix.awslc_ver }} \
374+
--system Linux
375+
- name: Add ccache to PATH
376+
run: |
377+
echo "PATH=/usr/lib/ccache:$PATH" >> "$GITHUB_ENV"
378+
- name: Configure ccache action
379+
uses: hendrikmuhs/ccache-action@v1.2
380+
with:
381+
save: false
382+
- name: Configure CPython
383+
run: |
384+
./configure CFLAGS="-fdiagnostics-format=json" \
385+
--config-cache \
386+
--enable-slower-safety \
387+
--with-pydebug \
388+
--with-openssl="$OPENSSL_DIR" \
389+
--with-builtin-hashlib-hashes=blake2 \
390+
--with-ssl-default-suites=openssl
391+
- name: Build CPython
392+
run: make -j
393+
- name: Display build info
394+
run: make pythoninfo
395+
- name: Verify python is linked to AWS-LC
396+
run: ./python -c 'import ssl; print(ssl.OPENSSL_VERSION)' | grep AWS-LC
397+
- name: SSL tests
398+
run: ./python Lib/test/ssltests.py
399+
325400
build-wasi:
326401
name: 'WASI'
327402
needs: build-context
@@ -510,20 +585,28 @@ jobs:
510585
- name: Tests
511586
run: xvfb-run make ci
512587

513-
build-tsan:
514-
name: >-
515-
Thread sanitizer
516-
${{ fromJSON(matrix.free-threading) && '(free-threading)' || '' }}
588+
build-san:
589+
name: >- # ${{ '' } is a hack to nest jobs under the same sidebar category
590+
Sanitizers${{ '' }}
517591
needs: build-context
518592
if: needs.build-context.outputs.run-tests == 'true'
519593
strategy:
520594
fail-fast: false
521595
matrix:
596+
check-name:
597+
- Thread
522598
free-threading:
523599
- false
524600
- true
525-
uses: ./.github/workflows/reusable-tsan.yml
601+
sanitizer:
602+
- TSan
603+
include:
604+
- check-name: Undefined behavior
605+
sanitizer: UBSan
606+
free-threading: false
607+
uses: ./.github/workflows/reusable-san.yml
526608
with:
609+
sanitizer: ${{ matrix.sanitizer }}
527610
config_hash: ${{ needs.build-context.outputs.config-hash }}
528611
free-threading: ${{ matrix.free-threading }}
529612

@@ -620,11 +703,12 @@ jobs:
620703
- build-windows-msi
621704
- build-macos
622705
- build-ubuntu
623-
- build-ubuntu-ssltests
706+
- build-ubuntu-ssltests-awslc
707+
- build-ubuntu-ssltests-openssl
624708
- build-wasi
625709
- test-hypothesis
626710
- build-asan
627-
- build-tsan
711+
- build-san
628712
- cross-build-linux
629713
- cifuzz
630714
if: always()
@@ -635,7 +719,8 @@ jobs:
635719
with:
636720
allowed-failures: >-
637721
build-windows-msi,
638-
build-ubuntu-ssltests,
722+
build-ubuntu-ssltests-awslc,
723+
build-ubuntu-ssltests-openssl,
639724
test-hypothesis,
640725
cifuzz,
641726
allowed-skips: >-
@@ -653,11 +738,12 @@ jobs:
653738
check-generated-files,
654739
build-macos,
655740
build-ubuntu,
656-
build-ubuntu-ssltests,
741+
build-ubuntu-ssltests-awslc,
742+
build-ubuntu-ssltests-openssl,
657743
build-wasi,
658744
test-hypothesis,
659745
build-asan,
660-
build-tsan,
746+
build-san,
661747
cross-build-linux,
662748
'
663749
|| ''

.github/workflows/jit.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
- '**jit**'
66
- 'Python/bytecodes.c'
77
- 'Python/optimizer*.c'
8+
- 'Python/executor_cases.c.h'
9+
- 'Python/optimizer_cases.c.h'
810
- '!Python/perf_jit_trampoline.c'
911
- '!**/*.md'
1012
- '!**/*.ini'
@@ -13,6 +15,8 @@ on:
1315
- '**jit**'
1416
- 'Python/bytecodes.c'
1517
- 'Python/optimizer*.c'
18+
- 'Python/executor_cases.c.h'
19+
- 'Python/optimizer_cases.c.h'
1620
- '!Python/perf_jit_trampoline.c'
1721
- '!**/*.md'
1822
- '!**/*.ini'
@@ -113,6 +117,10 @@ jobs:
113117
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
114118
brew install llvm@${{ matrix.llvm }}
115119
export SDKROOT="$(xcrun --show-sdk-path)"
120+
# Set MACOSX_DEPLOYMENT_TARGET and -Werror=unguarded-availability to
121+
# make sure we don't break downstream distributors (like uv):
122+
export CFLAGS_JIT='-Werror=unguarded-availability'
123+
export MACOSX_DEPLOYMENT_TARGET=10.15
116124
./configure --enable-experimental-jit --enable-universalsdk --with-universal-archs=universal2 ${{ matrix.debug && '--with-pydebug' || '' }}
117125
make all --jobs 4
118126
./python.exe -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3

0 commit comments

Comments
 (0)