Update requirementslib

- Fix ref parsing
- Fixes #3214

Signed-off-by: Dan Ryan <dan@danryan.co>
This commit is contained in:
Dan Ryan
2018-11-13 01:01:49 -05:00
parent 7bc754afb2
commit d73879b5e5
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding=utf-8 -*-
__version__ = '1.2.6'
__version__ = '1.2.7'
import logging
import warnings
+2 -2
View File
@@ -891,8 +891,8 @@ class VCSRequirement(FileRequirement):
name = link.egg_fragment
subdirectory = link.subdirectory_fragment
ref = None
if "@" in link.show_url and "@" in uri:
uri, ref = uri.rsplit("@", 1)
if "@" in link.path and "@" in uri:
uri, _, ref = uri.rpartition("@")
if relpath and "@" in relpath:
relpath, ref = relpath.rsplit("@", 1)
return cls(