removed dependency on py.test
modified downgrade so that migrate.py downgrade x works just like: migrate.py downgrade --version=x
This commit is contained in:
parent
166a3c230c
commit
0a3d46c290
@ -1,3 +1,9 @@
|
||||
0.5.0
|
||||
- SA 0.5.x support.
|
||||
- TODO:py.test is no longer used for testing. (use nose)
|
||||
- Better Postgres support, especially for schemas.
|
||||
- modification to the downgrade command to simplify the calling (old way still works just fine)
|
||||
|
||||
0.4.x
|
||||
- TODO: document changes
|
||||
|
||||
|
@ -89,6 +89,10 @@ def parse_args(*args,**kwargs):
|
||||
args=list(args)
|
||||
try:
|
||||
cmdname = args.pop(0)
|
||||
if cmdname == 'downgrade':
|
||||
if not args[0].startswith('--'):
|
||||
kwargs['version'] = args.pop(0)
|
||||
|
||||
except IndexError:
|
||||
# No command specified: no error message; just show usage
|
||||
raise ShellUsageError(None)
|
||||
|
6
setup.py
6
setup.py
@ -9,7 +9,7 @@ except ImportError:
|
||||
|
||||
setup(
|
||||
name = "sqlalchemy-migrate",
|
||||
version = "0.4.6",
|
||||
version = "0.5",
|
||||
packages = find_packages(exclude=['test*']),
|
||||
include_package_data = True,
|
||||
description = "Database schema migration for SQLAlchemy",
|
||||
@ -19,8 +19,8 @@ Inspired by Ruby on Rails' migrations, Migrate provides a way to deal with datab
|
||||
Migrate extends SQLAlchemy to have database changeset handling. It provides a database change repository mechanism which can be used from the command line as well as from inside python code.
|
||||
""",
|
||||
|
||||
install_requires = ['sqlalchemy >= 0.3.10'],
|
||||
setup_requires = ['py >= 0.9.0-beta'],
|
||||
install_requires = ['sqlalchemy >= 0.4'],
|
||||
setup_requires = [],
|
||||
dependency_links = [
|
||||
"http://codespeak.net/download/py/",
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user