Skip to content

Commit 86ab7c3

Browse files
authored
Merge branch 'main' into fix-nan-packing/130317
2 parents 6a5dc1a + 4f18916 commit 86ab7c3

File tree

1,396 files changed

+83636
-32291
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,396 files changed

+83636
-32291
lines changed

.azure-pipelines/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
trigger: ['main', '3.13', '3.12', '3.11', '3.10', '3.9', '3.8']
1+
trigger: ['main', '3.*']
22

33
jobs:
44
- job: Prebuild

.editorconfig

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

3-
[*.{py,c,cpp,h,js,rst,md,yml}]
3+
[*.{py,c,cpp,h,js,rst,md,yml,yaml}]
44
trim_trailing_whitespace = true
55
insert_final_newline = true
66
indent_style = space
@@ -11,5 +11,5 @@ indent_size = 4
1111
[*.rst]
1212
indent_size = 3
1313

14-
[*.{js,yml}]
14+
[*.{js,yml,yaml}]
1515
indent_size = 2

.github/CODEOWNERS

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ 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
@@ -107,13 +108,16 @@ Objects/exceptions.c @iritkatriel
107108
# Hashing & cryptographic primitives
108109
**/*hashlib* @gpshead @tiran @picnixz
109110
**/*hashopenssl* @gpshead @tiran @picnixz
110-
**/*pyhash* @gpshead @tiran
111-
**/sha* @gpshead @tiran @picnixz
112-
Modules/md5* @gpshead @tiran @picnixz
113-
**/*blake* @gpshead @tiran @picnixz
114-
Modules/_hacl/** @gpshead
111+
**/*pyhash* @gpshead @tiran @picnixz
112+
Modules/*blake* @gpshead @tiran @picnixz
113+
Modules/*md5* @gpshead @tiran @picnixz
114+
Modules/*sha* @gpshead @tiran @picnixz
115+
Modules/_hacl/** @gpshead @picnixz
115116
**/*hmac* @gpshead @picnixz
116117

118+
# libssl
119+
**/*ssl* @gpshead @picnixz
120+
117121
# logging
118122
**/*logging* @vsajip
119123

@@ -164,6 +168,9 @@ Include/internal/pycore_time.h @pganssle @abalkin
164168
**/*imap* @python/email-team
165169
**/*poplib* @python/email-team
166170

171+
# Exclude .mailmap from being owned by @python/email-team
172+
/.mailmap
173+
167174
# Garbage collector
168175
/Modules/gcmodule.c @pablogsal
169176
/Doc/library/gc.rst @pablogsal
@@ -185,6 +192,7 @@ Python/ast_opt.c @isidentical @eclips4
185192
Parser/asdl.py @isidentical @JelleZijlstra @eclips4
186193
Parser/asdl_c.py @isidentical @JelleZijlstra @eclips4
187194
Lib/ast.py @isidentical @JelleZijlstra @eclips4
195+
Lib/_ast_unparse.py @isidentical @JelleZijlstra @eclips4
188196
Lib/test/test_ast/ @eclips4
189197

190198
# Mock
@@ -309,3 +317,6 @@ Doc/reference/ @willingc @AA-Turner
309317
# Colorize
310318
Lib/_colorize.py @hugovk
311319
Lib/test/test__colorize.py @hugovk
320+
321+
# Fuzzing
322+
Modules/_xxtestfuzz/ @ammaraskar

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ Please read this comment in its entirety. It's quite important.
77
It should be in the following format:
88
99
```
10-
gh-NNNNN: Summary of the changes made
10+
gh-NNNNNN: Summary of the changes made
1111
```
1212
13-
Where: gh-NNNNN refers to the GitHub issue number.
13+
Where: gh-NNNNNN refers to the GitHub issue number.
1414
1515
Most PRs will require an issue number. Trivial changes, like fixing a typo, do not need an issue.
1616
@@ -20,11 +20,11 @@ If this is a backport PR (PR made against branches other than `main`),
2020
please ensure that the PR title is in the following format:
2121
2222
```
23-
[X.Y] <title from the original PR> (GH-NNNN)
23+
[X.Y] <title from the original PR> (GH-NNNNNN)
2424
```
2525
26-
Where: [X.Y] is the branch name, e.g. [3.6].
26+
Where: [X.Y] is the branch name, for example: [3.13].
2727
28-
GH-NNNN refers to the PR number from `main`.
28+
GH-NNNNNN refers to the PR number from `main`.
2929
3030
-->

.github/actionlint.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
self-hosted-runner:
2-
labels: ["windows-aarch64"]
2+
# Pending https://github.com/rhysd/actionlint/issues/533
3+
labels: ["windows-11-arm"]
34

45
config-variables: null
56

.github/workflows/build.yml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -156,26 +156,18 @@ jobs:
156156
strategy:
157157
fail-fast: false
158158
matrix:
159-
os:
160-
- windows-latest
161159
arch:
162160
- x64
161+
- Win32
162+
- arm64
163163
free-threading:
164164
- false
165165
- true
166-
include:
167-
- os: windows-latest # FIXME(diegorusso): change to os: windows-aarch64
168-
arch: arm64
169-
free-threading: false
170-
- os: windows-latest # FIXME(diegorusso): change to os: windows-aarch64
171-
arch: arm64
172-
free-threading: true
173-
- os: windows-latest
174-
arch: Win32
175-
free-threading: false
166+
exclude:
167+
# Skip Win32 on free-threaded builds
168+
- { arch: Win32, free-threading: true }
176169
uses: ./.github/workflows/reusable-windows.yml
177170
with:
178-
os: ${{ matrix.os }}
179171
arch: ${{ matrix.arch }}
180172
free-threading: ${{ matrix.free-threading }}
181173

@@ -185,6 +177,7 @@ jobs:
185177
needs: build-context
186178
if: fromJSON(needs.build-context.outputs.run-windows-msi)
187179
strategy:
180+
fail-fast: false
188181
matrix:
189182
arch:
190183
- x86
@@ -236,6 +229,7 @@ jobs:
236229
needs: build-context
237230
if: needs.build-context.outputs.run-tests == 'true'
238231
strategy:
232+
fail-fast: false
239233
matrix:
240234
bolt:
241235
- false
@@ -270,7 +264,7 @@ jobs:
270264
fail-fast: false
271265
matrix:
272266
os: [ubuntu-24.04]
273-
openssl_ver: [3.0.15, 3.1.7, 3.2.3, 3.3.2, 3.4.0]
267+
openssl_ver: [3.0.16, 3.1.8, 3.2.4, 3.3.3, 3.4.1]
274268
# See Tools/ssl/make_ssl_data.py for notes on adding a new version
275269
env:
276270
OPENSSL_VER: ${{ matrix.openssl_ver }}
@@ -337,7 +331,7 @@ jobs:
337331
needs: build-context
338332
if: needs.build-context.outputs.run-tests == 'true'
339333
env:
340-
OPENSSL_VER: 3.0.15
334+
OPENSSL_VER: 3.0.16
341335
PYTHONSTRICTEXTENSIONBUILD: 1
342336
steps:
343337
- uses: actions/checkout@v4
@@ -428,8 +422,9 @@ jobs:
428422
# failing when executed from inside a virtual environment.
429423
"${VENV_PYTHON}" -m test \
430424
-W \
431-
-o \
425+
--slowest \
432426
-j4 \
427+
--timeout 900 \
433428
-x test_asyncio \
434429
-x test_multiprocessing_fork \
435430
-x test_multiprocessing_forkserver \
@@ -452,10 +447,11 @@ jobs:
452447
needs: build-context
453448
if: needs.build-context.outputs.run-tests == 'true'
454449
strategy:
450+
fail-fast: false
455451
matrix:
456452
os: [ubuntu-24.04]
457453
env:
458-
OPENSSL_VER: 3.0.15
454+
OPENSSL_VER: 3.0.16
459455
PYTHONSTRICTEXTENSIONBUILD: 1
460456
ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0
461457
steps:
@@ -515,6 +511,7 @@ jobs:
515511
needs: build-context
516512
if: needs.build-context.outputs.run-tests == 'true'
517513
strategy:
514+
fail-fast: false
518515
matrix:
519516
free-threading:
520517
- false

.github/workflows/jit.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
runner: windows-latest
7575
- target: aarch64-pc-windows-msvc/msvc
7676
architecture: ARM64
77-
runner: windows-latest
77+
runner: windows-11-arm
7878
- target: x86_64-apple-darwin/clang
7979
architecture: x86_64
8080
runner: macos-13
@@ -95,25 +95,18 @@ jobs:
9595
with:
9696
python-version: '3.11'
9797

98-
- name: Native Windows
99-
if: runner.os == 'Windows' && matrix.architecture != 'ARM64'
98+
- name: Windows
99+
if: runner.os == 'Windows'
100100
run: |
101101
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
105-
# No tests (yet):
106-
- name: Emulated Windows
107-
if: runner.os == 'Windows' && matrix.architecture == 'ARM64'
108-
run: |
109-
choco install llvm --allow-downgrade --no-progress --version ${{ matrix.llvm }}.1.0
110-
./PCbuild/build.bat --experimental-jit ${{ matrix.debug && '-d' || '' }} -p ${{ matrix.architecture }}
111-
112105
# The `find` line is required as a result of https://github.com/actions/runner-images/issues/9966.
113106
# This is a bug in the macOS runner image where the pre-installed Python is installed in the same
114107
# directory as the Homebrew Python, which causes the build to fail for macos-13. This line removes
115108
# the symlink to the pre-installed Python so that the Homebrew Python is used instead.
116-
- name: Native macOS
109+
- name: macOS
117110
if: runner.os == 'macOS'
118111
run: |
119112
brew update
@@ -124,7 +117,7 @@ jobs:
124117
make all --jobs 4
125118
./python.exe -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
126119
127-
- name: Native Linux
120+
- name: Linux
128121
if: runner.os == 'Linux'
129122
run: |
130123
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }}
@@ -139,6 +132,7 @@ jobs:
139132
runs-on: ubuntu-24.04
140133
timeout-minutes: 90
141134
strategy:
135+
fail-fast: false
142136
matrix:
143137
llvm:
144138
- 19

.github/workflows/mypy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,5 @@ jobs:
5959
cache: pip
6060
cache-dependency-path: Tools/requirements-dev.txt
6161
- run: pip install -r Tools/requirements-dev.txt
62+
- run: python3 Misc/mypy/make_symlinks.py --symlink
6263
- run: mypy --config-file ${{ matrix.target }}/mypy.ini

.github/workflows/project-updater.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
timeout-minutes: 10
1717
strategy:
18+
fail-fast: false
1819
matrix:
1920
include:
2021
# if an issue has any of these labels, it will be added

.github/workflows/require-pr-label.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ jobs:
1010
if: github.repository_owner == 'python'
1111
runs-on: ubuntu-latest
1212
permissions:
13-
issues: write
14-
pull-requests: write
13+
pull-requests: read
1514
timeout-minutes: 10
1615

1716
steps:
@@ -28,8 +27,7 @@ jobs:
2827
if: github.repository_owner == 'python'
2928
runs-on: ubuntu-latest
3029
permissions:
31-
issues: write
32-
pull-requests: write
30+
pull-requests: read
3331
timeout-minutes: 10
3432

3533
steps:

0 commit comments

Comments
 (0)