Remove old hack to support pre-0.7.5 Alembic versions
authorChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 2 Mar 2016 19:18:25 +0000 (11:18 -0800)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 2 Mar 2016 19:20:47 +0000 (11:20 -0800)
Thanks to Jessica Tallon for pointing out this TODO and its associated
hack could be removed.

mediagoblin/db/migration_tools.py
setup.py

index b3fb8f4106b76c17f39cb5186582520541f2826a..a28b3db0f7afc2bdab388f5708aff626fe912896 100644 (file)
@@ -46,9 +46,6 @@ class AlembicMigrationManager(object):
         alembic_cfg_path = os.path.join(root_dir, 'alembic.ini')
         self.alembic_cfg = Config(alembic_cfg_path)
         
-        # TODO: After 0.7.5 alembic has Config.attributes already made, once
-        #       we're able to update, please remove this hack!
-        self.alembic_cfg.attributes = {}
         self.alembic_cfg.attributes["session"] = self.session
         self.alembic_cfg.set_main_option("qlalchemy.url", str(self.engine.url))
 
index 259fd95a6a98a4afdb36082013efd2d9e131ea57..0c2fe731c8409d0919c53875067f66016a339eb2 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -49,7 +49,7 @@ if PY2:
 
 install_requires = [
     'waitress',
-    'alembic',
+    'alembic>=0.7.5',
     'python-dateutil',
     'wtforms',
     'py-bcrypt',