Issue 5179 requirementslib==1.6.8 (#5183)

* Vendor in requirementslib==1.6.8
This commit is contained in:
Matt Davis
2022-07-22 20:12:17 -04:00
committed by GitHub
parent 20ab15474f
commit f48f0d64dc
4 changed files with 7 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
Vendor in latest ``requirementslib`` for fix to lock when using editable VCS module with specific ``@`` git reference.
+1 -1
View File
@@ -10,7 +10,7 @@ from .models.lockfile import Lockfile
from .models.pipfile import Pipfile
from .models.requirements import Requirement
__version__ = "1.6.7"
__version__ = "1.6.8"
logger = logging.getLogger(__name__)
+4 -1
View File
@@ -567,7 +567,10 @@ def split_ref_from_uri(uri):
path = parsed.path if parsed.path else ""
scheme = parsed.scheme if parsed.scheme else ""
ref = None
if scheme != "file" and (re.match("^.*@[^/@]*$", path) or path.count("@") >= 2):
schema_is_filelike = scheme in ("", "file")
if (not schema_is_filelike and "@" in path) or (
schema_is_filelike and (re.match("^.*@[^/@]*$", path) or path.count("@") >= 2)
):
path, _, ref = path.rpartition("@")
parsed = parsed._replace(path=path)
return (parsed.url, ref)
+1 -1
View File
@@ -24,7 +24,7 @@ pyparsing==3.0.9
python-dateutil==2.8.2
python-dotenv==0.19.0
pythonfinder==1.2.10
requirementslib==1.6.7
requirementslib==1.6.8
shellingham==1.4.0
six==1.16.0
termcolor==1.1.0