]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
- [bug] fix the config.main() function to honor
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 20 Jan 2012 18:42:13 +0000 (13:42 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 20 Jan 2012 18:42:13 +0000 (13:42 -0500)
  the arguments passed, remove no longer used
  "scripts/alembic" as setuptools creates this
  for us.  [#22]

CHANGES
alembic/__init__.py
alembic/config.py
scripts/alembic [deleted file]

diff --git a/CHANGES b/CHANGES
index 0b702849c469f6e233e159b8c6faa9202a641ddd..c34c8bc73cbcfce281dd404d5be74102a663600f 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,10 @@
+0.1.2
+=====
+- [bug] fix the config.main() function to honor
+  the arguments passed, remove no longer used
+  "scripts/alembic" as setuptools creates this
+  for us.  [#22]
+
 0.1.1
 =====
 - [bug] Clean up file write operations so that
index 1ed8a2038aaf27da5bddfe3cea0ad21664c2808a..18984e33530551e7aef9c437563789eb52b338d8 100644 (file)
@@ -1,6 +1,6 @@
 from os import path
 
-__version__ = '0.1.1'
+__version__ = '0.1.2'
 
 package_dir = path.abspath(path.dirname(__file__))
 
index 79eb42d43ea83cf0232d37bec9c327569ac5a478..d48df0fb475305a1545e97759f2f99206a564f1c 100644 (file)
@@ -114,6 +114,7 @@ class Config(object):
         """
         return self.get_section_option(self.config_ini_section, name, default)
 
+
 def main(argv=None, **kwargs):
     """The console runner function for Alembic."""
 
@@ -184,7 +185,7 @@ def main(argv=None, **kwargs):
             add_options(subparser, positional, kwarg)
             subparser.set_defaults(cmd=(fn, positional, kwarg))
 
-    options = parser.parse_args()
+    options = parser.parse_args(argv)
 
     fn, positional, kwarg = options.cmd
 
diff --git a/scripts/alembic b/scripts/alembic
deleted file mode 100755 (executable)
index 5a76304..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/usr/bin/env python
-
-from alembic.config import main
-import sys
-
-if __name__ == "__main__":
-    main(sys.argv)
-