diff options
| author | percious17 <unknown> | 2008-12-01 21:22:07 +0000 |
|---|---|---|
| committer | percious17 <unknown> | 2008-12-01 21:22:07 +0000 |
| commit | 0a3d46c290e3785c135f9a4f28a894476ef5b4de (patch) | |
| tree | 5cae2b97f92777c1a4f2bae94ca15e466fa51a44 | |
| parent | 166a3c230c087967446ad8e74a4bee45de2f5536 (diff) | |
| download | sqlalchemy-migrate-0a3d46c290e3785c135f9a4f28a894476ef5b4de.tar.gz | |
removed dependency on py.test
modified downgrade so that
migrate.py downgrade x works just like:
migrate.py downgrade --version=x
| -rw-r--r-- | CHANGELOG | 6 | ||||
| -rw-r--r-- | migrate/versioning/shell.py | 4 | ||||
| -rw-r--r-- | setup.py | 6 |
3 files changed, 13 insertions, 3 deletions
@@ -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 diff --git a/migrate/versioning/shell.py b/migrate/versioning/shell.py index aa52bec..96c0840 100644 --- a/migrate/versioning/shell.py +++ b/migrate/versioning/shell.py @@ -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) @@ -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/", ], |
