From 3d9b89ffde18b4fcee00cb025bb02961c29b02ef Mon Sep 17 00:00:00 2001 From: melnychuk Date: Tue, 29 Nov 2011 11:45:37 +0100 Subject: [PATCH] enabled automatic script creation (for windows) --- alembic/config.py | 2 +- setup.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/alembic/config.py b/alembic/config.py index 0c2fe194..79eb42d4 100644 --- a/alembic/config.py +++ b/alembic/config.py @@ -114,7 +114,7 @@ class Config(object): """ return self.get_section_option(self.config_ini_section, name, default) -def main(argv): +def main(argv=None, **kwargs): """The console runner function for Alembic.""" def add_options(parser, positional, kwargs): diff --git a/setup.py b/setup.py index e6e2beb4..7ed20d17 100644 --- a/setup.py +++ b/setup.py @@ -35,7 +35,6 @@ setup(name='alembic', license='MIT', packages=find_packages('.', exclude=['examples*', 'test*']), include_package_data=True, - scripts=['scripts/alembic'], tests_require = ['nose >= 0.11'], test_suite = "nose.collector", zip_safe=False, @@ -47,7 +46,8 @@ setup(name='alembic', # to be handled 'argparse' ], - entry_points=""" - """, + entry_points = { + 'console_scripts': [ 'alembic = alembic.config:main' ], + }, **extra ) -- 2.47.2