-
Notifications
You must be signed in to change notification settings - Fork 294
Update Android test-command handling #2590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
8d41ac9
Update Android test-command handling
mhsmith eef161f
Merge remote-tracking branch 'origin/main' into android-test-command
mhsmith 5c2a8dd
Update to Python 3.13.8
mhsmith 4e80e19
Update documentation and tests
mhsmith 64b7539
Deal with `sysconfig.get_config_var("exec_prefix")` changing in Pytho…
mhsmith 0495c1e
Allow test commands starting with `python3`
mhsmith 22e8fbd
test-command cleanups
mhsmith bad797d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Python also supports merged short args, like
python3 -Om calendar. Maybe a leadingpythonshould be stripped regardless of what follows? Also, what aboutpython3?Also, I think this would read nicely with pattern matching:
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good point, but the arguments are processed by the cpython test script, which, if it doesn't find a literal
-mor-c, will insert-m testat the start of the command. This would be very confusing for cibuildwheel users.The script could be improved to detect merged short args, but then this PR would be blocked for 2 months until the next Python release.
This PR also fixes a regression in cibuildwheel 3.2.1, which updated the Android section of build-platforms.toml to Python 3.14.0 (which has the new version of the test script), but didn't include the cibuildwheel side of the changes. This has broken Android testing on Python 3.14.
To make sure any similar problems are caught in the future, I’ve updated
test_expected_wheelsso it not only builds on all Python versions, but also tests on them.I've updated the code to accept that.