Skip to content

Commit 450de68

Browse files
authored
Merge branch 'main' into gh-138854
2 parents 96bcbfe + 7c70cc5 commit 450de68

File tree

573 files changed

+26355
-12985
lines changed

Some content is hidden

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

573 files changed

+26355
-12985
lines changed

.github/CODEOWNERS

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,14 @@ Tools/patchcheck/ @AA-Turner
8282
# Autotools
8383
configure* @erlend-aasland @corona10 @AA-Turner @emmatyping
8484
Makefile.pre.in @erlend-aasland @AA-Turner @emmatyping
85+
Modules/makesetup @erlend-aasland @AA-Turner @emmatyping
8586
Modules/Setup* @erlend-aasland @AA-Turner @emmatyping
86-
Modules/makesetup @emmatyping
8787
Tools/build/regen-configure.sh @AA-Turner
8888

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

9094
# ----------------------------------------------------------------------------
9195
# Documentation
@@ -150,6 +154,7 @@ Lib/test/test_android.py @mhsmith @freakboy3742
150154
# iOS
151155
Doc/using/ios.rst @freakboy3742
152156
Lib/_ios_support.py @freakboy3742
157+
Apple/ @freakboy3742
153158
iOS/ @freakboy3742
154159

155160
# macOS
@@ -240,10 +245,10 @@ Lib/test/test_getpath.py @FFY00
240245
Modules/getpath* @FFY00
241246

242247
# Hashing / ``hash()`` and related
243-
Include/cpython/pyhash.h @gpshead @picnixz @tiran
244-
Include/internal/pycore_pyhash.h @gpshead @picnixz @tiran
245-
Include/pyhash.h @gpshead @picnixz @tiran
246-
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
247252

248253
# The import system (including importlib)
249254
**/*import* @brettcannon @ericsnowcurrently @ncoghlan @warsaw
@@ -370,14 +375,14 @@ Lib/calendar.py @AA-Turner
370375
Lib/test/test_calendar.py @AA-Turner
371376

372377
# Cryptographic Primitives and Applications
373-
**/*hashlib* @gpshead @picnixz @tiran
374-
**/*hashopenssl* @gpshead @picnixz @tiran
378+
**/*hashlib* @gpshead @picnixz
379+
**/*hashopenssl* @gpshead @picnixz
375380
**/*hmac* @gpshead @picnixz
376381
**/*ssl* @gpshead @picnixz
377382
Modules/_hacl/ @gpshead @picnixz
378-
Modules/*blake* @gpshead @picnixz @tiran
379-
Modules/*md5* @gpshead @picnixz @tiran
380-
Modules/*sha* @gpshead @picnixz @tiran
383+
Modules/*blake* @gpshead @picnixz
384+
Modules/*md5* @gpshead @picnixz
385+
Modules/*sha* @gpshead @picnixz
381386

382387
# Codecs
383388
Modules/cjkcodecs/ @corona10
@@ -406,11 +411,15 @@ Lib/test/test_dataclasses/ @ericvsmith
406411

407412
# Dates and times
408413
Doc/**/*time.rst @pganssle @abalkin
414+
Doc/library/zoneinfo.rst @pganssle
409415
Include/datetime.h @pganssle @abalkin
410416
Include/internal/pycore_time.h @pganssle @abalkin
417+
Lib/test/test_zoneinfo/ @pganssle
418+
Lib/zoneinfo/ @pganssle
411419
Lib/*time.py @pganssle @abalkin
412420
Lib/test/datetimetester.py @pganssle @abalkin
413421
Lib/test/test_*time.py @pganssle @abalkin
422+
Modules/*zoneinfo* @pganssle
414423
Modules/*time* @pganssle @abalkin
415424
Python/pytime.c @pganssle @abalkin
416425

.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: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,13 @@ jobs:
202202
strategy:
203203
fail-fast: false
204204
matrix:
205-
# Cirrus and macos-14 are M1, macos-13 is default GHA Intel.
205+
# Cirrus and macos-14 are M1, macos-15-intel is default GHA Intel.
206206
# macOS 13 only runs tests against the GIL-enabled CPython.
207207
# Cirrus used for upstream, macos-14 for forks.
208208
os:
209209
- ghcr.io/cirruslabs/macos-runner:sonoma
210210
- macos-14
211-
- macos-13
211+
- macos-15-intel
212212
is-fork: # only used for the exclusion trick
213213
- ${{ github.repository_owner != 'python' }}
214214
free-threading:
@@ -219,7 +219,7 @@ jobs:
219219
is-fork: true
220220
- os: macos-14
221221
is-fork: false
222-
- os: macos-13
222+
- os: macos-15-intel
223223
free-threading: true
224224
uses: ./.github/workflows/reusable-macos.yml
225225
with:
@@ -273,7 +273,7 @@ jobs:
273273
# Keep 1.1.1w in our list despite it being upstream EOL and otherwise
274274
# unsupported as it most resembles other 1.1.1-work-a-like ssl APIs
275275
# 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]
276+
openssl_ver: [1.1.1w, 3.0.18, 3.2.6, 3.3.5, 3.4.3, 3.5.4]
277277
# See Tools/ssl/make_ssl_data.py for notes on adding a new version
278278
env:
279279
OPENSSL_VER: ${{ matrix.openssl_ver }}
@@ -421,7 +421,7 @@ jobs:
421421
with:
422422
persist-credentials: false
423423
- name: Build and test
424-
run: ./Android/android.py ci ${{ matrix.arch }}-linux-android
424+
run: ./Android/android.py ci --fast-ci ${{ matrix.arch }}-linux-android
425425

426426
build-wasi:
427427
name: 'WASI'
@@ -438,7 +438,7 @@ jobs:
438438
needs: build-context
439439
if: needs.build-context.outputs.run-tests == 'true'
440440
env:
441-
OPENSSL_VER: 3.0.16
441+
OPENSSL_VER: 3.0.18
442442
PYTHONSTRICTEXTENSIONBUILD: 1
443443
steps:
444444
- uses: actions/checkout@v4
@@ -558,7 +558,7 @@ jobs:
558558
matrix:
559559
os: [ubuntu-24.04]
560560
env:
561-
OPENSSL_VER: 3.0.16
561+
OPENSSL_VER: 3.0.18
562562
PYTHONSTRICTEXTENSIONBUILD: 1
563563
ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0
564564
steps:

.github/workflows/jit.yml

Lines changed: 55 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
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.

.github/workflows/reusable-macos.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ jobs:
6060
--prefix=/opt/python-dev \
6161
--with-openssl="$(brew --prefix [email protected])"
6262
- name: Build CPython
63-
if : ${{ inputs.free-threading || inputs.os != 'macos-13' }}
63+
if : ${{ inputs.free-threading || inputs.os != 'macos-15-intel' }}
6464
run: gmake -j8
6565
- name: Build CPython for compiler warning check
66-
if : ${{ !inputs.free-threading && inputs.os == 'macos-13' }}
66+
if : ${{ !inputs.free-threading && inputs.os == 'macos-15-intel' }}
6767
run: set -o pipefail; gmake -j8 --output-sync 2>&1 | tee compiler_output_macos.txt
6868
- name: Display build info
6969
run: make pythoninfo
7070
- name: Check compiler warnings
71-
if : ${{ !inputs.free-threading && inputs.os == 'macos-13' }}
71+
if : ${{ !inputs.free-threading && inputs.os == 'macos-15-intel' }}
7272
run: >-
7373
python3 Tools/build/check_warnings.py
7474
--compiler-output-file-path=compiler_output_macos.txt

.github/workflows/reusable-ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ${{ inputs.os }}
3131
timeout-minutes: 60
3232
env:
33-
OPENSSL_VER: 3.0.15
33+
OPENSSL_VER: 3.0.18
3434
PYTHONSTRICTEXTENSIONBUILD: 1
3535
TERM: linux
3636
steps:

.github/workflows/tail-call.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
# runner: windows-2022
5959
- target: x86_64-apple-darwin/clang
6060
architecture: x86_64
61-
runner: macos-13
61+
runner: macos-15-intel
6262
- target: aarch64-apple-darwin/clang
6363
architecture: aarch64
6464
runner: macos-14
@@ -101,17 +101,10 @@ jobs:
101101
set LLVMInstallDir=C:\Program Files\LLVM
102102
./PCbuild/build.bat --tail-call-interp -p ${{ matrix.architecture }}
103103
104-
# The `find` line is required as a result of https://github.com/actions/runner-images/issues/9966.
105-
# This is a bug in the macOS runner image where the pre-installed Python is installed in the same
106-
# directory as the Homebrew Python, which causes the build to fail for macos-13. This line removes
107-
# the symlink to the pre-installed Python so that the Homebrew Python is used instead.
108-
# Note: when a new LLVM is released, the homebrew installation directory changes, so the builds will fail.
109-
# We either need to upgrade LLVM or change the directory being pointed to.
110104
- name: Native macOS (release)
111105
if: runner.os == 'macOS'
112106
run: |
113107
brew update
114-
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
115108
brew install llvm@${{ matrix.llvm }}
116109
export SDKROOT="$(xcrun --show-sdk-path)"
117110
export PATH="/usr/local/opt/llvm@${{ matrix.llvm }}/bin:$PATH"

.gitignore

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ Lib/test/data/*
7171
/Makefile
7272
/Makefile.pre
7373
/iOSTestbed.*
74-
iOS/Frameworks/
75-
iOS/Resources/Info.plist
76-
iOS/testbed/build
77-
iOS/testbed/Python.xcframework/ios-*/bin
78-
iOS/testbed/Python.xcframework/ios-*/include
79-
iOS/testbed/Python.xcframework/ios-*/lib
80-
iOS/testbed/Python.xcframework/ios-*/Python.framework
81-
iOS/testbed/iOSTestbed.xcodeproj/project.xcworkspace
82-
iOS/testbed/iOSTestbed.xcodeproj/xcuserdata
74+
Apple/iOS/Frameworks/
75+
Apple/iOS/Resources/Info.plist
76+
Apple/testbed/build
77+
Apple/testbed/Python.xcframework/*/bin
78+
Apple/testbed/Python.xcframework/*/include
79+
Apple/testbed/Python.xcframework/*/lib
80+
Apple/testbed/Python.xcframework/*/Python.framework
81+
Apple/testbed/*Testbed.xcodeproj/project.xcworkspace
82+
Apple/testbed/*Testbed.xcodeproj/xcuserdata
8383
Mac/Makefile
8484
Mac/PythonLauncher/Info.plist
8585
Mac/PythonLauncher/Makefile

0 commit comments

Comments
 (0)