Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle hyphens as post release separators in source distribution filenames #15644

Merged
merged 5 commits into from
Mar 21, 2024

Conversation

di
Copy link
Member

@di di commented Mar 20, 2024

We currently have an edge case where we're not permitting source distribution filenames that use a hyphen as a post-release separator. This creates a confusing error message for users, as detailed in #14763 (comment).

Until we land #12245 and support PEP 625, we should permit them IFF the version in the filename exactly matches the provided version (otherwise, it's impossible to extract from the filename).

@di di requested a review from a team as a code owner March 20, 2024 18:22
@di di merged commit 8cedd29 into pypi:main Mar 21, 2024
17 checks passed
@di di deleted the handle-hyphens-as-post-release-separators branch March 21, 2024 15:24
javanlacerda pushed a commit to javanlacerda/warehouse that referenced this pull request Mar 25, 2024
…names (pypi#15644)

* Add a failing test

* Permit hyphens as a post-release separator for now
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