Skip to content

🐛 fix(spec): allow dots in machine/ISA specifier#78

Merged
gaborbernat merged 1 commit into
mainfrom
fix-75-machine-regex-dot
May 27, 2026
Merged

🐛 fix(spec): allow dots in machine/ISA specifier#78
gaborbernat merged 1 commit into
mainfrom
fix-75-machine-regex-dot

Conversation

@gaborbernat
Copy link
Copy Markdown
Member

@gaborbernat gaborbernat commented May 27, 2026

On OpenIndiana, platform.machine() returns i86pc.64bit, which contains a dot. The spec parser regex for the machine group only accepted [a-zA-Z0-9_], so any spec string built from such a machine value failed to parse. This caused test_py_info_satisfies_with_machine to fail on that platform.

🔧 Adding . to the character class in the machine capture group fixes parsing for dotted machine identifiers while remaining backward-compatible with all existing values like arm64, x86_64, and ppc64le.

Fixes #75

The regex for parsing machine names only accepted `[a-zA-Z0-9_]`,
which rejected platforms like OpenIndiana where `platform.machine()`
returns `i86pc.64bit`.

Fixes #75
@gaborbernat gaborbernat changed the title Allow dots in machine/ISA specifier 🐛 fix(spec): allow dots in machine/ISA specifier May 27, 2026
@gaborbernat gaborbernat added the bug Something isn't working label May 27, 2026
@gaborbernat gaborbernat merged commit b9bfcd2 into main May 27, 2026
16 checks passed
@gaborbernat gaborbernat deleted the fix-75-machine-regex-dot branch May 27, 2026 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_py_info_satisfies_with_machine fails on OpenIndiana

1 participant