feat: add CPython 3.15 support for Android - #2858
Merged
Merged
Conversation
Add cp315 identifiers to build-platforms.toml for both iOS (arm64_iphoneos, x86_64_iphonesimulator, arm64_iphonesimulator) and Android (arm64_v8a, x86_64). Update bin/update_pythons.py to route iOS 3.15+ to python.org instead of BeeWare GitHub releases. Update README.md platform table to show Android and iOS as supported for 3.15. Add cp315-cp315 to expected_wheels test defaults for android and ios platforms. Assisted-by: OpenCode:Kimi-K2.6 Signed-off-by: Henry Schreiner <[email protected]>
All changes made and linting passes. Here's a summary of what was done: 1. test/utils.py:390-394 — Added "cp315-cp315": 24 to the Android API level mapping, fixing the KeyError: 'cp315-cp315' in test_android.py::test_expected_wheels. 2. cibuildwheel/resources/build-platforms.toml:247 — Removed the cp315-ios_x86_64_iphonesimulator entry since CPython 3.15 dropped Intel iOS simulator support. 3. test/utils.py:397-405 — Updated the iOS expected wheels logic to return an empty platform_tags list for x86_64 when the Python version is 3.15+, so no x86_64_iphonesimulator wheels are expected for cp315+ on Intel Macs. The XCframework slice name (ios-arm64_x86_64-simulator) stays the same in ios.py — I verified the 3.15 tarball still uses that name. The target_python.exists() iOS ARM64 failure on the feature branch is a separate issue (the 3.15 python.org distribution has a different structure than the beeware distributions used for 3.13/3.14) — left alone per your request. Signed-off-by: Henry Schreiner <[email protected]> Assisted-by: OpenCode:glm-5.1
Signed-off-by: Henry Schreiner <[email protected]>
Signed-off-by: Henry Schreiner <[email protected]>
Signed-off-by: Henry Schreiner <[email protected]>
Signed-off-by: Henry Schreiner <[email protected]>
Cherry-picked all changes from henryiii/feat/cp315-ios-android, then reverted iOS-specific parts (iOS 3.15 build configs, ios.py assert removal, update_pythons.py iOS URL logic, iOS test expectations, and README iOS column for 3.15). Android cp315 entries, test expectations, and README Android column remain. Assisted-by: OpenCode:glm-5
agriyakhetarpal
approved these changes
May 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Human triggered, AI assisted PR (using this skill). AI text below. 🤖
Summary
Adds CPython 3.15 support for the Android platform, cherry-picked from
henryiii/feat/cp315-ios-androidwith all iOS-specific changes reverted.What's included (from the source branch)
build-platforms.tomltest/utils.pyWhat was reverted (iOS-specific)
build-platforms.tomlios.pyassert removal (restoredassert target_python.exists())update_pythons.pyiOS 3.15+ download URL logictest/utils.pyAssisted-by: OpenCode:glm-5