]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
enabled automatic script creation (for windows)
authormelnychuk <none@none>
Tue, 29 Nov 2011 10:45:37 +0000 (11:45 +0100)
committermelnychuk <none@none>
Tue, 29 Nov 2011 10:45:37 +0000 (11:45 +0100)
alembic/config.py
setup.py

index 0c2fe1945938e7800e38275ba968ba6c8d1ed4c1..79eb42d43ea83cf0232d37bec9c327569ac5a478 100644 (file)
@@ -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):
index e6e2beb4d052bde584979e9d84ad9e2bc8f25f2a..7ed20d17b79a2955f297e3d6b839d6b94f233955 100644 (file)
--- 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
 )