# HG changeset patch # User Jeff Hammel # Date 1330713451 28800 # Node ID 8fa30276b3e0f1539b1163fa19b97382cabea7ac # Parent 10f343c483ee19b45355b42c598e47520544e899 add a command line entry point diff -r 10f343c483ee -r 8fa30276b3e0 setup.py --- a/setup.py Fri Mar 02 10:13:25 2012 -0800 +++ b/setup.py Fri Mar 02 10:37:31 2012 -0800 @@ -5,7 +5,7 @@ except IOError: description = '' -version = "0.0" +version = "0.1" setup(name='simpypi', version=version, @@ -26,5 +26,7 @@ ], entry_points=""" # -*- Entry points: -*- + [console_scripts] + simpypi = simpypi.factory:main """, ) diff -r 10f343c483ee -r 8fa30276b3e0 simpypi/factory.py --- a/simpypi/factory.py Fri Mar 02 10:13:25 2012 -0800 +++ b/simpypi/factory.py Fri Mar 02 10:37:31 2012 -0800 @@ -38,7 +38,7 @@ app = SimPyPI(**app_conf) return NamespacedFileserver(app, directory, '/index') -def main(args=sys.argv[:]): +def main(args=sys.argv[1:]): # parse command line options usage = '%prog [options]'