mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Merge pull request #166 from vilhalmer/all-vcs
Support all version control systems that pip does
This commit is contained in:
+6
-4
@@ -83,10 +83,12 @@ def convert_deps_to_pip(deps, r=True):
|
||||
if 'version' in deps[dep]:
|
||||
version = deps[dep]['version']
|
||||
|
||||
# Support for git.
|
||||
# TODO: support SVN and others.
|
||||
if 'git' in deps[dep]:
|
||||
extra = 'git+{0}'.format(deps[dep]['git'])
|
||||
# Support for version control
|
||||
maybe_vcs = [vcs for vcs in ('git', 'svn', 'hg', 'bzr') if vcs in deps[dep]]
|
||||
vcs = maybe_vcs[0] if maybe_vcs else None
|
||||
|
||||
if vcs:
|
||||
extra = '{0}+{1}'.format(vcs, deps[dep][vcs])
|
||||
|
||||
# Support for @refs.
|
||||
if 'ref' in deps[dep]:
|
||||
|
||||
Reference in New Issue
Block a user