Skip to content

Commit 8ef9b4b

Browse files
committed
Merge branch 'main' into lazy_tomllib
2 parents 82d4e2b + 70eb56b commit 8ef9b4b

File tree

604 files changed

+33100
-9788
lines changed

Some content is hidden

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

604 files changed

+33100
-9788
lines changed

.github/CODEOWNERS

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ Lib/test/test_build_details.py @FFY00
100100
InternalDocs/ @AA-Turner
101101

102102
# Tools, Configuration, etc
103-
Doc/Makefile @AA-Turner @hugovk
104-
Doc/_static/ @AA-Turner @hugovk
105-
Doc/conf.py @AA-Turner @hugovk
106-
Doc/make.bat @AA-Turner @hugovk
107-
Doc/requirements.txt @AA-Turner @hugovk
108-
Doc/tools/ @AA-Turner @hugovk
103+
Doc/Makefile @AA-Turner @hugovk @StanFromIreland
104+
Doc/_static/ @AA-Turner @hugovk @StanFromIreland
105+
Doc/conf.py @AA-Turner @hugovk @StanFromIreland
106+
Doc/make.bat @AA-Turner @hugovk @StanFromIreland
107+
Doc/requirements.txt @AA-Turner @hugovk @StanFromIreland
108+
Doc/tools/ @AA-Turner @hugovk @StanFromIreland
109109

110110
# PR Previews
111111
.readthedocs.yml @AA-Turner

.github/actionlint.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
self-hosted-runner:
2-
# Pending release of actionlint > 1.7.11 for macos-26-intel support
3-
# https://github.com/rhysd/actionlint/pull/629
4-
labels: ["macos-26-intel"]
5-
61
config-variables: null
72

83
paths:

.github/workflows/add-issue-header.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
# Only ever run once
1313
- opened
1414

15+
permissions:
16+
contents: read
1517

1618
jobs:
1719
add-header:

.github/workflows/build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,16 +206,16 @@ jobs:
206206
strategy:
207207
fail-fast: false
208208
matrix:
209-
# macos-26 is Apple Silicon, macos-26-intel is Intel.
210-
# macos-26-intel only runs tests against the GIL-enabled CPython.
209+
# macos-26 is Apple Silicon, macos-15-intel is Intel.
210+
# macos-15-intel only runs tests against the GIL-enabled CPython.
211211
os:
212212
- macos-26
213-
- macos-26-intel
213+
- macos-15-intel
214214
free-threading:
215215
- false
216216
- true
217217
exclude:
218-
- os: macos-26-intel
218+
- os: macos-15-intel
219219
free-threading: true
220220
uses: ./.github/workflows/reusable-macos.yml
221221
with:
@@ -354,7 +354,7 @@ jobs:
354354
with:
355355
persist-credentials: false
356356
- name: Build and test
357-
run: ./Android/android.py ci --fast-ci ${{ matrix.arch }}-linux-android
357+
run: python3 Platforms/Android ci --fast-ci ${{ matrix.arch }}-linux-android
358358

359359
build-ios:
360360
name: iOS
@@ -613,6 +613,7 @@ jobs:
613613
needs.build-context.outputs.run-ci-fuzz == 'true'
614614
|| needs.build-context.outputs.run-ci-fuzz-stdlib == 'true'
615615
permissions:
616+
contents: read
616617
security-events: write
617618
strategy:
618619
fail-fast: false

.github/workflows/jit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ jobs:
9999
- false
100100
include:
101101
- target: x86_64-apple-darwin/clang
102-
runner: macos-26-intel
102+
runner: macos-15-intel
103103
- target: aarch64-apple-darwin/clang
104-
runner: macos-26
104+
runner: macos-15
105105
steps:
106106
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
107107
with:

.github/workflows/new-bugs-announce-notifier.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ on:
66
- opened
77

88
permissions:
9-
issues: read
9+
contents: read
1010

1111
jobs:
1212
notify-new-bugs-announce:
1313
runs-on: ubuntu-latest
14+
permissions:
15+
issues: read
1416
timeout-minutes: 10
1517
steps:
1618
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0

.github/workflows/require-pr-label.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request:
55
types: [opened, reopened, labeled, unlabeled, synchronize]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
label-dnm:
912
name: DO-NOT-MERGE

.github/workflows/reusable-check-html-ids.yml

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,36 +15,45 @@ jobs:
1515
runs-on: ubuntu-latest
1616
timeout-minutes: 30
1717
steps:
18-
- name: 'Check out base commit'
18+
- name: 'Check out PR head'
1919
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2020
with:
2121
persist-credentials: false
22-
ref: ${{ github.event.pull_request.base.sha }}
22+
ref: ${{ github.event.pull_request.head.sha }}
23+
- name: 'Find merge base'
24+
id: merge-base
25+
run: |
26+
BASE="${{ github.event.pull_request.base.sha }}"
27+
HEAD="${{ github.event.pull_request.head.sha }}"
28+
git fetch --depth=$((${{ github.event.pull_request.commits }} + 10)) --no-tags origin "$BASE" "$HEAD"
29+
30+
if ! MERGE_BASE=$(git merge-base "$BASE" "$HEAD" 2>/dev/null); then
31+
git fetch --deepen=1 --no-tags origin "$BASE" "$HEAD"
32+
33+
OLDEST=$(git rev-list --reflog --max-parents=0 --reverse "${BASE}^" "${HEAD}^" | head -1)
34+
TIMESTAMP=$(git show --format=%at --no-patch "$OLDEST")
35+
36+
git fetch --shallow-since="$TIMESTAMP" --no-tags origin "$BASE" "$HEAD"
37+
38+
MERGE_BASE=$(git merge-base "$BASE" "$HEAD")
39+
fi
40+
echo "sha=$MERGE_BASE" >> "$GITHUB_OUTPUT"
41+
- name: 'Create worktree at merge base'
42+
env:
43+
MERGE_BASE: ${{ steps.merge-base.outputs.sha }}
44+
run: git worktree add /tmp/merge-base "$MERGE_BASE" --detach
2345
- name: 'Set up Python'
2446
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2547
with:
2648
python-version: '3'
2749
cache: 'pip'
2850
cache-dependency-path: 'Doc/requirements.txt'
2951
- name: 'Install build dependencies'
30-
run: make -C Doc/ venv
52+
run: make -C /tmp/merge-base/Doc/ venv
3153
- name: 'Build HTML documentation'
32-
run: make -C Doc/ SPHINXOPTS="--quiet" html
33-
- name: 'Check out PR head tools'
34-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
35-
with:
36-
persist-credentials: false
37-
sparse-checkout: |
38-
Doc/tools/check-html-ids.py
39-
Doc/tools/removed-ids.txt
40-
sparse-checkout-cone-mode: false
41-
path: pr-head
42-
- name: 'Use PR head tools'
43-
run: |
44-
cp pr-head/Doc/tools/check-html-ids.py Doc/tools/check-html-ids.py
45-
[ -f pr-head/Doc/tools/removed-ids.txt ] && cp pr-head/Doc/tools/removed-ids.txt Doc/tools/removed-ids.txt
54+
run: make -C /tmp/merge-base/Doc/ SPHINXOPTS="--quiet" html
4655
- name: 'Collect HTML IDs'
47-
run: python Doc/tools/check-html-ids.py collect Doc/build/html -o /tmp/html-ids-base.json.gz
56+
run: python Doc/tools/check-html-ids.py collect /tmp/merge-base/Doc/build/html -o /tmp/html-ids-base.json.gz
4857
- name: 'Download PR head HTML IDs'
4958
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
5059
with:

.github/workflows/reusable-cifuzz.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
required: true
1414
type: string
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
cifuzz:
1821
name: ${{ inputs.oss-fuzz-project-name }} (${{ inputs.sanitizer }})

.github/workflows/reusable-context.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ on: # yamllint disable-line rule:truthy
5454
description: Whether to run the Windows tests
5555
value: ${{ jobs.compute-changes.outputs.run-windows-tests }} # bool
5656

57+
permissions:
58+
contents: read
59+
5760
jobs:
5861
compute-changes:
5962
name: Create context from changed files

0 commit comments

Comments
 (0)