Skip to content

Commit

Permalink
feat: Allow packages from git repositories in extras
Browse files Browse the repository at this point in the history
  • Loading branch information
roquelopez committed Nov 13, 2024
1 parent 096f6de commit 3b9a8d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion extra_requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
PyMart: genes
PyMart @ git+https://github.com/ivanp1994/PyMart.git@main: genes
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,15 @@ def get_extra_requires():
if k.strip() and not k.startswith("#"):
tags = set()
if ":" in k:
k, v = k.split(":")
k, v = k.rsplit(":", 1)
tags.update(vv.strip() for vv in v.split(","))
tags.add(re.split("[<=>]", k)[0])
for t in tags:
extra_dependencies[t].add(k)

# Add tag `full` at the end
extra_dependencies["full"] = set(
vv for v in extra_dependencies.values() for vv in v
)

return extra_dependencies


Expand Down

0 comments on commit 3b9a8d2

Please sign in to comment.