From: melnychuk Date: Tue, 29 Nov 2011 10:45:37 +0000 (+0100) Subject: enabled automatic script creation (for windows) X-Git-Tag: rel_0_1_0~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d9b89ffde18b4fcee00cb025bb02961c29b02ef;p=thirdparty%2Fsqlalchemy%2Falembic.git enabled automatic script creation (for windows) --- 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 )