Gitlab will migrate to a new storage backend starting 0300 UTC on 2020-04-04. We do not anticipate a maintenance window for this migration. Performance may be impacted over the weekend. Thanks for your patience.

Commit 68ae897d authored by Duncan Macleod's avatar Duncan Macleod

setup: use console_scripts to create gracebd exe

parent ecf1a70c
../ligo/gracedb/cli.py
\ No newline at end of file
......@@ -127,7 +127,10 @@ Client = derive_client()
# Main
def main():
def main(args=None):
if args is None:
args = sys.argv[1:]
usage ="""%%prog [options] GROUP PIPELINE SEARCH EVENTFILE
where GROUP is one of %(groups)s
PIPELINE is one of %(pipelines)s
......@@ -256,7 +259,7 @@ Longer strings will be truncated.""" % {
default=[], type=str
)
options, args = op.parse_args()
options, args = op.parse_args(args)
if isinstance(options.labels, str):
options.labels = options.labels.split(',')
......
......@@ -37,9 +37,10 @@ setup(
install_requires = ['six'],
package_data = { 'ligo.gracedb.test' : ['data/*', 'test.sh', 'README'] },
scripts = [
os.path.join('bin','gracedb'),
],
entry_points={
'console_scripts': [
'gracedb=ligo.gracedb.cli:main',
],
}
)
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