Skip to content

Commit

Permalink
imports fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourpeas committed Apr 25, 2021
1 parent 7e8f638 commit 82a21eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
12 changes: 6 additions & 6 deletions cli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from rcpchgrowth.global_functions import centile, measurement_from_sds, sds_for_measurement

@click.group()
def cli():
def methods():
pass

@click.command()
Expand Down Expand Up @@ -76,9 +76,9 @@ def measurement(reference: str, decimal_age: float, sex:str, measurement_method:
click.echo(f"SDS {sds}\n {measurement_method}: {result} {suffix}")


cli.add_command(age_calculation)
cli.add_command(sds)
cli.add_command(measurement)
methods.add_command(age_calculation)
methods.add_command(sds)
methods.add_command(measurement)

if __name__ == 'main':
cli()
if __name__ == '__main__':
methods()
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@

setup(
name ='rcpchgrowth-python-cli',
version ='1.0.0',
version ='1.0.1',
author ='Simon Chapman',
author_email ='[email protected]',
url ='https://github.com/rcpch/rcpchgrowth-python-cli',
description ='Command Line Interface for RCPCHGrowth.',
long_description = long_description,
long_description_content_type ="text/markdown",
packages = find_packages(),
# packages = find_packages(),
py_modules=['cli'],
entry_points ={
'console_scripts': [
'rcpchgrowth-cli = cli:main'
Expand Down

0 comments on commit 82a21eb

Please sign in to comment.