Skip to content

Commit d651acb

Browse files
Merge branch 'main' into re-deprecate-locale
2 parents 970572c + 6671d27 commit d651acb

1,531 files changed

Lines changed: 51773 additions & 34518 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.

.azure-pipelines/windows-layout-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ steps:
1212
displayName: Show layout info (${{ parameters.kind }})
1313

1414
- ${{ if eq(parameters.fulltest, 'true') }}:
15-
- script: .\python.exe -m test -q -uall -u-cpu -rwW --slowest --timeout=1200 -j0 --junit-xml="$(Build.BinariesDirectory)\test-results-${{ parameters.kind }}.xml" --tempdir "$(Build.BinariesDirectory)\tmp-${{ parameters.kind }}-$(arch)" -i test_launcher
15+
- script: .\python.exe -m test -q -uall -u-cpu -rwW --slowest --timeout=1200 -j0 --junit-xml="$(Build.BinariesDirectory)\test-results-${{ parameters.kind }}.xml" --tempdir "$(Build.BinariesDirectory)\tmp-${{ parameters.kind }}-$(arch)"
1616
workingDirectory: $(Build.BinariesDirectory)\layout-${{ parameters.kind }}-$(arch)
1717
displayName: ${{ parameters.kind }} Tests
1818
env:

.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*.zip binary
2020

2121
# Specific binary files
22-
PC/classicAppCompat.* binary
22+
# -- None right now --
2323

2424
# Text files that should not be subject to eol conversion
2525
[attr]noeol -text
@@ -80,12 +80,12 @@ Include/internal/pycore_ast_state.h generated
8080
Include/internal/pycore_opcode.h generated
8181
Include/internal/pycore_opcode_metadata.h generated
8282
Include/internal/pycore_*_generated.h generated
83+
Include/internal/pycore_token.h generated
8384
Include/internal/pycore_uop_ids.h generated
8485
Include/internal/pycore_uop_metadata.h generated
8586
Include/opcode.h generated
8687
Include/opcode_ids.h generated
8788
Include/slots_generated.h generated
88-
Include/token.h generated
8989
Lib/_opcode_metadata.py generated
9090
Lib/idlelib/help.html generated
9191
Lib/keyword.py generated

.github/CODEOWNERS

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,6 @@ Mac/ @python/macos-team
171171
Lib/_osx_support.py @python/macos-team
172172
Lib/test/test__osx_support.py @python/macos-team
173173

174-
# WebAssembly
175-
Tools/wasm/README.md @brettcannon @freakboy3742 @emmatyping
176-
177174
# WebAssembly (Emscripten)
178175
Platforms/emscripten @freakboy3742 @emmatyping
179176
Tools/wasm/emscripten @freakboy3742 @emmatyping
@@ -188,12 +185,8 @@ Tools/wasm/wasi @brettcannon @emmatyping @savannahostrowski
188185
PC/ @python/windows-team
189186
PCbuild/ @python/windows-team
190187

191-
# Windows installer packages
192-
Tools/msi/ @python/windows-team
193-
Tools/nuget/ @python/windows-team
194-
195-
# Windows Launcher
196-
PC/launcher.c @python/windows-team @vsajip
188+
# Windows Venv launcher/redirector
189+
PC/venvlauncher.c @python/windows-team @vsajip
197190

198191

199192
# ----------------------------------------------------------------------------
@@ -230,7 +223,7 @@ Tools/cases_generator/ @markshannon
230223
Python/assemble.c @markshannon @iritkatriel
231224
Python/codegen.c @markshannon @iritkatriel
232225
Python/compile.c @markshannon @iritkatriel
233-
Python/flowgraph.c @markshannon @iritkatriel
226+
Python/flowgraph.c @markshannon @iritkatriel @eclips4
234227
Python/instruction_sequence.c @iritkatriel
235228
Python/symtable.c @JelleZijlstra @carljm
236229

@@ -339,7 +332,6 @@ Modules/_remote_debugging/ @pablogsal
339332

340333
# Sub-Interpreters
341334
**/*crossinterp* @ericsnowcurrently
342-
**/*interpreteridobject.* @ericsnowcurrently
343335
Doc/library/concurrent.interpreters.rst @ericsnowcurrently
344336
Lib/concurrent/futures/interpreter.py @ericsnowcurrently
345337
Lib/concurrent/interpreters/ @ericsnowcurrently
@@ -606,6 +598,12 @@ Doc/library/tomllib.rst @encukou @hauntsaninja
606598
Lib/test/test_tomllib/ @encukou @hauntsaninja
607599
Lib/tomllib/ @encukou @hauntsaninja
608600

601+
# Turtle
602+
Doc/library/turtle.rst @StanFromIreland
603+
Doc/library/turtle-star.png @StanFromIreland
604+
Lib/test/test_turtle.py @StanFromIreland
605+
Lib/turtle.py @StanFromIreland
606+
609607
# Typing
610608
Doc/library/typing.rst @JelleZijlstra @AlexWaygood
611609
Lib/test/test_typing.py @JelleZijlstra @AlexWaygood
@@ -628,6 +626,12 @@ Lib/test/test_unittest/testmock/ @cjw296
628626
# Weakref
629627
**/*weakref* @kumaraditya303
630628

629+
# Zlib
630+
Doc/library/zlib.rst @StanFromIreland
631+
Lib/compression/zlib.py @StanFromIreland
632+
Lib/test/test_zlib.py @StanFromIreland
633+
Modules/_zlibmodule.c @StanFromIreland
634+
631635
# Zipfile.Path
632636
Lib/test/test_zipfile/_path/ @jaraco
633637
Lib/zipfile/_path/ @jaraco
@@ -650,3 +654,6 @@ Modules/**/clinic/
650654
Objects/**/clinic/
651655
PC/**/clinic/
652656
Python/**/clinic/
657+
658+
# Exclude HTML IDs list
659+
Doc/tools/removed-ids.txt

.github/actionlint.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
config-variables: null
22

3+
# Pending release of actionlint > 1.7.12 for ubuntu-26.04* support:
4+
# https://github.com/rhysd/actionlint/pull/683
5+
self-hosted-runner:
6+
labels:
7+
- ubuntu-26.04
8+
- ubuntu-26.04-arm
9+
310
paths:
411
.github/workflows/**/*.yml:
512
ignore:

.github/workflows/add-issue-header.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions:
1717

1818
jobs:
1919
add-header:
20-
runs-on: ubuntu-latest
20+
runs-on: ubuntu-slim
2121
permissions:
2222
issues: write
2323
timeout-minutes: 5

.github/workflows/build.yml

Lines changed: 30 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
name: 'Check if Autoconf files are up to date'
5454
# Don't use ubuntu-latest but a specific version to make the job
5555
# reproducible: to get the same tools versions (autoconf, aclocal, ...)
56-
runs-on: ubuntu-24.04
56+
runs-on: ubuntu-26.04
5757
container:
5858
image: ghcr.io/python/autoconf:2025.01.02.12581854023
5959
timeout-minutes: 60
@@ -96,7 +96,7 @@ jobs:
9696
name: 'Check if generated files are up to date'
9797
# Don't use ubuntu-latest but a specific version to make the job
9898
# reproducible: to get the same tools versions (autoconf, aclocal, ...)
99-
runs-on: ubuntu-24.04
99+
runs-on: ubuntu-26.04
100100
timeout-minutes: 60
101101
needs: build-context
102102
if: needs.build-context.outputs.run-tests == 'true'
@@ -181,22 +181,6 @@ jobs:
181181
free-threading: ${{ matrix.free-threading }}
182182
interpreter: ${{ matrix.interpreter }}
183183

184-
build-windows-msi:
185-
# ${{ '' } is a hack to nest jobs under the same sidebar category.
186-
name: Windows MSI${{ '' }} # zizmor: ignore[obfuscation]
187-
needs: build-context
188-
if: fromJSON(needs.build-context.outputs.run-windows-msi)
189-
strategy:
190-
fail-fast: false
191-
matrix:
192-
arch:
193-
- x86
194-
- x64
195-
- arm64
196-
uses: ./.github/workflows/reusable-windows-msi.yml
197-
with:
198-
arch: ${{ matrix.arch }}
199-
200184
build-macos:
201185
name: >-
202186
macOS
@@ -239,18 +223,18 @@ jobs:
239223
- false
240224
- true
241225
os:
242-
- ubuntu-24.04
243-
- ubuntu-24.04-arm
226+
- ubuntu-26.04
227+
- ubuntu-26.04-arm
244228
exclude:
245229
# Do not test BOLT with free-threading, to conserve resources
246230
- bolt: true
247231
free-threading: true
248232
# BOLT currently crashes during instrumentation on aarch64
249-
- os: ubuntu-24.04-arm
233+
- os: ubuntu-26.04-arm
250234
bolt: true
251235
include:
252236
# Enable CPU-intensive tests on ARM (default build only)
253-
- os: ubuntu-24.04-arm
237+
- os: ubuntu-26.04-arm
254238
bolt: false
255239
free-threading: false
256240
test-opts: '-u cpu'
@@ -261,6 +245,12 @@ jobs:
261245
os: ${{ matrix.os }}
262246
test-opts: ${{ matrix.test-opts || '' }}
263247

248+
build-ubuntu-installed:
249+
name: 'Ubuntu (installed)'
250+
needs: build-context
251+
if: needs.build-context.outputs.run-ubuntu == 'true'
252+
uses: ./.github/workflows/reusable-install.yml
253+
264254
build-ubuntu-ssltests:
265255
name: 'Ubuntu SSL tests'
266256
runs-on: ${{ matrix.os }}
@@ -270,21 +260,21 @@ jobs:
270260
strategy:
271261
fail-fast: false
272262
matrix:
273-
os: [ubuntu-24.04]
263+
os: [ubuntu-26.04]
274264
ssllib:
275265
# See Tools/ssl/make_ssl_data.py for notes on adding a new version
276266
## OpenSSL
277267
# Keep 1.1.1w in our list despite it being upstream EOL and otherwise
278268
# unsupported as it most resembles other 1.1.1-work-a-like ssl APIs
279269
# supported by important vendors such as AWS-LC.
280270
- { name: openssl, version: 1.1.1w }
281-
- { name: openssl, version: 3.0.21 }
282-
- { name: openssl, version: 3.4.6 }
283-
- { name: openssl, version: 3.5.7 }
284-
- { name: openssl, version: 3.6.3 }
285-
- { name: openssl, version: 4.0.1 }
271+
- { name: openssl, version: 3.0.22 }
272+
- { name: openssl, version: 3.4.7 }
273+
- { name: openssl, version: 3.5.8 }
274+
- { name: openssl, version: 3.6.4 }
275+
- { name: openssl, version: 4.0.2 }
286276
## AWS-LC
287-
- { name: aws-lc, version: 5.0.0 }
277+
- { name: aws-lc, version: 5.5.0 }
288278
env:
289279
SSLLIB_VER: ${{ matrix.ssllib.version }}
290280
MULTISSL_DIR: ${{ github.workspace }}/multissl
@@ -346,38 +336,29 @@ jobs:
346336
- arch: aarch64
347337
runs-on: macos-26
348338
- arch: x86_64
349-
runs-on: ubuntu-24.04
339+
runs-on: ubuntu-26.04
350340

351341
runs-on: ${{ matrix.runs-on }}
352342
steps:
353343
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
354344
with:
355345
persist-credentials: false
356346
- name: Build and test
357-
run: JAVA_HOME="${JAVA_HOME_21_X64:-$JAVA_HOME_21_arm64}" python3 Platforms/Android ci --fast-ci ${{ matrix.arch }}-linux-android
347+
run: python3 Platforms/Android ci --fast-ci ${{ matrix.arch }}-linux-android
358348

359349
build-ios:
360350
name: iOS
361351
needs: build-context
362352
if: needs.build-context.outputs.run-ios == 'true'
363353
timeout-minutes: 60
364-
runs-on: macos-14
354+
runs-on: macos-26
365355
steps:
366356
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
367357
with:
368358
persist-credentials: false
369359

370-
# GitHub recommends explicitly selecting the desired Xcode version:
371-
# https://github.com/actions/runner-images/issues/12541#issuecomment-3083850140
372-
# This became a necessity as a result of
373-
# https://github.com/actions/runner-images/issues/12541 and
374-
# https://github.com/actions/runner-images/issues/12751.
375-
- name: Select Xcode version
376-
run: |
377-
sudo xcode-select --switch /Applications/Xcode_15.4.app
378-
379360
- name: Build and test
380-
run: python3 Platforms/Apple ci iOS --fast-ci --simulator 'iPhone SE (3rd generation),OS=17.5'
361+
run: python3 Platforms/Apple ci iOS --fast-ci
381362

382363
build-emscripten:
383364
name: 'Emscripten'
@@ -393,12 +374,12 @@ jobs:
393374

394375
test-hypothesis:
395376
name: "Hypothesis tests on Ubuntu"
396-
runs-on: ubuntu-24.04
377+
runs-on: ubuntu-26.04
397378
timeout-minutes: 60
398379
needs: build-context
399380
if: needs.build-context.outputs.run-ubuntu == 'true'
400381
env:
401-
OPENSSL_VER: 3.5.7
382+
OPENSSL_VER: 3.5.8
402383
PYTHONSTRICTEXTENSIONBUILD: 1
403384
steps:
404385
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
@@ -504,9 +485,9 @@ jobs:
504485
strategy:
505486
fail-fast: false
506487
matrix:
507-
os: [ubuntu-24.04]
488+
os: [ubuntu-26.04]
508489
env:
509-
OPENSSL_VER: 3.5.7
490+
OPENSSL_VER: 3.5.8
510491
PYTHONSTRICTEXTENSIONBUILD: 1
511492
ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0
512493
steps:
@@ -568,7 +549,7 @@ jobs:
568549

569550
cross-build-linux:
570551
name: Cross build Linux
571-
runs-on: ubuntu-latest
552+
runs-on: ubuntu-26.04
572553
timeout-minutes: 60
573554
needs: build-context
574555
if: needs.build-context.outputs.run-ubuntu == 'true'
@@ -659,9 +640,9 @@ jobs:
659640
- check-generated-files
660641
- check-c-api-docs
661642
- build-windows
662-
- build-windows-msi
663643
- build-macos
664644
- build-ubuntu
645+
- build-ubuntu-installed
665646
- build-ubuntu-ssltests
666647
- build-ios
667648
- build-emscripten
@@ -680,7 +661,6 @@ jobs:
680661
allowed-failures: >-
681662
build-android,
682663
build-emscripten,
683-
build-windows-msi,
684664
build-ubuntu-ssltests,
685665
test-hypothesis,
686666
cifuzz,
@@ -712,6 +692,7 @@ jobs:
712692
!fromJSON(needs.build-context.outputs.run-ubuntu)
713693
&& '
714694
build-ubuntu,
695+
build-ubuntu-installed,
715696
build-ubuntu-ssltests,
716697
test-hypothesis,
717698
build-asan,

0 commit comments

Comments
 (0)