From 9defcc0e30a17336bf8686b3d213aadbb1701db6 Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Wed, 3 Feb 2021 17:30:53 +0800 Subject: [PATCH] Make sure 'NAME @ URL' actually resembles a URL This prevents "pseudo URL" VCS requirements from going through the parser and cause issues later. --- src/pip/_internal/req/constructors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pip/_internal/req/constructors.py b/src/pip/_internal/req/constructors.py index 2bf231e3a23..7b13f96996d 100644 --- a/src/pip/_internal/req/constructors.py +++ b/src/pip/_internal/req/constructors.py @@ -80,7 +80,7 @@ def parse_editable(editable_req): except InvalidRequirement: pass else: - if req.url: + if req.url and "://" in req.url: # Join the marker back into the name part. This will be parsed out # later into a Requirement again. if req.marker: