From 480d7866d0e407f2279b50485b0ef608d621e49b Mon Sep 17 00:00:00 2001 From: davidh-ssec <david.hoese@ssec.wisc.edu> Date: Tue, 26 Jan 2016 20:50:20 -0600 Subject: [PATCH] initial setup for luigi task testing --- sparchive/setup.py | 3 ++- sparchive/sparchive/luigi_tasks.py | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 sparchive/sparchive/luigi_tasks.py diff --git a/sparchive/setup.py b/sparchive/setup.py index d8dc83a..ddf3e53 100644 --- a/sparchive/setup.py +++ b/sparchive/setup.py @@ -10,10 +10,11 @@ with open(os.path.join(here, 'CHANGES.txt')) as f: requires = [ "sh", + "luigi", ] setup(name='sparchive', - version='0.1', + version='0.2', description='Software for managing the archival process for SPARC instrument data on SSEC servers', long_description=README + '\n\n' + CHANGES, classifiers=[ diff --git a/sparchive/sparchive/luigi_tasks.py b/sparchive/sparchive/luigi_tasks.py new file mode 100644 index 0000000..5d3aefd --- /dev/null +++ b/sparchive/sparchive/luigi_tasks.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python +# encoding: utf-8 +"""This module is used to hold various tasks for completing SPARC related processing. + +As development continues this module may get split into more modules or task objects +may get placed next to the code that they use, but for now we keep it separate for +testing. +""" +__docformat__ = "restructuredtext en" + +import os +import sys +import logging +import luigi + +LOG = logging.getLogger(__name__) + + +def main(): + from argparse import ArgumentParser + parser = ArgumentParser() + args = parser.parse_known_args() + +if __name__ == "__main__": + sys.exit(main()) \ No newline at end of file -- GitLab