Skip to content

Commit 886dc69

Browse files
authored
Merge branch 'main' into jit-rosetta-x86
2 parents a673930 + f3d7fae commit 886dc69

File tree

295 files changed

+13100
-6647
lines changed

Some content is hidden

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

295 files changed

+13100
-6647
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ Lib/test/test_android.py @mhsmith @freakboy3742
150150
# iOS
151151
Doc/using/ios.rst @freakboy3742
152152
Lib/_ios_support.py @freakboy3742
153+
Apple/ @freakboy3742
153154
iOS/ @freakboy3742
154155

155156
# macOS

.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: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,34 @@ jobs:
135135
make all --jobs 4
136136
./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
137137
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
164+
continue-on-error: true
165+
138166
no-opt-jit:
139167
name: JIT without optimizations (Debug)
140168
needs: interpreter
@@ -161,31 +189,3 @@ jobs:
161189
- name: Run tests without optimizations
162190
run: |
163191
PYTHON_UOPS_OPTIMIZE=0 ./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
164-
165-
# XXX: GH-133171
166-
# jit-with-disabled-gil:
167-
# name: Free-Threaded (Debug)
168-
# needs: interpreter
169-
# runs-on: ubuntu-24.04
170-
# timeout-minutes: 90
171-
# strategy:
172-
# fail-fast: false
173-
# matrix:
174-
# llvm:
175-
# - 19
176-
# steps:
177-
# - uses: actions/checkout@v4
178-
# with:
179-
# persist-credentials: false
180-
# - uses: actions/setup-python@v5
181-
# with:
182-
# python-version: '3.11'
183-
# - name: Build with JIT enabled and GIL disabled
184-
# run: |
185-
# sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }}
186-
# export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH"
187-
# ./configure --enable-experimental-jit --with-pydebug --disable-gil
188-
# make all --jobs 4
189-
# - name: Run tests
190-
# run: |
191-
# ./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3

.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

.pre-commit-config.yaml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.12.8
3+
rev: v0.13.2
44
hooks:
5-
- id: ruff
5+
- id: ruff-check
66
name: Run Ruff (lint) on Doc/
77
args: [--exit-non-zero-on-fix]
88
files: ^Doc/
9-
- id: ruff
9+
- id: ruff-check
1010
name: Run Ruff (lint) on Lib/test/
1111
args: [--exit-non-zero-on-fix]
1212
files: ^Lib/test/
13-
- id: ruff
13+
- id: ruff-check
1414
name: Run Ruff (lint) on Tools/build/
1515
args: [--exit-non-zero-on-fix, --config=Tools/build/.ruff.toml]
1616
files: ^Tools/build/
17-
- id: ruff
17+
- id: ruff-check
1818
name: Run Ruff (lint) on Tools/i18n/
1919
args: [--exit-non-zero-on-fix, --config=Tools/i18n/.ruff.toml]
2020
files: ^Tools/i18n/
21-
- id: ruff
21+
- id: ruff-check
2222
name: Run Ruff (lint) on Argument Clinic
2323
args: [--exit-non-zero-on-fix, --config=Tools/clinic/.ruff.toml]
2424
files: ^Tools/clinic/|Lib/test/test_clinic.py
25-
- id: ruff
25+
- id: ruff-check
2626
name: Run Ruff (lint) on Tools/peg_generator/
2727
args: [--exit-non-zero-on-fix, --config=Tools/peg_generator/.ruff.toml]
2828
files: ^Tools/peg_generator/
@@ -36,7 +36,7 @@ repos:
3636
files: ^Tools/build/check_warnings.py
3737

3838
- repo: https://github.com/psf/black-pre-commit-mirror
39-
rev: 25.1.0
39+
rev: 25.9.0
4040
hooks:
4141
- id: black
4242
name: Run Black on Tools/jit/
@@ -47,7 +47,6 @@ repos:
4747
hooks:
4848
- id: remove-tabs
4949
types: [python]
50-
exclude: ^Tools/c-analyzer/cpython/_parser.py
5150

5251
- repo: https://github.com/pre-commit/pre-commit-hooks
5352
rev: v6.0.0
@@ -68,7 +67,7 @@ repos:
6867
files: '^\.github/CODEOWNERS|\.(gram)$'
6968

7069
- repo: https://github.com/python-jsonschema/check-jsonschema
71-
rev: 0.33.2
70+
rev: 0.34.0
7271
hooks:
7372
- id: check-dependabot
7473
- id: check-github-workflows
@@ -80,7 +79,7 @@ repos:
8079
- id: actionlint
8180

8281
- repo: https://github.com/woodruffw/zizmor-pre-commit
83-
rev: v1.11.0
82+
rev: v1.14.1
8483
hooks:
8584
- id: zizmor
8685

0 commit comments

Comments
 (0)