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 b0d5462
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os
import re
import setuptools
from collections import defaultdict

Expand Down Expand Up @@ -40,17 +39,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 b0d5462

Please sign in to comment.