aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2016-03-02 11:18:25 -0800
committerChristopher Allan Webber <cwebber@dustycloud.org>2016-03-02 11:20:47 -0800
commitaf6b89eafe4bce418737c66ad8ebef5aa297f378 (patch)
tree1f9b8238ef02f49539eb96651de1948aae6f9b43
parent0c9c5cab62f3983a80c3101c9484de005f0fb1aa (diff)
downloadmediagoblin-af6b89eafe4bce418737c66ad8ebef5aa297f378.tar.lz
mediagoblin-af6b89eafe4bce418737c66ad8ebef5aa297f378.tar.xz
mediagoblin-af6b89eafe4bce418737c66ad8ebef5aa297f378.zip
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.
-rw-r--r--mediagoblin/db/migration_tools.py3
-rw-r--r--setup.py2
2 files changed, 1 insertions, 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',