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

@gaborbernatgaborbernat commented May 27, 2026

Copy link
Copy Markdown
Member

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

Labels

bugSomething 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

@gaborbernat