Beispiel #1
0
def main():
    args = docopt(
        __doc__, version=utils.get_version(), help=False, options_first=True
    )

    if args['--help']:
        sys.exit(print_help())

    if args['--list']:
        sys.exit(print_available_casefiles())

    if args['<command>']:
        casefile_name = args['<command>']
        casefile_argv = [casefile_name] + args['<args>']

        try:
            run_casefile(casefile_name, casefile_argv)

        except CasefileConflictError:
            sys.exit("encountered a conflict with another casefile.")

        except CasefileMissingError:
            sys.exit("could not find that casefile.")

        else:
            sys.exit(0)
Beispiel #2
0
from deputy import utils as deputy_utils

# Setup command helpers

if sys.argv[-1] == 'publish':
    os.system('python setup.py sdist upload')
    sys.exit()

os.environ['PYTHONDONTWRITEBYTECODE'] = '1'

# Setup arg values

url              = 'http://github.com/aubricus/deputy'
name             = 'deputy'
version          = deputy_utils.get_version()
description      = 'A person whose immediate superior is a senior figure within an organization and who is empowered to act as a substitute for this superior.'
author           = 'Aubrey Taylor'
author_email     = '*****@*****.**'
packages         = ['deputy']
package_data     = {'deputy': ['LICENSE.md', 'README.md']}
package_dir      = {'deputy': 'deputy'}
long_description = open('README.rst').read()
zip_safe         = False

requires = [
    'setuptools',
    'docopt==0.6.1'
]
entry_points = {
    'console_scripts': [