From 3b9a8d2b903673a9111293248a475f9fa8128c4d Mon Sep 17 00:00:00 2001 From: Roque Lopez Date: Wed, 13 Nov 2024 11:56:03 -0500 Subject: [PATCH] feat: Allow packages from git repositories in extras --- extra_requirements.txt | 2 +- setup.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/extra_requirements.txt b/extra_requirements.txt index c8b6cd1..152e6af 100644 --- a/extra_requirements.txt +++ b/extra_requirements.txt @@ -1 +1 @@ -PyMart: genes \ No newline at end of file +PyMart @ git+https://github.com/ivanp1994/PyMart.git@main: genes \ No newline at end of file diff --git a/setup.py b/setup.py index cba2128..9798a76 100644 --- a/setup.py +++ b/setup.py @@ -40,9 +40,8 @@ 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) @@ -50,7 +49,6 @@ def get_extra_requires(): extra_dependencies["full"] = set( vv for v in extra_dependencies.values() for vv in v ) - return extra_dependencies