Skip to content

Commit 38f061d

Browse files
committed
Merge remote-tracking branch 'upstream/main' into stack
Signed-off-by: Pablo Galindo <[email protected]>
2 parents 4caeec4 + 13475e0 commit 38f061d

File tree

1,187 files changed

+54198
-26871
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,187 files changed

+54198
-26871
lines changed

.github/CODEOWNERS

+33-10
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,28 @@
55
# https://git-scm.com/docs/gitignore#_pattern_format
66

77
# GitHub
8-
.github/** @ezio-melotti @hugovk
8+
.github/** @ezio-melotti @hugovk @AA-Turner
99

1010
# pre-commit
1111
.pre-commit-config.yaml @hugovk @AlexWaygood
12-
.ruff.toml @hugovk @AlexWaygood
12+
.ruff.toml @hugovk @AlexWaygood @AA-Turner
1313

1414
# Build system
1515
configure* @erlend-aasland @corona10
1616
Makefile.pre.in @erlend-aasland
1717
Modules/Setup* @erlend-aasland
1818

19+
# argparse
20+
**/*argparse* @savannahostrowski
21+
1922
# asyncio
2023
**/*asyncio* @1st1 @asvetlov @kumaraditya303 @willingc
2124

2225
# Core
2326
**/*context* @1st1
2427
**/*genobject* @markshannon
2528
**/*hamt* @1st1
26-
**/*jit* @brandtbucher
29+
**/*jit* @brandtbucher @savannahostrowski
2730
Objects/set* @rhettinger
2831
Objects/dict* @methane @markshannon
2932
Objects/typevarobject.c @JelleZijlstra
@@ -53,6 +56,14 @@ Tools/c-analyzer/ @ericsnowcurrently
5356
# dbm
5457
**/*dbm* @corona10 @erlend-aasland @serhiy-storchaka
5558

59+
# Doc/ tools
60+
Doc/conf.py @AA-Turner @hugovk
61+
Doc/Makefile @AA-Turner @hugovk
62+
Doc/make.bat @AA-Turner @hugovk
63+
Doc/requirements.txt @AA-Turner @hugovk
64+
Doc/_static/** @AA-Turner @hugovk
65+
Doc/tools/** @AA-Turner @hugovk
66+
5667
# runtime state/lifecycle
5768
**/*pylifecycle* @ericsnowcurrently
5869
**/*pystate* @ericsnowcurrently
@@ -78,23 +89,35 @@ Programs/_bootstrap_python.c @ericsnowcurrently
7889
Programs/python.c @ericsnowcurrently
7990
Tools/build/generate_global_objects.py @ericsnowcurrently
8091

92+
# Initialization
93+
Doc/library/sys_path_init.rst @FFY00
94+
Doc/c-api/init_config.rst @FFY00
95+
96+
# getpath
97+
**/*getpath* @FFY00
98+
99+
# site
100+
**/*site.py @FFY00
101+
Doc/library/site.rst @FFY00
102+
81103
# Exceptions
82104
Lib/test/test_except*.py @iritkatriel
83105
Objects/exceptions.c @iritkatriel
84106

85-
# Hashing
86-
**/*hashlib* @gpshead @tiran
107+
# Hashing & cryptographic primitives
108+
**/*hashlib* @gpshead @tiran @picnixz
87109
**/*pyhash* @gpshead @tiran
88-
**/sha* @gpshead @tiran
89-
Modules/md5* @gpshead @tiran
90-
**/*blake* @gpshead @tiran
110+
**/sha* @gpshead @tiran @picnixz
111+
Modules/md5* @gpshead @tiran @picnixz
112+
**/*blake* @gpshead @tiran @picnixz
91113
Modules/_hacl/** @gpshead
114+
**/*hmac* @gpshead @picnixz
92115

93116
# logging
94117
**/*logging* @vsajip
95118

96119
# venv
97-
**/*venv* @vsajip
120+
**/*venv* @vsajip @FFY00
98121

99122
# Launcher
100123
/PC/launcher.c @vsajip
@@ -278,6 +301,6 @@ Lib/configparser.py @jaraco
278301
Lib/test/test_configparser.py @jaraco
279302

280303
# Doc sections
281-
Doc/reference/ @willingc
304+
Doc/reference/ @willingc @AA-Turner
282305

283306
**/*weakref* @kumaraditya303

.github/actionlint.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
self-hosted-runner:
2+
labels: ["windows-aarch64"]
3+
4+
config-variables: null
5+
6+
paths:
7+
.github/workflows/**/*.yml:
8+
ignore:
9+
- 1st argument of function call is not assignable
10+
- SC2(015|038|086|091|097|098|129|155)

.github/workflows/build.yml

+49-11
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,24 @@ jobs:
4646
# reproducible: to get the same tools versions (autoconf, aclocal, ...)
4747
runs-on: ubuntu-24.04
4848
container:
49-
image: ghcr.io/python/autoconf:2024.10.16.11360930377
49+
image: ghcr.io/python/autoconf:2025.01.02.12581854023
5050
timeout-minutes: 60
5151
needs: check_source
5252
if: needs.check_source.outputs.run_tests == 'true'
5353
steps:
5454
- name: Install Git
5555
run: |
56-
apt install git -yq
56+
apt update && apt install git -yq
5757
git config --global --add safe.directory "$GITHUB_WORKSPACE"
5858
- uses: actions/checkout@v4
5959
with:
6060
fetch-depth: 1
61+
persist-credentials: false
6162
- name: Runner image version
6263
run: echo "IMAGE_VERSION=${ImageVersion}" >> "$GITHUB_ENV"
6364
- name: Check Autoconf and aclocal versions
6465
run: |
65-
grep "Generated by GNU Autoconf 2.71" configure
66+
grep "Generated by GNU Autoconf 2.72" configure
6667
grep "aclocal 1.16.5" aclocal.m4
6768
grep -q "runstatedir" configure
6869
grep -q "PKG_PROG_PKG_CONFIG" aclocal.m4
@@ -94,6 +95,8 @@ jobs:
9495
if: needs.check_source.outputs.run_tests == 'true'
9596
steps:
9697
- uses: actions/checkout@v4
98+
with:
99+
persist-credentials: false
97100
- uses: actions/setup-python@v5
98101
with:
99102
python-version: '3.x'
@@ -120,7 +123,7 @@ jobs:
120123
- name: Build CPython
121124
run: |
122125
make -j4 regen-all
123-
make regen-stdlib-module-names regen-sbom
126+
make regen-stdlib-module-names regen-sbom regen-unicodedata
124127
- name: Check for changes
125128
run: |
126129
git add -u
@@ -150,16 +153,28 @@ jobs:
150153
needs: check_source
151154
if: fromJSON(needs.check_source.outputs.run_tests)
152155
strategy:
156+
fail-fast: false
153157
matrix:
158+
os:
159+
- windows-latest
154160
arch:
155-
- Win32
156-
- x64
157-
- arm64
161+
- x64
158162
free-threading:
159-
- false
160-
- true
163+
- false
164+
- true
165+
include:
166+
- os: windows-latest # FIXME(diegorusso): change to os: windows-aarch64
167+
arch: arm64
168+
free-threading: false
169+
- os: windows-latest # FIXME(diegorusso): change to os: windows-aarch64
170+
arch: arm64
171+
free-threading: true
172+
- os: windows-latest
173+
arch: Win32
174+
free-threading: false
161175
uses: ./.github/workflows/reusable-windows.yml
162176
with:
177+
os: ${{ matrix.os }}
163178
arch: ${{ matrix.arch }}
164179
free-threading: ${{ matrix.free-threading }}
165180

@@ -216,17 +231,33 @@ jobs:
216231
name: >-
217232
Ubuntu
218233
${{ fromJSON(matrix.free-threading) && '(free-threading)' || '' }}
234+
${{ fromJSON(matrix.bolt) && '(bolt)' || '' }}
219235
needs: check_source
220236
if: needs.check_source.outputs.run_tests == 'true'
221237
strategy:
222238
matrix:
239+
bolt:
240+
- false
241+
- true
223242
free-threading:
224243
- false
225244
- true
245+
os:
246+
- ubuntu-24.04
247+
- ubuntu-24.04-arm
248+
exclude:
249+
# Do not test BOLT with free-threading, to conserve resources
250+
- bolt: true
251+
free-threading: true
252+
# BOLT currently crashes during instrumentation on aarch64
253+
- os: ubuntu-24.04-arm
254+
bolt: true
226255
uses: ./.github/workflows/reusable-ubuntu.yml
227256
with:
228257
config_hash: ${{ needs.check_source.outputs.config_hash }}
258+
bolt-optimizations: ${{ matrix.bolt }}
229259
free-threading: ${{ matrix.free-threading }}
260+
os: ${{ matrix.os }}
230261

231262
build_ubuntu_ssltests:
232263
name: 'Ubuntu SSL tests with OpenSSL'
@@ -238,14 +269,17 @@ jobs:
238269
fail-fast: false
239270
matrix:
240271
os: [ubuntu-24.04]
241-
openssl_ver: [3.0.15, 3.1.7, 3.2.3, 3.3.2]
272+
openssl_ver: [3.0.15, 3.1.7, 3.2.3, 3.3.2, 3.4.0]
273+
# See Tools/ssl/make_ssl_data.py for notes on adding a new version
242274
env:
243275
OPENSSL_VER: ${{ matrix.openssl_ver }}
244276
MULTISSL_DIR: ${{ github.workspace }}/multissl
245277
OPENSSL_DIR: ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}
246278
LD_LIBRARY_PATH: ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}/lib
247279
steps:
248280
- uses: actions/checkout@v4
281+
with:
282+
persist-credentials: false
249283
- name: Runner image version
250284
run: echo "IMAGE_VERSION=${ImageVersion}" >> "$GITHUB_ENV"
251285
- name: Restore config.cache
@@ -306,6 +340,8 @@ jobs:
306340
PYTHONSTRICTEXTENSIONBUILD: 1
307341
steps:
308342
- uses: actions/checkout@v4
343+
with:
344+
persist-credentials: false
309345
- name: Register gcc problem matcher
310346
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
311347
- name: Install Dependencies
@@ -389,7 +425,7 @@ jobs:
389425
#
390426
# (GH-104097) test_sysconfig is skipped because it has tests that are
391427
# failing when executed from inside a virtual environment.
392-
${{ env.VENV_PYTHON }} -m test \
428+
"${VENV_PYTHON}" -m test \
393429
-W \
394430
-o \
395431
-j4 \
@@ -424,6 +460,8 @@ jobs:
424460
ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0
425461
steps:
426462
- uses: actions/checkout@v4
463+
with:
464+
persist-credentials: false
427465
- name: Runner image version
428466
run: echo "IMAGE_VERSION=${ImageVersion}" >> "$GITHUB_ENV"
429467
- name: Restore config.cache

.github/workflows/documentation-links.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ on:
1010
- 'Doc/**'
1111
- '.github/workflows/doc.yml'
1212

13-
permissions:
14-
pull-requests: write
15-
1613
concurrency:
1714
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1815
cancel-in-progress: true
1916

2017
jobs:
2118
documentation-links:
2219
runs-on: ubuntu-latest
20+
permissions:
21+
pull-requests: write
22+
2323
steps:
2424
- uses: readthedocs/actions/preview@v1
2525
with:

0 commit comments

Comments
 (0)