fix zip urls

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-09-29 08:00:56 -04:00
parent 533587ee10
commit 4ec3e3bab4
+4 -1
View File
@@ -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: