44 Commits
Author SHA1 Message Date
Miss Islington (bot)andVictor Stinner d73971f830 [3.13] gh-146410: Add --pythoninfo option to regrtest (GH-146413) (#159025)
gh-146410: Add --pythoninfo option to regrtest (GH-146413)

* Android now runs tests with --pythoninfo to dump build information.
* Add display_title() function.
(cherry picked from commit b5a27bdcf0)

Co-authored-by: Victor Stinner <vstinner@python.org>
2026-10-09 12:59:49 +02:00
Zachary Ware 967e136a7e [3.13] gh-158010: Update Android build script to use OpenSSL 3.5.9 (GH-158458)
(cherry picked from commit 596d92387a)
2026-09-29 23:16:09 +00:00
Zachary Ware 08e590e404 [3.13] gh-158010: Update OpenSSL in binaries and CI from 3.0 to 3.5 (#158015)
Includes addition of `Modules/_ssl_data*.h` definitions backported from 3.14's `Modules/_ssl_data_35.h`.
(adapted from commit cf526738ca)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2026-09-28 01:14:19 +02:00
Malcolm Smith 6b6f10133b [3.13] gh-152023: Update Android builds to SQLite 3.53.4 (GH-155101) (#157864) 2026-09-21 08:42:26 +08:00
Zachary Ware 069a4eef6c [3.13] gh-156369: Bump OpenSSL version for Android (#156433) 2026-08-27 07:35:55 +10:00
Malcolm Smith 7c28dcdd6e [3.13] Update Android Gradle plugin to version 9.3.1 (GH-155012) (#155066) 2026-08-02 12:05:47 +03:00
Miss Islington (bot)andMalcolm Smith 36db17826c [3.13] Minor fixes for Android (GH-154895) (#154907)
A collection of small cleanups for Android support:

* Clarifies the documentation around version number handling for iOS and
  Android in os.uname and platform.release
* Ensures that automated NDK installs surface messages written to stderr
* Makes the Android NDK check more robust for incomplete downloads
* Corrects some linting errors in Android build scripts
(cherry picked from commit f4b1d3e891)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
2026-07-30 02:40:04 +00:00
Russell Keith-MageeandVictor Stinner 0ed6cf29a1 [3.13] gh-152785: Upgrade Java from 17 to 21 in GHA Android (GH-152783) (#152922)
Upgrade Java from 17 to 21 in GHA Android, and document the Java version
requirement.
(cherry picked from commit 0a13efc3fb)

Co-authored-by: Victor Stinner <vstinner@python.org>
2026-07-03 13:10:44 +02:00
Miss Islington (bot)andVictor Stinner ce97622b31 [3.13] gh-152711: Add pythoninfo-build command to Platforms/Android (GH-152713) (#152727)
Add a pythoninfo-build command to Platforms/Android to display build
info of the build Python. The command runs "make pythoninfo".

ci and build commands now also run pythoninfo-build
(cherry picked from commit fdcee4f5bd)

Co-authored-by: Victor Stinner <vstinner@python.org>
2026-07-01 03:05:53 +00:00
Miss Islington (bot)andMalcolm Smith a7f5e4e983 [3.13] gh-142387: Revert Android testbed to API level 35 (GH-151816) (#151885)
Revert Android testbed to API level 35
(cherry picked from commit 24828e57e1)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
2026-06-21 22:55:19 +00:00
Zachary Ware 7d530aa588 [3.13] gh-151159: Bump OpenSSL version for Android (GH-151200) 2026-06-09 13:21:33 -05:00
Russell Keith-Magee 22fdd355b1 [3.13] gh-149254: Bump OpenSSL version for Android. (#149273)
Bump OpenSSL version to 3.0.20 for Android.
2026-05-02 16:51:21 +08:00
9628a797da [3.13] gh-146450: Ensure Android gradle build uses custom cross-build dir (GH-148319) (#148471)
Ensures that the testbed's Gradle configuration uses the cross-build environment
variable, and that variable is passed to Gradle by the cross-build script.
(cherry picked from commit b29afe62f7)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Co-authored-by: Malcolm Smith <smith@chaquo.com>
2026-04-13 09:13:37 +08:00
Miss Islington (bot)andMalcolm Smith 06f11ecff4 [3.13] gh-144418: Increase Android testbed emulator RAM to 4 GB (GH-148054) (#148151)
Pre-create the Android emulator image so that the the configuration can be
modified to use 4GB of RAM.
(cherry picked from commit a95ee3a21d)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
2026-04-06 14:09:20 +08:00
Malcolm SmithandRobert Kirkman 3ea97a26b6 [3.13] gh-146541: Allow building the Android testbed for 32-bit targets (GH-146542) (#148107)
Allows building the Android testbed for 32-bit targets, adding the target triplets
`arm-linux-androideabi` and `i686-linux-android`.
(cherry picked from commit 848bbe9ff2)

Co-authored-by: Robert Kirkman <31490854+robertkirkman@users.noreply.github.com>
2026-04-06 07:47:01 +08:00
Miss Islington (bot)andRussell Keith-Magee 140074eae6 [3.13] gh-146450: Normalise feature set of Android build script with other platform build scripts (GH-146451) (#148066)
Allows for cleaning a subset of targets, customization of the download cache and
cross-build directories, and modifies the build command to allow 'all', 'build'
and 'hosts' targets.
(cherry picked from commit b8470deb5d)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
2026-04-04 12:27:56 +08:00
Zachary Ware 48f9ecad92 [3.13] gh-144551: Update Android builds to use OpenSSL 3.0.19 (GH-144868)
(cherry picked from commit 87c7f193b8)
2026-02-15 23:27:39 -06:00
Miss Islington (bot)andMalcolm Smith ebc047f717 [3.13] gh-144415: Android testbed fixes (GH-142912) (#144417)
Modifies handling of `.gz` files in Android app payloads, and ensures that
when the Android testbed streams logs, stream flushes aren't treated as
newlines. This improves the output of test suites that use "one dot per test"
progress indicators.
(cherry picked from commit cb1dc91dcb)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
2026-02-03 09:28:43 +00:00
Miss Islington (bot)andMalcolm Smith a75c58b6c8 [3.13] gh-142387: Reduce Android testbed API level to 33 (GH-144315) (#144318)
The emulator images for API level 34 and 35 have significant issues with image size and
internet connectivity. Reverts the default API level used for testbed testing to 33.
(cherry picked from commit 6543720b63)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
2026-01-29 08:42:13 +08:00
Miss Islington (bot)andMalcolm Smith e7d2f62bb3 [3.13] Fix disk space issues in Android CI (GH-142289) (#142293)
Fix disk space issues in Android CI (GH-142289)
(cherry picked from commit cac4b04973)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
2025-12-05 16:12:05 +01:00
Miss Islington (bot)andMalcolm Smith f09a6a2fc8 [3.13] gh-140041: Fix import of ctypes on Android and Cygwin when ABI flags are present (GH-140178) (#140181)
Use sysconfig to determine the full name of libpython, rather than hardcoding
a library name that doesn't have ABI flags.
(cherry picked from commit 7f371ed84b)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
2025-10-15 22:03:25 +00:00
Miss Islington (bot)andMalcolm Smith d3a4e0608b [3.13] gh-137242: Allow Android testbed to take all Python command-line options (GH-138805) (#139638)
Modifies the Android test runner to ensure that all valid Python command line
options are preserved when running the test suite.
(cherry picked from commit a9b0506d8d)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
2025-10-06 06:25:58 +00:00
Russell Keith-MageeandMalcolm Smith 336f9b09c2 [3.13] gh-139573: Update Android to OpenSSL 3.0.18 (GH-139562) (#139584)
Update Android to OpenSSL 3.0.18.
(cherry picked from commit 0f0fc5a163)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
2025-10-05 01:16:05 +00:00
85649b769f [3.13] gh-137242: Add a --no-randomize option, and use it in Android CI (GH-138649) (#138685)
Adds a --no-randomize option to the CI runner, so that randomisation can be easily
disabled for --fast-ci and --slow-ci configurations on single-threaded testing platforms
like Android, iOS, and Emscripten.

---------
(cherry picked from commit 01895d233b)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Malcolm Smith <smith@chaquo.com>
2025-09-09 10:53:01 +02:00
30194914c2 [3.13] gh-137242: Add Android CI job (GH-137186) (#137684)
(cherry picked from commit f660ec3753)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
2025-08-13 06:00:20 +08:00
1024f1ab86 [3.13] gh-137134: Update SQLite to 3.50.4 for binary releases (GH-137135) (#137455)
gh-137134: Update SQLite to 3.50.4 for binary releases (GH-137135)

* Update SQLite to 3.50.3 for binary releases.
* macOS and Windows news entries. what about Android?
* update sbom hash
* newline fix via regen-sbom
* news wording
* Update SQLite to 3.50.4 for binary releases.
* update 3.50.4.0.tar.gz hash in sbom & regen-sbom to fix whitespace
* Postpone to a separate PR the build-installer changes to support additional hash types




(cherry picked from commit 532c37695d)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Ned Deily <nad@python.org>
2025-08-06 14:59:55 +02:00
Miss Islington (bot)andMalcolm Smith 4999cdbced [3.13] gh-131531: Android test fixes (GH-136845) (#136963)
Modifies the test runner script to no longer export the the HOST environment
variable, and to allow for tests that produce no Python output (output from the
Android console is still expected and required). These changes stem from
knowledge gained during developing a PR for Android support in cibuildwheel.
(cherry picked from commit 149bddcc21)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
2025-07-22 19:27:02 +08:00
fd39aa3a7f [3.13] gh-131531: android.py enhancements to support cibuildwheel (GH-132870) (#135164)
Modifies the environment handling and execution arguments of the Android management
script to support the compilation of third-party binaries, and the use of the testbed to
invoke third-party test code.
(cherry picked from commit 2e1544fd2b)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
2025-06-05 17:23:46 +08:00
Miss Islington (bot)andMalcolm Smith bf8eecdca7 [3.13] gh-131531: Make Android build retry after network failures (GH-133193) (#133236)
Adds a retry strategy when downloading compilation resources for Android, plus some other cleanups.
(cherry picked from commit feac343d1a)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
2025-05-01 04:41:44 +00:00
Malcolm Smith 24bee4e5cf [3.13] Backport miscellaneous Android testbed changes (#131985)
Backport miscellaneous Android testbed changes from #125946, but without the
Android API version bump.
2025-04-02 08:11:57 +08:00
Miss Islington (bot)andMalcolm Smith 38943bef25 [3.13] gh-131531: Add android.py package command (GH-131532) (#131960)
Adds a `package` entry point to the `android.py` build script to support
creating an Android distribution artefact.
(cherry picked from commit fe5c4c53e7)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
2025-04-01 10:05:39 +08:00
67087d9327 [3.13] gh-129917: Update installers to use SQLite 3.49.1 (GH-131025) (#131957)
gh-129917: Update installers to use SQLite 3.49.1 (GH-131025)

(cherry picked from commit 45a3ab5a81)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Ned Deily <nad@python.org>
2025-03-31 21:37:14 +00:00
Russell Keith-MageeandZanie Blue 98c25b8e13 [3.13] gh-129156: Fix variable quoting in android-env.sh script (GH-129321) (#129332)
Adds quoting to `android-env.sh` to protect against spaces in paths.
(cherry picked from commit a49225cc66)

Co-authored-by: Zanie Blue <contact@zanie.dev>
2025-01-27 15:07:40 +08:00
Miss Islington (bot)andMalcolm Smith 904634b258 [3.13] gh-125940: Android: support 16 KB pages (GH-125941) (#125948)
gh-125940: Android: support 16 KB pages (GH-125941)

Modify Android build tooling to use 16kB pages.
(cherry picked from commit e68d4b08ff)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
2024-10-25 08:37:38 +08:00
Victor Stinnerandalgonell d432fa43b9 [3.13] Fix typos (#123775) (#123866)
Fix typos (#123775)

(cherry picked from commit 9017b95ff2)

Co-authored-by: algonell <algonell@gmail.com>
2024-10-07 23:44:31 +02:00
Miss Islington (bot)andMalcolm Smith 7c9bbaaaa3 [3.13] gh-116622: Switch test_stress_delivery_simultaneous from SIGUSR1 to SIGUSR2 (GH-123981) (#123988)
gh-116622: Switch test_stress_delivery_simultaneous from SIGUSR1 to SIGUSR2 (GH-123981)

Use SIGUSR1 instead of SIGUSR2 to improve reliability of signal stress test on Android.
(cherry picked from commit 43303e362e)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
2024-09-24 10:21:26 -07:00
Miss Islington (bot)andMalcolm Smith e9b531d239 [3.13] gh-116622: Android test script improvements (GH-124012) (#124034)
gh-116622: Android test script improvements (GH-124012)

* Set Android test script stdout to line-buffered
* Print warning logcat messages on stderr
* Add a -vv option to display high-volume messages which are rarely useful
* Documentation and comment improvements
(cherry picked from commit 1f9d163850)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
2024-09-23 17:33:33 -07:00
9a60a9ddaf [3.13] gh-116622: Complete Android documentation (GH-124259) (#124395)
gh-116622: Complete Android documentation (GH-124259)
(cherry picked from commit e80dd3035f)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Co-authored-by: T. Wouters <thomas@python.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-09-24 00:13:45 +00:00
Miss Islington (bot)andZachary Ware d8324335b5 [3.13] gh-123418: Update Android build to use OpenSSL 3.0.15 (GH-123685) (#123715)
gh-123418: Update Android build to use OpenSSL 3.0.15 (GH-123685)
(cherry picked from commit 1fdfce9452)

Co-authored-by: Zachary Ware <zach@python.org>
2024-09-04 23:08:38 +00:00
Miss Islington (bot)andMalcolm Smith cf6d14b966 [3.13] gh-116622: Add Android test script (GH-121595) (#123061)
gh-116622: Add Android test script (GH-121595)

Adds a script for running the test suite on Android emulator devices. Starting
with a fresh install of the Android Commandline tools; the script manages
installing other requirements, starting the emulator (if required), and
retrieving results from that emulator.
(cherry picked from commit f84cce6f25)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
2024-08-16 16:36:46 +08:00
Miss Islington (bot)andMalcolm Smith 5212624c42 [3.13] gh-116622: Fix testPyObjectPrintOSError on Android (GH-122487) (#122490)
gh-116622: Fix testPyObjectPrintOSError on Android (GH-122487)

Adds extra handling for way BSD/Android return errors from calls to fwrite.
(cherry picked from commit 82db572813)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
2024-07-31 00:49:14 +00:00
Malcolm Smith 75955110a6 gh-116622: Android sysconfig updates (#118352) 2024-05-01 16:47:54 +00:00
Malcolm Smith 2520eed0a5 gh-116622: Add Android testbed (GH-117878)
Add code and config for a minimal Android app, and instructions to build and run it.
Improve Android build instructions in general.
Add a tool subcommand to download the Gradle wrapper (with its binary blob). Android
studio must be downloaded manually (due to the license).
2024-05-01 08:36:45 +02:00
Malcolm Smith 3ec57307e7 gh-71052: Add Android build script and instructions (#116426) 2024-03-22 00:52:29 +01:00