Commit 44de5947 authored by Patrick Godwin's avatar Patrick Godwin

fix bugs with setup.py and __main__.py causing CLI to not work correctly

parent 9385dd67
......@@ -6,9 +6,11 @@ __author__ = "Patrick Godwin (patrick.godwin@ligo.org)"
### imports
import argparse
import logging
import signal
from . import deploy
from . import monitor
#from . import deploy
#from . import monitor
from . import serve
from . import utils
......@@ -25,20 +27,20 @@ subparser = parser.add_subparsers(
)
subparser.required = True
p = append_subparser(subparser, 'deploy', deploy.main)
deploy._add_parser_args(p)
#p = utils.append_subparser(subparser, 'deploy', deploy.main)
#deploy._add_parser_args(p)
p = append_subparser(subparser, 'monitor', monitor.main)
monitor._add_parser_args(p)
#p = utils.append_subparser(subparser, 'monitor', monitor.main)
#monitor._add_parser_args(p)
p = append_subparser(subparser, 'serve', serve.main)
p = utils.append_subparser(subparser, 'serve', serve.main)
serve._add_parser_args(p)
#-------------------------------------------------
### main
def main():
signal.signal(signal.SIGINT, signal.SIGTERM)
signal.signal(signal.SIGINT, signal.SIG_DFL)
logging.basicConfig(
level=10,
format='%(asctime)s | %(name)s : %(levelname)s : %(message)s',
......
......@@ -3,11 +3,11 @@ from setuptools import setup
setup(
name = 'datamon',
description = 'Data monitoring and visualization tools',
version = '0.1.0'
version = '0.1.0',
author = 'Patrick Godwin',
author_email = 'patrick.godwin@ligo.org',
url = 'https://git.ligo.org/gstlal-visualisation/gstlal-datamon.git',
license = 'GPL',
license = 'GPLv2+',
packages = [
'datamon',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment