Jose Diaz-Gonzalez

Make setup.py runnable

Showing 1 changed file with 6 additions and 2 deletions
...@@ -13,7 +13,8 @@ def open_file(fname): ...@@ -13,7 +13,8 @@ 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 + setup(
17 name='kappa', 18 name='kappa',
18 version=__version__, 19 version=__version__,
19 description='A CLI tool for AWS Lambda developers', 20 description='A CLI tool for AWS Lambda developers',
...@@ -46,4 +47,7 @@ setup( ...@@ -46,4 +47,7 @@ setup(
46 'Programming Language :: Python :: 3.4', 47 'Programming Language :: Python :: 3.4',
47 'Programming Language :: Python :: 3.5' 48 'Programming Language :: Python :: 3.5'
48 ), 49 ),
49 -) 50 + )
51 +
52 +if __name__ == '__main__':
53 + run_setup()
......