From 0a3d46c290e3785c135f9a4f28a894476ef5b4de Mon Sep 17 00:00:00 2001 From: percious17 Date: Mon, 1 Dec 2008 21:22:07 +0000 Subject: [PATCH] removed dependency on py.test modified downgrade so that migrate.py downgrade x works just like: migrate.py downgrade --version=x --- CHANGELOG | 6 ++++++ migrate/versioning/shell.py | 4 ++++ setup.py | 6 +++--- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 9c39d6b..7a55eeb 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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) diff --git a/setup.py b/setup.py index a69a02d..876ecc9 100644 --- a/setup.py +++ b/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/", ],