Skip to content

export normalize_isa and deprecate KNOWN_ARCHITECTURES#62

Merged
gaborbernat merged 4 commits intomainfrom
fix/remove-known-architectures
Apr 6, 2026
Merged

export normalize_isa and deprecate KNOWN_ARCHITECTURES#62
gaborbernat merged 4 commits intomainfrom
fix/remove-known-architectures

Conversation

@rahuldevikar
Copy link
Copy Markdown
Collaborator

  • Add normalize_isa() to the public API, which normalizes ISA strings to canonical
    form (e.g. amd64x86_64, aarch64arm64) and passes unrecognized values
    through lowercased — making it safe for any platform without requiring an allowlist
  • Deprecate KNOWN_ARCHITECTURES — the constant remains exported for backwards
    compatibility but consumers should migrate to normalize_isa()
  • Relax test_py_info_machine_property to assert the machine value is lowercase
    instead of requiring membership in KNOWN_ARCHITECTURES, fixing test failures on
    platforms like alpha or armv8l
    Fixes: KNOWN_ARCHITECTURES causes test failures on unknown machines #59

@rahuldevikar rahuldevikar force-pushed the fix/remove-known-architectures branch from 3f57bab to 11b636c Compare April 6, 2026 19:31
@gaborbernat gaborbernat merged commit 52d36ef into main Apr 6, 2026
16 checks passed
@gaborbernat gaborbernat deleted the fix/remove-known-architectures branch April 6, 2026 23:10
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.

KNOWN_ARCHITECTURES causes test failures on unknown machines

3 participants