From af6b89eafe4bce418737c66ad8ebef5aa297f378 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Wed, 2 Mar 2016 11:18:25 -0800 Subject: [PATCH] Remove old hack to support pre-0.7.5 Alembic versions Thanks to Jessica Tallon for pointing out this TODO and its associated hack could be removed. --- mediagoblin/db/migration_tools.py | 3 --- setup.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/mediagoblin/db/migration_tools.py b/mediagoblin/db/migration_tools.py index b3fb8f41..a28b3db0 100644 --- a/mediagoblin/db/migration_tools.py +++ b/mediagoblin/db/migration_tools.py @@ -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)) diff --git a/setup.py b/setup.py index 259fd95a..0c2fe731 100644 --- 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', -- 2.25.1