Skip to content

🐛 fix(spec): reject invalid version wildcards - #274

Merged
gaborbernat merged 2 commits into
tox-dev:mainfrom
mansur-akhmadi:fix/wildcard-ordering-specifier
Nov 23, 2026
Merged

gaborbernat merged 2 commits into
tox-dev:mainfrom
mansur-akhmadi:fix/wildcard-ordering-specifier

Conversation

@mansur-akhmadi

@mansur-akhmadi mansur-akhmadi commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Interpreter specs such as >=3.12.* and ==3.13rc1.* now raise ValueError before discovery searches for interpreters. The first used to find no interpreter. The second could match a final 3.13 release.

The interpreter spec parser allows .* only with == or != and a version without a pre-release suffix. It enforces this rule when it reads constraints from the public specifier classes.

Fixes #273

@gaborbernat gaborbernat added the bug Something isn't working label Nov 23, 2026
@gaborbernat gaborbernat changed the title 🐛 fix(spec): reject wildcards that PEP 440 forbids 🐛 fix(spec): reject invalid version wildcards Nov 23, 2026
@gaborbernat
gaborbernat enabled auto-merge (squash) November 23, 2026 18:20
@gaborbernat
gaborbernat merged commit 0acdc4a into tox-dev:main Nov 23, 2026
25 checks passed
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.

Spec parser accepts .* wildcards that PEP 440 forbids (>=3.12.*, ==3.13rc1.*)

2 participants