Jose Diaz-Gonzalez

Make setup.py runnable

Showing 1 changed file with 38 additions and 34 deletions
...@@ -13,37 +13,41 @@ def open_file(fname): ...@@ -13,37 +13,41 @@ def open_file(fname):
13 return open(os.path.join(os.path.dirname(__file__), fname)) 13 return open(os.path.join(os.path.dirname(__file__), fname))
14 14
15 15
16 -setup( 16 +def run_setup():
17 - name='kappa', 17 + setup(
18 - version=__version__, 18 + name='kappa',
19 - description='A CLI tool for AWS Lambda developers', 19 + version=__version__,
20 - long_description=open_file('README.rst').read(), 20 + description='A CLI tool for AWS Lambda developers',
21 - url='https://github.com/garnaat/kappa', 21 + long_description=open_file('README.rst').read(),
22 - author='Mitch Garnaat', 22 + url='https://github.com/garnaat/kappa',
23 - author_email='mitch@garnaat.com', 23 + author='Mitch Garnaat',
24 - license='Apache License 2.0', 24 + author_email='mitch@garnaat.com',
25 - packages=['kappa', 'kappa.scripts'], 25 + license='Apache License 2.0',
26 - package_data={'kappa': ['_version']}, 26 + packages=['kappa', 'kappa.scripts'],
27 - package_dir={'kappa': 'kappa'}, 27 + package_data={'kappa': ['_version']},
28 - entry_points=""" 28 + package_dir={'kappa': 'kappa'},
29 - [console_scripts] 29 + entry_points="""
30 - kappa=kappa.scripts.cli:cli 30 + [console_scripts]
31 - """, 31 + kappa=kappa.scripts.cli:cli
32 - install_requires=open_file('requirements.txt').readlines(), 32 + """,
33 - test_suite='tests', 33 + install_requires=open_file('requirements.txt').readlines(),
34 - include_package_data=True, 34 + test_suite='tests',
35 - zip_safe=True, 35 + include_package_data=True,
36 - classifiers=( 36 + zip_safe=True,
37 - 'Development Status :: 3 - Alpha', 37 + classifiers=(
38 - 'Intended Audience :: Developers', 38 + 'Development Status :: 3 - Alpha',
39 - 'Intended Audience :: System Administrators', 39 + 'Intended Audience :: Developers',
40 - 'Natural Language :: English', 40 + 'Intended Audience :: System Administrators',
41 - 'License :: OSI Approved :: Apache Software License', 41 + 'Natural Language :: English',
42 - 'Programming Language :: Python', 42 + 'License :: OSI Approved :: Apache Software License',
43 - 'Programming Language :: Python :: 2.7', 43 + 'Programming Language :: Python',
44 - 'Programming Language :: Python :: 3', 44 + 'Programming Language :: Python :: 2.7',
45 - 'Programming Language :: Python :: 3.3', 45 + 'Programming Language :: Python :: 3',
46 - 'Programming Language :: Python :: 3.4', 46 + 'Programming Language :: Python :: 3.3',
47 - 'Programming Language :: Python :: 3.5' 47 + 'Programming Language :: Python :: 3.4',
48 - ), 48 + 'Programming Language :: Python :: 3.5'
49 -) 49 + ),
50 + )
51 +
52 +if __name__ == '__main__':
53 + run_setup()
......