Skip to content

Commit

Permalink
Cleanup artifacts of earlier fixes
Browse files Browse the repository at this point in the history
- Only remove 'vcs+' pattern from URI in convert_deps_from_pip if the
requirement uri explicitly begins with requirement.vcs+
  • Loading branch information
techalchemy committed Nov 27, 2017
1 parent c9ae370 commit de02f53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pipenv/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

# List of version control systems we support.
VCS_LIST = ('git', 'svn', 'hg', 'bzr')
SCHEME_LIST = ('http://', 'https://', 'ftp://', 'file://', 'git://')
SCHEME_LIST = ('http://', 'https://', 'ftp://', 'file://')

requests = requests.Session()

Expand Down Expand Up @@ -661,10 +661,10 @@ def convert_deps_from_pip(dep):
req.path = None

# Crop off the git+, etc part.
if '+' in req.uri:
if req.uri.startswith('{0}+'.format(req.vcs)):
req.uri = req.uri[len(req.vcs) + 1:]
dependency.setdefault(req.name, {}).update({req.vcs: req.uri})
print('dependency: {}'.format(dependency))

# Add --editable, if it's there.
if req.editable:
dependency[req.name].update({'editable': True})
Expand Down

0 comments on commit de02f53

Please sign in to comment.