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:
percious17 2008-12-01 21:22:07 +00:00
parent 166a3c230c
commit 0a3d46c290
3 changed files with 13 additions and 3 deletions

View File

@ -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

View File

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

View File

@ -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/",
],