Skip to content

Commit e4d6891

Browse files
authored
Merge branch '3.13' into backport-3bffada-3.13
2 parents cb0f32a + 01710af commit e4d6891

File tree

465 files changed

+9459
-3695
lines changed

Some content is hidden

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

465 files changed

+9459
-3695
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ Modules/_interp*module.c @ericsnowcurrently
244244
Lib/test/test_interpreters/ @ericsnowcurrently
245245

246246
# Android
247-
**/*Android* @mhsmith
248-
**/*android* @mhsmith
247+
**/*Android* @mhsmith @freakboy3742
248+
**/*android* @mhsmith @freakboy3742
249249

250250
# iOS (but not termios)
251251
**/iOS* @freakboy3742

.pre-commit-config.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ repos:
2626
name: Run Black on Tools/jit/
2727
files: ^Tools/jit/
2828

29+
- repo: https://github.com/Lucas-C/pre-commit-hooks
30+
rev: v1.5.5
31+
hooks:
32+
- id: remove-tabs
33+
types: [python]
34+
exclude: ^Tools/c-analyzer/cpython/_parser.py
35+
2936
- repo: https://github.com/pre-commit/pre-commit-hooks
3037
rev: v5.0.0
3138
hooks:
@@ -35,12 +42,14 @@ repos:
3542
exclude: ^Lib/test/test_tomllib/
3643
- id: check-yaml
3744
- id: end-of-file-fixer
38-
types: [python]
45+
types_or: [python, yaml]
3946
exclude: Lib/test/tokenizedata/coding20731.py
47+
- id: end-of-file-fixer
48+
files: '^\.github/CODEOWNERS$'
4049
- id: trailing-whitespace
41-
types_or: [c, inc, python, rst]
50+
types_or: [c, inc, python, rst, yaml]
4251
- id: trailing-whitespace
43-
files: '\.(gram)$'
52+
files: '^\.github/CODEOWNERS|\.(gram)$'
4453

4554
- repo: https://github.com/woodruffw/zizmor-pre-commit
4655
rev: v1.6.0

.readthedocs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,3 @@ build:
3232
- make -C Doc venv html
3333
- mkdir _readthedocs
3434
- mv Doc/build/html _readthedocs/html
35-

Android/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ repository's `Lib` directory will be picked up immediately. Changes in C files,
156156
and architecture-specific files such as sysconfigdata, will not take effect
157157
until you re-run `android.py make-host` or `build`.
158158

159+
The testbed app can also be used to test third-party packages. For more details,
160+
run `android.py test --help`, paying attention to the options `--site-packages`,
161+
`--cwd`, `-c` and `-m`.
162+
159163

160164
## Using in your own app
161165

Android/android-env.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
: "${HOST:?}" # GNU target triplet
44

55
# You may also override the following:
6-
: "${api_level:=21}" # Minimum Android API level the build will run on
6+
: "${ANDROID_API_LEVEL:=21}" # Minimum Android API level the build will run on
77
: "${PREFIX:-}" # Path in which to find required libraries
88

99

@@ -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.1.12297006
27+
ndk_version=27.2.12479018
2828

2929
ndk=$ANDROID_HOME/ndk/$ndk_version
3030
if ! [ -e "$ndk" ]; then
@@ -43,7 +43,7 @@ fi
4343
toolchain=$(echo "$ndk"/toolchains/llvm/prebuilt/*)
4444
export AR="$toolchain/bin/llvm-ar"
4545
export AS="$toolchain/bin/llvm-as"
46-
export CC="$toolchain/bin/${clang_triplet}${api_level}-clang"
46+
export CC="$toolchain/bin/${clang_triplet}${ANDROID_API_LEVEL}-clang"
4747
export CXX="${CC}++"
4848
export LD="$toolchain/bin/ld"
4949
export NM="$toolchain/bin/llvm-nm"

0 commit comments

Comments
 (0)