From 4ec3e3bab4741e9d122f10cee346ffabbc9d572e Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Fri, 29 Sep 2017 08:00:56 -0400 Subject: [PATCH] fix zip urls Signed-off-by: Kenneth Reitz --- pipenv/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pipenv/utils.py b/pipenv/utils.py index 1c1391fe..ca328fd9 100644 --- a/pipenv/utils.py +++ b/pipenv/utils.py @@ -501,7 +501,10 @@ def convert_deps_from_pip(dep): req.name = req.name[len(req.name) - 7:] # {path: uri} TOML (spec 4 I guess...) - dependency[req.name] = {'path': hashable_path} + if req.uri: + dependency[req.name] = {'file': hashable_path} + else: + dependency[req.name] = {'path': hashable_path} # Add --editable if applicable if req.editable: