1
0
Fork 0

provide compatibility with sqlalchemy 0.4

* fix sqlalchemy imports (fixes #6)
 * set runtime dependencies to sqlalchemy >= 0.4 and
   sqlalchemy-migrate >= 0.4


git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/trunk@245 a67ec6bc-e5d5-0310-a910-815c51eb3124
This commit is contained in:
Jan Dittberner 2008-03-06 19:09:59 +00:00
parent fbe448ca62
commit 639b58df6e
3 changed files with 6 additions and 5 deletions

View file

@ -19,7 +19,7 @@
# #
# Version: $Id$ # Version: $Id$
from sqlalchemy import object_mapper from sqlalchemy.orm import object_mapper
from tables import * from tables import *

View file

@ -20,6 +20,7 @@
# Version: $Id$ # Version: $Id$
from sqlalchemy import * from sqlalchemy import *
from sqlalchemy.exceptions import NoSuchTableError
import sys import sys
import migrate.versioning.api import migrate.versioning.api
from settings import * from settings import *
@ -37,7 +38,7 @@ to fix this.""" %
(dbversion, required_version, config.get('database', 'uri'), (dbversion, required_version, config.get('database', 'uri'),
config.get('database', 'repository'))) config.get('database', 'repository')))
sys.exit(1) sys.exit(1)
except exceptions.NoSuchTableError, nste: except NoSuchTableError, nste:
print nste print nste
sys.exit(1) sys.exit(1)

View file

@ -1,5 +1,5 @@
# -*- python -*- # -*- python -*-
# -*- coding: UTF-8 -*- # -*- coding: utf-8 -*-
# #
# Copyright (C) 2007 by Jan Dittberner. # Copyright (C) 2007 by Jan Dittberner.
# #
@ -28,8 +28,8 @@ setup(
packages = find_packages(), packages = find_packages(),
scripts = ['bin/gva'], scripts = ['bin/gva'],
install_requires = ['sqlalchemy >= 0.3.10', install_requires = ['sqlalchemy >= 0.4',
'migrate >= 0.3' ], 'sqlalchemy-migrate >= 0.4' ],
setup_requires = [], setup_requires = [],
include_package_data = True, include_package_data = True,