Skip to content

Commit

Permalink
Merge pull request #52 from biocore/remove_gpl
Browse files Browse the repository at this point in the history
Remove GPL code
  • Loading branch information
wasade authored Dec 13, 2022
2 parents 51de139 + fa889a4 commit 4d2fa1c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 842 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ Options:
--help Show this message and exit.
```

Note that the multifurcating support relies on GPL code derived from the Genesis project. That code and LICENSE can be found under `bp/GPL`.
Note that the multifurcating support relies on GPL code derived from the Genesis project. To use this method, please install [iow-gpl](https://github.com/biocore/improved-octo-waddle-gpl).
674 changes: 0 additions & 674 deletions bp/GPL/Genesis_LICENSE.txt

This file was deleted.

3 changes: 0 additions & 3 deletions bp/GPL/__init__.py

This file was deleted.

127 changes: 0 additions & 127 deletions bp/GPL/_insert.pyx

This file was deleted.

34 changes: 0 additions & 34 deletions bp/GPL/tests/test_insert.py

This file was deleted.

7 changes: 6 additions & 1 deletion bp/_cli.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import click
from bp import parse_jplace, insert_fully_resolved
from bp.GPL import insert_multifurcating

try:
from bp.GPL import insert_multifurcating
except:
insert_multifurcating = None

@click.group()
def cli():
Expand All @@ -20,6 +23,8 @@ def placement(placements, output, method):
if method == 'fully-resolved':
f = insert_fully_resolved
elif method == 'multifurcating':
if insert_multifurcating is None:
raise ValueError("Please install with 'pip install iow-gpl'")
f = insert_multifurcating
else:
raise ValueError("Unknown method: %s" % method)
Expand Down
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ def run(self):
["bp/_binary_tree" + ext], ),
Extension("bp._insert",
["bp/_insert" + ext], ),
Extension("bp.GPL._insert",
["bp/GPL/_insert" + ext], ),
Extension("bp.tests.test_bp_cy",
["bp/tests/test_bp_cy" + ext],
include_dirs=['bp/BitArray/'],
Expand Down

0 comments on commit 4d2fa1c

Please sign in to comment.