Skip to content

feat: remove 32-bit linux from auto arch, fix auto32 on linux aarch64 #2458

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 3 commits into from
Jun 10, 2025

Conversation

henryiii
Copy link
Contributor

@henryiii henryiii commented Jun 9, 2025

This is the proposal (option 2), close #2451.

@henryiii henryiii force-pushed the henryiii/feat/autorework branch 3 times, most recently from 2c79987 to 51bc714 Compare June 9, 2025 21:55
@henryiii henryiii marked this pull request as ready for review June 10, 2025 00:09
@henryiii henryiii requested a review from Copilot June 10, 2025 00:09
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the architecture configuration logic by removing 32‑bit Linux architectures from the default "auto" option and refining the behavior of "auto32" on Linux (particularly on aarch64) while updating test cases, documentation, and the pre-commit configuration accordingly.

  • Update tests to expect only 64‑bit Linux archs by default.
  • Refactor Architecture.parse_config and Architecture.bitness_archs using match‑case to correctly map auto and native architectures.
  • Revise documentation and pre-commit configuration to align with the new behavior.

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
unit_test/options_test.py Added explicit arch list "auto64", "auto32" in test configurations.
unit_test/option_prepare_test.py Updated test environment to set CIBW_ARCHS reflecting new arch behavior.
unit_test/main_tests/main_platform_test.py Adjusted expected auto architectures for Linux.
unit_test/architecture_test.py Modified tests for auto arch parsing, including aarch32 condition.
test/utils.py Added a new full_auto parameter to conditionally build both arch wheels.
docs/options.md Updated option descriptions, tables, warnings, and notes regarding auto archs.
cibuildwheel/architecture.py Refactored config parsing with match‑case and updated bitness logic.
README.md Updated checksum metadata.
.pre-commit-config.yaml Updated cogapp dependency version.

@henryiii henryiii force-pushed the henryiii/feat/autorework branch from 51bc714 to 9c411c2 Compare June 10, 2025 05:57
Copy link
Contributor

@joerick joerick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Big thanks for putting this together. Looks good to me, just a couple notes.

@joerick
Copy link
Contributor

joerick commented Jun 10, 2025

The Azure failure is:

This is a scheduled Windows Server 2019 brownout. The Windows Server 2019 image will be removed on 2025-06-30. For more details, see actions/runner-images#12045

@joerick
Copy link
Contributor

joerick commented Jun 10, 2025

I raised a PR for that - #2461 .

@henryiii henryiii merged commit e188d9e into pypa:main Jun 10, 2025
26 of 28 checks passed
@henryiii henryiii deleted the henryiii/feat/autorework branch June 10, 2025 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop linux i686 from auto archs for v3.0 ?
2 participants