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

Fix prefix version matching #560

Closed
wants to merge 1 commit into from
Closed

Fix prefix version matching #560

wants to merge 1 commit into from

Conversation

mayeut
Copy link
Member

@mayeut mayeut commented Jun 18, 2022

This commit fixes prefix version matching when the prospective version contains a pre-release and/or post-release and/or dev segment.

This commit does not take into account pre-release and/or post-release segment in the specifier as PEP 440 is not precise enough for the behavior of such specifier and the existing code was not taking that into account either.

fix: #559

This commit fixes prefix version matching when the prospective version contains a pre-release and/or post-release and/or dev segment.

This commit does not take into account pre-release and/or post-release segment in the specifier as PEP 440 is not precise enough for the behavior of such specifier and the existing code was not taking that into account either.
@mayeut
Copy link
Member Author

mayeut commented Jun 18, 2022

Maybe waiting on answers in https://discuss.python.org/t/pep-440-clarification-on-prefix-version-matching-with-pre-release-post-release-segments/16622 is preferable in order to fix both #559 and #425 in one go.

@mayeut
Copy link
Member Author

mayeut commented Jun 18, 2022

I'll close this one pending discussions on discourse. Sorry for the noise.

@mayeut mayeut closed this Jun 18, 2022
@mayeut mayeut deleted the prefix-match branch August 30, 2022 06:45
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.

bug: Specifier("==1.0.*") does not contain Version("1a1")
1 participant