1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Expand our regex to support the new PEP 440 version characters

This commit is contained in:
Donald Stufft 2014-12-16 21:54:35 -05:00
parent 7f4fa85cea
commit 6b2cb9914f

View file

@ -609,7 +609,7 @@ class PackageFinder(object):
all_locations.append(link)
_egg_fragment_re = re.compile(r'#egg=([^&]*)')
_egg_info_re = re.compile(r'([a-z0-9_.]+)-([a-z0-9_.-]+)', re.I)
_egg_info_re = re.compile(r'([a-z0-9_.]+)-([a-z0-9_.!+-]+)', re.I)
_py_version_re = re.compile(r'-py([123]\.?[0-9]?)$')
def _sort_links(self, links):