Skip to content

Commit

Permalink
fix(cli): Fix packaging issues with running CLI.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmussig committed Dec 12, 2023
1 parent c537ebb commit 44651c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions gtdb_precurate/__main__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import sys
from pathlib import Path

import typer
from pathlib import Path

from gtdb_precurate import __version__
from gtdb_precurate.method.create_denovo import create_denovo_clusters
Expand All @@ -11,7 +10,10 @@
from gtdb_precurate.model.tree import Tree
from gtdb_precurate.util.logger import init_logger

app = typer.Typer()


@app.command()
def main(
metadata: Path,
red_dict: Path,
Expand Down Expand Up @@ -67,4 +69,4 @@ def main(


if __name__ == '__main__':
typer.run(main)
app()
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def readme():
description=meta['description'],
entry_points={
'console_scripts': [
'gtdb_precurate = gtdb_precurate.__main__:main'
'gtdb_precurate = gtdb_precurate.__main__:app'
]
},
install_requires=["dendropy>=4.1.0", "typer[all]"],
Expand Down

0 comments on commit 44651c7

Please sign in to comment.