Skip to content

Commit de291ed

Browse files
Merge branch 'main' into resource-constants
2 parents 71671f0 + 0324c72 commit de291ed

File tree

249 files changed

+13945
-4359
lines changed

Some content is hidden

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

249 files changed

+13945
-4359
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"image": "ghcr.io/python/devcontainer:2025.05.29.15334414373",
2+
"image": "ghcr.io/python/devcontainer:latest",
33
"onCreateCommand": [
44
// Install common tooling.
55
"dnf",

.github/workflows/build.yml

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ jobs:
178178
free-threading: ${{ matrix.free-threading }}
179179

180180
build-windows-msi:
181-
name: >- # ${{ '' } is a hack to nest jobs under the same sidebar category
182-
Windows MSI${{ '' }}
181+
# ${{ '' } is a hack to nest jobs under the same sidebar category.
182+
name: Windows MSI${{ '' }} # zizmor: ignore[obfuscation]
183183
needs: build-context
184184
if: fromJSON(needs.build-context.outputs.run-windows-msi)
185185
strategy:
@@ -270,7 +270,7 @@ jobs:
270270
fail-fast: false
271271
matrix:
272272
os: [ubuntu-24.04]
273-
openssl_ver: [3.0.16, 3.1.8, 3.2.4, 3.3.3, 3.4.1]
273+
openssl_ver: [3.0.17, 3.2.5, 3.3.4, 3.4.2, 3.5.2]
274274
# See Tools/ssl/make_ssl_data.py for notes on adding a new version
275275
env:
276276
OPENSSL_VER: ${{ matrix.openssl_ver }}
@@ -397,6 +397,29 @@ jobs:
397397
- name: SSL tests
398398
run: ./python Lib/test/ssltests.py
399399

400+
build-android:
401+
name: Android (${{ matrix.arch }})
402+
needs: build-context
403+
if: needs.build-context.outputs.run-tests == 'true'
404+
timeout-minutes: 60
405+
strategy:
406+
fail-fast: false
407+
matrix:
408+
include:
409+
# Use the same runs-on configuration as build-macos and build-ubuntu.
410+
- arch: aarch64
411+
runs-on: ${{ github.repository_owner == 'python' && 'ghcr.io/cirruslabs/macos-runner:sonoma' || 'macos-14' }}
412+
- arch: x86_64
413+
runs-on: ubuntu-24.04
414+
415+
runs-on: ${{ matrix.runs-on }}
416+
steps:
417+
- uses: actions/checkout@v4
418+
with:
419+
persist-credentials: false
420+
- name: Build and test
421+
run: ./Android/android.py ci ${{ matrix.arch }}-linux-android
422+
400423
build-wasi:
401424
name: 'WASI'
402425
needs: build-context
@@ -586,8 +609,8 @@ jobs:
586609
run: xvfb-run make ci
587610

588611
build-san:
589-
name: >- # ${{ '' } is a hack to nest jobs under the same sidebar category
590-
Sanitizers${{ '' }}
612+
# ${{ '' } is a hack to nest jobs under the same sidebar category.
613+
name: Sanitizers${{ '' }} # zizmor: ignore[obfuscation]
591614
needs: build-context
592615
if: needs.build-context.outputs.run-tests == 'true'
593616
strategy:
@@ -705,6 +728,7 @@ jobs:
705728
- build-ubuntu
706729
- build-ubuntu-ssltests-awslc
707730
- build-ubuntu-ssltests-openssl
731+
- build-android
708732
- build-wasi
709733
- test-hypothesis
710734
- build-asan
@@ -740,6 +764,7 @@ jobs:
740764
build-ubuntu,
741765
build-ubuntu-ssltests-awslc,
742766
build-ubuntu-ssltests-openssl,
767+
build-android,
743768
build-wasi,
744769
test-hypothesis,
745770
build-asan,

.github/workflows/mypy.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,17 @@ on:
1313
- "Lib/test/libregrtest/**"
1414
- "Lib/tomllib/**"
1515
- "Misc/mypy/**"
16+
- "Tools/build/check_extension_modules.py"
17+
- "Tools/build/check_warnings.py"
1618
- "Tools/build/compute-changes.py"
1719
- "Tools/build/deepfreeze.py"
18-
- "Tools/build/generate_sbom.py"
1920
- "Tools/build/generate-build-details.py"
20-
- "Tools/build/verify_ensurepip_wheels.py"
21-
- "Tools/build/update_file.py"
21+
- "Tools/build/generate_sbom.py"
22+
- "Tools/build/generate_stdlib_module_names.py"
23+
- "Tools/build/mypy.ini"
2224
- "Tools/build/umarshal.py"
25+
- "Tools/build/update_file.py"
26+
- "Tools/build/verify_ensurepip_wheels.py"
2327
- "Tools/cases_generator/**"
2428
- "Tools/clinic/**"
2529
- "Tools/jit/**"

.github/workflows/reusable-docs.yml

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,6 @@ jobs:
7575
--fail-if-regression \
7676
--fail-if-improved \
7777
--fail-if-new-news-nit
78-
- name: 'Build EPUB documentation'
79-
continue-on-error: true
80-
run: |
81-
set -Eeuo pipefail
82-
make -C Doc/ PYTHON=../python SPHINXOPTS="--quiet" epub
83-
pip install epubcheck
84-
epubcheck Doc/build/epub/Python.epub &> Doc/epubcheck.txt
85-
- name: 'Check for fatal errors in EPUB'
86-
if: github.event_name == 'pull_request'
87-
continue-on-error: true # until gh-136155 is fixed
88-
run: |
89-
python Doc/tools/check-epub.py
9078
9179
# Run "doctest" on HEAD as new syntax doesn't exist in the latest stable release
9280
doctest:
@@ -114,3 +102,30 @@ jobs:
114102
# Use "xvfb-run" since some doctest tests open GUI windows
115103
- name: 'Run documentation doctest'
116104
run: xvfb-run make -C Doc/ PYTHON=../python SPHINXERRORHANDLING="--fail-on-warning" doctest
105+
106+
check-epub:
107+
name: 'Check EPUB'
108+
runs-on: ubuntu-latest
109+
timeout-minutes: 30
110+
steps:
111+
- uses: actions/checkout@v4
112+
with:
113+
persist-credentials: false
114+
- name: 'Set up Python'
115+
uses: actions/setup-python@v5
116+
with:
117+
python-version: '3'
118+
cache: 'pip'
119+
cache-dependency-path: 'Doc/requirements.txt'
120+
- name: 'Install build dependencies'
121+
run: |
122+
make -C Doc/ venv
123+
python -m pip install epubcheck
124+
- name: 'Build EPUB documentation'
125+
run: make -C Doc/ PYTHON=../python epub
126+
- name: 'Run epubcheck'
127+
continue-on-error: true
128+
run: epubcheck Doc/build/epub/Python.epub &> Doc/epubcheck.txt
129+
- run: cat Doc/epubcheck.txt
130+
- name: 'Check for fatal errors in EPUB'
131+
run: python Doc/tools/check-epub.py

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.11.8
3+
rev: v0.12.8
44
hooks:
55
- id: ruff
66
name: Run Ruff (lint) on Doc/
@@ -42,7 +42,7 @@ repos:
4242
exclude: ^Tools/c-analyzer/cpython/_parser.py
4343

4444
- repo: https://github.com/pre-commit/pre-commit-hooks
45-
rev: v5.0.0
45+
rev: v6.0.0
4646
hooks:
4747
- id: check-case-conflict
4848
- id: check-merge-conflict
@@ -60,7 +60,7 @@ repos:
6060
files: '^\.github/CODEOWNERS|\.(gram)$'
6161

6262
- repo: https://github.com/python-jsonschema/check-jsonschema
63-
rev: 0.33.0
63+
rev: 0.33.2
6464
hooks:
6565
- id: check-dependabot
6666
- id: check-github-workflows
@@ -72,7 +72,7 @@ repos:
7272
- id: actionlint
7373

7474
- repo: https://github.com/woodruffw/zizmor-pre-commit
75-
rev: v1.6.0
75+
rev: v1.11.0
7676
hooks:
7777
- id: zizmor
7878

.well-known/funding-manifest-urls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://www.python.org/funding.json

Android/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,12 @@ similar to the `Android` directory of the CPython source tree.
9696

9797
## Testing
9898

99-
The Python test suite can be run on Linux, macOS, or Windows:
99+
The Python test suite can be run on Linux, macOS, or Windows.
100100

101-
* On Linux, the emulator needs access to the KVM virtualization interface, and
102-
a DISPLAY environment variable pointing at an X server. Xvfb is acceptable.
101+
On Linux, the emulator needs access to the KVM virtualization interface. This may
102+
require adding your user to a group, or changing your udev rules. On GitHub
103+
Actions, the test script will do this automatically using the commands shown
104+
[here](https://github.blog/changelog/2024-04-02-github-actions-hardware-accelerated-android-virtualization-now-available/).
103105

104106
The test suite can usually be run on a device with 2 GB of RAM, but this is
105107
borderline, so you may need to increase it to 4 GB. As of Android

Android/android-env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fail() {
2424
# * https://android.googlesource.com/platform/ndk/+/ndk-rXX-release/docs/BuildSystemMaintainers.md
2525
# where XX is the NDK version. Do a diff against the version you're upgrading from, e.g.:
2626
# https://android.googlesource.com/platform/ndk/+/ndk-r25-release..ndk-r26-release/docs/BuildSystemMaintainers.md
27-
ndk_version=27.2.12479018
27+
ndk_version=27.3.13750724
2828

2929
ndk=$ANDROID_HOME/ndk/$ndk_version
3030
if ! [ -e "$ndk" ]; then

0 commit comments

Comments
 (0)