Skip to content

Commit

Permalink
add git support
Browse files Browse the repository at this point in the history
  • Loading branch information
jgirardet authored and gsemet committed Feb 6, 2018
1 parent 320f28a commit 8af8bcb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pipenv_to_requirements/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ def clean_version(pkg_name, pkg_info):
editable = pkg_info.get("editable", False)
markers = pkg_info.get("markers", "").strip()
extras = pkg_info.get("extras", [])
git = pkg_info.get("git", "").strip()
if not editable:
rstr = pkg_name
if version and version != "*":
rstr += version
elif git:
rstr = "-e git+" + git + "#egg=" + pkg_name
else:
rstr = "-e ."
if extras:
Expand Down
1 change: 1 addition & 0 deletions pipenv_to_requirements/vectors/Pipfile.editable
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ tox = "*"
[packages]
pbr = ">=3.0"
pipenv = "*"
bla = {git = "https://github.com/fake/bla.git", editable=true}
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pbr>=3.0
pipenv
-e git+https://github.com/fake/bla.git#egg=bla

0 comments on commit 8af8bcb

Please sign in to comment.