Skip to content

Commit 00c57d3

Browse files
authored
Merge branch 'main' into fix-issue-129069
2 parents 32f9604 + 68a1778 commit 00c57d3

File tree

572 files changed

+46313
-29872
lines changed

Some content is hidden

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

572 files changed

+46313
-29872
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: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,10 @@ 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

8889

@@ -149,6 +150,7 @@ Lib/test/test_android.py @mhsmith @freakboy3742
149150
# iOS
150151
Doc/using/ios.rst @freakboy3742
151152
Lib/_ios_support.py @freakboy3742
153+
Apple/ @freakboy3742
152154
iOS/ @freakboy3742
153155

154156
# macOS
@@ -157,16 +159,16 @@ Lib/_osx_support.py @python/macos-team
157159
Lib/test/test__osx_support.py @python/macos-team
158160

159161
# WebAssembly
160-
Tools/wasm/README.md @brettcannon @freakboy3742
162+
Tools/wasm/README.md @brettcannon @freakboy3742 @emmatyping
161163

162164
# WebAssembly (Emscripten)
163-
Tools/wasm/config.site-wasm32-emscripten @freakboy3742
164-
Tools/wasm/emscripten @freakboy3742
165+
Tools/wasm/config.site-wasm32-emscripten @freakboy3742 @emmatyping
166+
Tools/wasm/emscripten @freakboy3742 @emmatyping
165167

166168
# WebAssembly (WASI)
167-
Tools/wasm/wasi-env @brettcannon
168-
Tools/wasm/wasi.py @brettcannon
169-
Tools/wasm/wasi @brettcannon
169+
Tools/wasm/wasi-env @brettcannon @emmatyping
170+
Tools/wasm/wasi.py @brettcannon @emmatyping
171+
Tools/wasm/wasi @brettcannon @emmatyping
170172

171173
# Windows
172174
PC/ @python/windows-team
@@ -405,11 +407,15 @@ Lib/test/test_dataclasses/ @ericvsmith
405407

406408
# Dates and times
407409
Doc/**/*time.rst @pganssle @abalkin
410+
Doc/library/zoneinfo.rst @pganssle
408411
Include/datetime.h @pganssle @abalkin
409412
Include/internal/pycore_time.h @pganssle @abalkin
413+
Lib/test/test_zoneinfo/ @pganssle
414+
Lib/zoneinfo/ @pganssle
410415
Lib/*time.py @pganssle @abalkin
411416
Lib/test/datetimetester.py @pganssle @abalkin
412417
Lib/test/test_*time.py @pganssle @abalkin
418+
Modules/*zoneinfo* @pganssle
413419
Modules/*time* @pganssle @abalkin
414420
Python/pytime.c @pganssle @abalkin
415421

@@ -603,9 +609,9 @@ Lib/test/test_zipfile/_path/ @jaraco
603609
Lib/zipfile/_path/ @jaraco
604610

605611
# Zstandard
606-
Lib/compression/zstd/ @AA-Turner
607-
Lib/test/test_zstd.py @AA-Turner
608-
Modules/_zstd/ @AA-Turner
612+
Lib/compression/zstd/ @AA-Turner @emmatyping
613+
Lib/test/test_zstd.py @AA-Turner @emmatyping
614+
Modules/_zstd/ @AA-Turner @emmatyping
609615

610616
# ----------------------------------------------------------------------------
611617

.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/workflows/jit.yml

Lines changed: 56 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ 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
@@ -134,30 +134,57 @@ jobs:
134134
make all --jobs 4
135135
./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
136136
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
137+
jit-with-disabled-gil:
138+
name: Free-Threaded (Debug)
139+
needs: interpreter
140+
runs-on: ubuntu-24.04
141+
timeout-minutes: 90
142+
strategy:
143+
fail-fast: false
144+
matrix:
145+
llvm:
146+
- 19
147+
steps:
148+
- uses: actions/checkout@v4
149+
with:
150+
persist-credentials: false
151+
- uses: actions/setup-python@v5
152+
with:
153+
python-version: '3.11'
154+
- name: Build with JIT enabled and GIL disabled
155+
run: |
156+
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }}
157+
export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH"
158+
./configure --enable-experimental-jit --with-pydebug --disable-gil
159+
make all --jobs 4
160+
- name: Run tests
161+
run: |
162+
./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
163+
continue-on-error: true
164+
165+
no-opt-jit:
166+
name: JIT without optimizations (Debug)
167+
needs: interpreter
168+
runs-on: ubuntu-24.04
169+
timeout-minutes: 90
170+
strategy:
171+
fail-fast: false
172+
matrix:
173+
llvm:
174+
- 19
175+
steps:
176+
- uses: actions/checkout@v4
177+
with:
178+
persist-credentials: false
179+
- uses: actions/setup-python@v5
180+
with:
181+
python-version: '3.11'
182+
- name: Build with JIT
183+
run: |
184+
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }}
185+
export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH"
186+
./configure --enable-experimental-jit --with-pydebug
187+
make all --jobs 4
188+
- name: Run tests without optimizations
189+
run: |
190+
PYTHON_UOPS_OPTIMIZE=0 ./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3

.github/workflows/reusable-windows-msi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717
jobs:
1818
build:
1919
name: installer for ${{ inputs.arch }}
20-
runs-on: ${{ inputs.arch == 'arm64' && 'windows-11-arm' || 'windows-latest' }}
20+
runs-on: ${{ inputs.arch == 'arm64' && 'windows-11-arm' || 'windows-2022' }}
2121
timeout-minutes: 60
2222
env:
2323
ARCH: ${{ inputs.arch }}

.github/workflows/reusable-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ env:
2121
jobs:
2222
build:
2323
name: Build and test (${{ inputs.arch }})
24-
runs-on: ${{ inputs.arch == 'arm64' && 'windows-11-arm' || 'windows-latest' }}
24+
runs-on: ${{ inputs.arch == 'arm64' && 'windows-11-arm' || 'windows-2022' }}
2525
timeout-minutes: 60
2626
env:
2727
ARCH: ${{ inputs.arch }}

.github/workflows/tail-call.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ jobs:
4949
include:
5050
# - target: i686-pc-windows-msvc/msvc
5151
# architecture: Win32
52-
# runner: windows-latest
52+
# runner: windows-2022
5353
- target: x86_64-pc-windows-msvc/msvc
5454
architecture: x64
55-
runner: windows-latest
55+
runner: windows-2022
5656
# - target: aarch64-pc-windows-msvc/msvc
5757
# architecture: ARM64
58-
# runner: windows-latest
58+
# runner: windows-2022
5959
- target: x86_64-apple-darwin/clang
6060
architecture: x86_64
6161
runner: macos-13

.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

Android/android.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -737,12 +737,10 @@ def ci(context):
737737
# Prove the package is self-contained by using it to run the tests.
738738
shutil.unpack_archive(package_path, temp_dir)
739739

740-
# Arguments are similar to --fast-ci, but in single-process mode.
740+
# Randomization is disabled because order-dependent failures are
741+
# much less likely to pass on a rerun in single-process mode.
741742
launcher_args = ["--managed", "maxVersion", "-v"]
742-
test_args = [
743-
"--single-process", "--fail-env-changed", "--rerun", "--slowest",
744-
"--verbose3", "-u", "all,-cpu", "--timeout=600"
745-
]
743+
test_args = ["--fast-ci", "--single-process", "--no-randomize"]
746744
run(
747745
["./android.py", "test", *launcher_args, "--", *test_args],
748746
cwd=temp_dir

0 commit comments

Comments
 (0)