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.
This commit is contained in:
Christopher Allan Webber 2016-03-02 11:18:25 -08:00
parent 0c9c5cab62
commit af6b89eafe
2 changed files with 1 additions and 4 deletions

View 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))

View File

@ -49,7 +49,7 @@ if PY2:
install_requires = [
'waitress',
'alembic',
'alembic>=0.7.5',
'python-dateutil',
'wtforms',
'py-bcrypt',