Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

#1139
Closed
notatallshaw wants to merge 2 commits into
pypa:mainpypa/packaging:mainfrom
notatallshaw:test/less-than-post-prereleasenotatallshaw/packaging:test/less-than-post-prereleaseCopy head branch name to clipboard
Closed

tests: cover <V.postN pre-release exclusion#1139
notatallshaw wants to merge 2 commits into
pypa:mainpypa/packaging:mainfrom
notatallshaw:test/less-than-post-prereleasenotatallshaw/packaging:test/less-than-post-prereleaseCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.