Skip to content

Commit 657775d

Browse files
authored
Merge branch 'main' into streamline-make-warm
2 parents 0aeba96 + 9a87ce8 commit 657775d

File tree

1,385 files changed

+76342
-43969
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,385 files changed

+76342
-43969
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,4 @@ Python/stdlib_module_names.h generated
103103
Tools/peg_generator/pegen/grammar_parser.py generated
104104
aclocal.m4 generated
105105
configure generated
106+
*.min.js generated

.github/CODEOWNERS

Lines changed: 31 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,16 @@ Tools/patchcheck/ @AA-Turner
8080
# ----------------------------------------------------------------------------
8181

8282
# Autotools
83-
configure* @erlend-aasland @corona10 @AA-Turner
84-
Makefile.pre.in @erlend-aasland @AA-Turner
85-
Modules/Setup* @erlend-aasland @AA-Turner
83+
configure* @erlend-aasland @corona10 @AA-Turner @emmatyping
84+
Makefile.pre.in @erlend-aasland @AA-Turner @emmatyping
85+
Modules/makesetup @erlend-aasland @AA-Turner @emmatyping
86+
Modules/Setup* @erlend-aasland @AA-Turner @emmatyping
8687
Tools/build/regen-configure.sh @AA-Turner
8788

89+
# generate-build-details
90+
Tools/build/generate-build-details.py @FFY00
91+
Lib/test/test_build_details.py @FFY00
92+
8893

8994
# ----------------------------------------------------------------------------
9095
# Documentation
@@ -149,6 +154,7 @@ Lib/test/test_android.py @mhsmith @freakboy3742
149154
# iOS
150155
Doc/using/ios.rst @freakboy3742
151156
Lib/_ios_support.py @freakboy3742
157+
Apple/ @freakboy3742
152158
iOS/ @freakboy3742
153159

154160
# macOS
@@ -157,16 +163,16 @@ Lib/_osx_support.py @python/macos-team
157163
Lib/test/test__osx_support.py @python/macos-team
158164

159165
# WebAssembly
160-
Tools/wasm/README.md @brettcannon @freakboy3742
166+
Tools/wasm/README.md @brettcannon @freakboy3742 @emmatyping
161167

162168
# WebAssembly (Emscripten)
163-
Tools/wasm/config.site-wasm32-emscripten @freakboy3742
164-
Tools/wasm/emscripten @freakboy3742
169+
Tools/wasm/config.site-wasm32-emscripten @freakboy3742 @emmatyping
170+
Tools/wasm/emscripten @freakboy3742 @emmatyping
165171

166172
# WebAssembly (WASI)
167-
Tools/wasm/wasi-env @brettcannon
168-
Tools/wasm/wasi.py @brettcannon
169-
Tools/wasm/wasi @brettcannon
173+
Tools/wasm/wasi-env @brettcannon @emmatyping
174+
Tools/wasm/wasi.py @brettcannon @emmatyping
175+
Tools/wasm/wasi @brettcannon @emmatyping
170176

171177
# Windows
172178
PC/ @python/windows-team
@@ -239,10 +245,10 @@ Lib/test/test_getpath.py @FFY00
239245
Modules/getpath* @FFY00
240246

241247
# Hashing / ``hash()`` and related
242-
Include/cpython/pyhash.h @gpshead @picnixz @tiran
243-
Include/internal/pycore_pyhash.h @gpshead @picnixz @tiran
244-
Include/pyhash.h @gpshead @picnixz @tiran
245-
Python/pyhash.c @gpshead @picnixz @tiran
248+
Include/cpython/pyhash.h @gpshead @picnixz
249+
Include/internal/pycore_pyhash.h @gpshead @picnixz
250+
Include/pyhash.h @gpshead @picnixz
251+
Python/pyhash.c @gpshead @picnixz
246252

247253
# The import system (including importlib)
248254
**/*import* @brettcannon @ericsnowcurrently @ncoghlan @warsaw
@@ -369,14 +375,14 @@ Lib/calendar.py @AA-Turner
369375
Lib/test/test_calendar.py @AA-Turner
370376

371377
# Cryptographic Primitives and Applications
372-
**/*hashlib* @gpshead @picnixz @tiran
373-
**/*hashopenssl* @gpshead @picnixz @tiran
378+
**/*hashlib* @gpshead @picnixz
379+
**/*hashopenssl* @gpshead @picnixz
374380
**/*hmac* @gpshead @picnixz
375381
**/*ssl* @gpshead @picnixz
376382
Modules/_hacl/ @gpshead @picnixz
377-
Modules/*blake* @gpshead @picnixz @tiran
378-
Modules/*md5* @gpshead @picnixz @tiran
379-
Modules/*sha* @gpshead @picnixz @tiran
383+
Modules/*blake* @gpshead @picnixz
384+
Modules/*md5* @gpshead @picnixz
385+
Modules/*sha* @gpshead @picnixz
380386

381387
# Codecs
382388
Modules/cjkcodecs/ @corona10
@@ -405,11 +411,15 @@ Lib/test/test_dataclasses/ @ericvsmith
405411

406412
# Dates and times
407413
Doc/**/*time.rst @pganssle @abalkin
414+
Doc/library/zoneinfo.rst @pganssle
408415
Include/datetime.h @pganssle @abalkin
409416
Include/internal/pycore_time.h @pganssle @abalkin
417+
Lib/test/test_zoneinfo/ @pganssle
418+
Lib/zoneinfo/ @pganssle
410419
Lib/*time.py @pganssle @abalkin
411420
Lib/test/datetimetester.py @pganssle @abalkin
412421
Lib/test/test_*time.py @pganssle @abalkin
422+
Modules/*zoneinfo* @pganssle
413423
Modules/*time* @pganssle @abalkin
414424
Python/pytime.c @pganssle @abalkin
415425

@@ -603,9 +613,9 @@ Lib/test/test_zipfile/_path/ @jaraco
603613
Lib/zipfile/_path/ @jaraco
604614

605615
# Zstandard
606-
Lib/compression/zstd/ @AA-Turner
607-
Lib/test/test_zstd.py @AA-Turner
608-
Modules/_zstd/ @AA-Turner
616+
Lib/compression/zstd/ @AA-Turner @emmatyping
617+
Lib/test/test_zstd.py @AA-Turner @emmatyping
618+
Modules/_zstd/ @AA-Turner @emmatyping
609619

610620
# ----------------------------------------------------------------------------
611621

.github/CONTRIBUTING.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,18 @@ our workflow that are not covered by a bot or status check are:
3434
- All discussions that are not directly related to the code in the pull request
3535
should happen on `GitHub Issues <https://github.com/python/cpython/issues>`_.
3636
- Upon your first non-trivial pull request (which includes documentation changes),
37-
feel free to add yourself to ``Misc/ACKS``
37+
feel free to add yourself to ``Misc/ACKS``.
3838

3939

4040
Setting Expectations
4141
--------------------
42-
Due to the fact that this project is entirely volunteer-run (i.e. no one is paid
43-
to work on Python full-time), we unfortunately can make no guarantees as to if
42+
Due to the fact that this project is run by volunteers,
43+
unfortunately we cannot make any guarantees as to if
4444
or when a core developer will get around to reviewing your pull request.
4545
If no core developer has done a review or responded to changes made because of a
46-
"changes requested" review, please feel free to email python-dev to ask if
47-
someone could take a look at your pull request.
46+
"changes requested" review within a month, you can ask for someone to
47+
review your pull request via a post in the `Core Development Discourse
48+
category <https://discuss.python.org/c/core-dev/23>`__.
4849

4950

5051
Code of Conduct

.github/actionlint.yaml

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

56
config-variables: null
67

.github/workflows/build.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -202,24 +202,16 @@ jobs:
202202
strategy:
203203
fail-fast: false
204204
matrix:
205-
# Cirrus and macos-14 are M1, macos-13 is default GHA Intel.
206-
# macOS 13 only runs tests against the GIL-enabled CPython.
207-
# Cirrus used for upstream, macos-14 for forks.
205+
# macos-14 is M1, macos-15-intel is Intel.
206+
# macos-15-intel only runs tests against the GIL-enabled CPython.
208207
os:
209-
- ghcr.io/cirruslabs/macos-runner:sonoma
210208
- macos-14
211-
- macos-13
212-
is-fork: # only used for the exclusion trick
213-
- ${{ github.repository_owner != 'python' }}
209+
- macos-15-intel
214210
free-threading:
215211
- false
216212
- true
217213
exclude:
218-
- os: ghcr.io/cirruslabs/macos-runner:sonoma
219-
is-fork: true
220-
- os: macos-14
221-
is-fork: false
222-
- os: macos-13
214+
- os: macos-15-intel
223215
free-threading: true
224216
uses: ./.github/workflows/reusable-macos.yml
225217
with:
@@ -273,7 +265,7 @@ jobs:
273265
# Keep 1.1.1w in our list despite it being upstream EOL and otherwise
274266
# unsupported as it most resembles other 1.1.1-work-a-like ssl APIs
275267
# supported by important vendors such as AWS-LC.
276-
openssl_ver: [1.1.1w, 3.0.17, 3.2.5, 3.3.4, 3.4.2, 3.5.2]
268+
openssl_ver: [1.1.1w, 3.0.18, 3.2.6, 3.3.5, 3.4.3, 3.5.4]
277269
# See Tools/ssl/make_ssl_data.py for notes on adding a new version
278270
env:
279271
OPENSSL_VER: ${{ matrix.openssl_ver }}
@@ -409,9 +401,8 @@ jobs:
409401
fail-fast: false
410402
matrix:
411403
include:
412-
# Use the same runs-on configuration as build-macos and build-ubuntu.
413404
- arch: aarch64
414-
runs-on: ${{ github.repository_owner == 'python' && 'ghcr.io/cirruslabs/macos-runner:sonoma' || 'macos-14' }}
405+
runs-on: macos-14
415406
- arch: x86_64
416407
runs-on: ubuntu-24.04
417408

@@ -421,7 +412,7 @@ jobs:
421412
with:
422413
persist-credentials: false
423414
- name: Build and test
424-
run: ./Android/android.py ci ${{ matrix.arch }}-linux-android
415+
run: ./Android/android.py ci --fast-ci ${{ matrix.arch }}-linux-android
425416

426417
build-wasi:
427418
name: 'WASI'
@@ -438,7 +429,7 @@ jobs:
438429
needs: build-context
439430
if: needs.build-context.outputs.run-tests == 'true'
440431
env:
441-
OPENSSL_VER: 3.0.16
432+
OPENSSL_VER: 3.0.18
442433
PYTHONSTRICTEXTENSIONBUILD: 1
443434
steps:
444435
- uses: actions/checkout@v4
@@ -558,7 +549,7 @@ jobs:
558549
matrix:
559550
os: [ubuntu-24.04]
560551
env:
561-
OPENSSL_VER: 3.0.16
552+
OPENSSL_VER: 3.0.18
562553
PYTHONSTRICTEXTENSIONBUILD: 1
563554
ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0
564555
steps:

.github/workflows/jit.yml

Lines changed: 57 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,16 @@ jobs:
7272
include:
7373
- target: i686-pc-windows-msvc/msvc
7474
architecture: Win32
75-
runner: windows-latest
75+
runner: windows-2022
7676
- target: x86_64-pc-windows-msvc/msvc
7777
architecture: x64
78-
runner: windows-latest
78+
runner: windows-2022
7979
- target: aarch64-pc-windows-msvc/msvc
8080
architecture: ARM64
8181
runner: windows-11-arm
8282
- target: x86_64-apple-darwin/clang
8383
architecture: x86_64
84-
runner: macos-13
84+
runner: macos-15-intel
8585
- target: aarch64-apple-darwin/clang
8686
architecture: aarch64
8787
runner: macos-14
@@ -106,15 +106,10 @@ jobs:
106106
./PCbuild/build.bat --experimental-jit ${{ matrix.debug && '-d' || '' }} -p ${{ matrix.architecture }}
107107
./PCbuild/rt.bat ${{ matrix.debug && '-d' || '' }} -p ${{ matrix.architecture }} -q --multiprocess 0 --timeout 4500 --verbose2 --verbose3
108108
109-
# The `find` line is required as a result of https://github.com/actions/runner-images/issues/9966.
110-
# This is a bug in the macOS runner image where the pre-installed Python is installed in the same
111-
# directory as the Homebrew Python, which causes the build to fail for macos-13. This line removes
112-
# the symlink to the pre-installed Python so that the Homebrew Python is used instead.
113109
- name: macOS
114110
if: runner.os == 'macOS'
115111
run: |
116112
brew update
117-
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
118113
brew install llvm@${{ matrix.llvm }}
119114
export SDKROOT="$(xcrun --show-sdk-path)"
120115
# Set MACOSX_DEPLOYMENT_TARGET and -Werror=unguarded-availability to
@@ -134,30 +129,57 @@ jobs:
134129
make all --jobs 4
135130
./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
136131
137-
# XXX: GH-133171
138-
# jit-with-disabled-gil:
139-
# name: Free-Threaded (Debug)
140-
# needs: interpreter
141-
# runs-on: ubuntu-24.04
142-
# timeout-minutes: 90
143-
# strategy:
144-
# fail-fast: false
145-
# matrix:
146-
# llvm:
147-
# - 19
148-
# steps:
149-
# - uses: actions/checkout@v4
150-
# with:
151-
# persist-credentials: false
152-
# - uses: actions/setup-python@v5
153-
# with:
154-
# python-version: '3.11'
155-
# - name: Build with JIT enabled and GIL disabled
156-
# run: |
157-
# sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }}
158-
# export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH"
159-
# ./configure --enable-experimental-jit --with-pydebug --disable-gil
160-
# make all --jobs 4
161-
# - name: Run tests
162-
# run: |
163-
# ./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
132+
jit-with-disabled-gil:
133+
name: Free-Threaded (Debug)
134+
needs: interpreter
135+
runs-on: ubuntu-24.04
136+
timeout-minutes: 90
137+
strategy:
138+
fail-fast: false
139+
matrix:
140+
llvm:
141+
- 19
142+
steps:
143+
- uses: actions/checkout@v4
144+
with:
145+
persist-credentials: false
146+
- uses: actions/setup-python@v5
147+
with:
148+
python-version: '3.11'
149+
- name: Build with JIT enabled and GIL disabled
150+
run: |
151+
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }}
152+
export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH"
153+
./configure --enable-experimental-jit --with-pydebug --disable-gil
154+
make all --jobs 4
155+
- name: Run tests
156+
run: |
157+
./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
158+
continue-on-error: true
159+
160+
no-opt-jit:
161+
name: JIT without optimizations (Debug)
162+
needs: interpreter
163+
runs-on: ubuntu-24.04
164+
timeout-minutes: 90
165+
strategy:
166+
fail-fast: false
167+
matrix:
168+
llvm:
169+
- 19
170+
steps:
171+
- uses: actions/checkout@v4
172+
with:
173+
persist-credentials: false
174+
- uses: actions/setup-python@v5
175+
with:
176+
python-version: '3.11'
177+
- name: Build with JIT
178+
run: |
179+
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }}
180+
export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH"
181+
./configure --enable-experimental-jit --with-pydebug
182+
make all --jobs 4
183+
- name: Run tests without optimizations
184+
run: |
185+
PYTHON_UOPS_OPTIMIZE=0 ./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3

.github/workflows/project-updater.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)