Specifier
Greater than comparison returns incorrect result for a version with dev+local parts
#810
Labels
Specifier
Greater than comparison returns incorrect result for a version with dev+local parts
#810
When a using a
Specifier
with a>
comparison, comparing returns an incorrect result for the following situation:local
segmentdev
segment.My understanding from PEP440 is that the entire public portion of the version (including the dev segment) should be included in the comparison? I think this is due to this line: https://github.com/pypa/packaging/blob/main/src/packaging/specifiers.py#L489 where it should instead be:
This is related, but not exactly the same as #519 (as this issue is specifically about comparing two dev versions).
Example:
The text was updated successfully, but these errors were encountered: