Skip to content

tests: cover <V.postN pre-release exclusion - #1139

Closed
notatallshaw wants to merge 2 commits into
pypa:mainfrom
notatallshaw:test/less-than-post-prerelease
Closed

notatallshaw wants to merge 2 commits into
pypa:mainfrom
notatallshaw:test/less-than-post-prerelease

Conversation

@notatallshaw

Copy link
Copy Markdown
Member

Discovered while looking for edge cases for #1119.

<V.postN excludes pre-releases of the base release the same way <V does for final releases, but there were no tests covering this. Added cases for dev, alpha, rc, and post-dev candidates against <1.0.post0 and <1.0.post1, plus the non-pre-release versions they should still accept.

@notatallshaw

notatallshaw commented Mar 28, 2026 •

Copy link
Copy Markdown
Member Author

I've realized that either packaging is currently implementing the spec wrong or the specification needs updating, I'll either have a PR or DPO post shortly.

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.

2 participants