forked from pypa/packaging
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix specifier matching when the specifier is long and has an epoch
`_pad_version` assumes that all components that aren't numeric are suffixes. But that assumption breaks when epoch numbers are present, because `_version_split` outputs a component like "2!1". Fix the assumption by making `_version_split` separate the epoch number into its own component. Introduce `_version_join` to correctly join the output of `_version_split` back into a string, which is needed by `_compare_compatible`. Fixes pypa#683
- Loading branch information
Showing
3 changed files
with
29 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters