From 757c1e33880a7fed9397be0b389e0f649ed7385e818f8f635cbddff8f2ac6501 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Wed, 6 Jun 2012 12:15:20 +0000 Subject: [PATCH] - Update to version 0.3.4: + [bug] Fixed command-line bug introduced by the "revision_environment" feature. - Changes from version 0.3.3: + [feature] New config argument "revision_environment=true", causes env.py to be run unconditionally when the "revision" command is run, to support script.py.mako templates with dependencies on custom "template_args". + [feature] Added "template_args" option to configure() so that an env.py can add additional arguments to the template context when running the "revision" command. This requires either --autogenerate or the configuration directive "revision_environment=true". + [bug] Added "type" argument to op.drop_constraint(), and implemented full constraint drop support for MySQL. CHECK and undefined raise an error. MySQL needs the constraint type in order to emit a DROP CONSTRAINT. #44 + [feature] Added version_table argument to EnvironmentContext.configure(), allowing for the configuration of the version table name. #34 + [feature] Added support for "relative" migration identifiers, i.e. "alembic upgrade +2", "alembic downgrade -1". Courtesy Atsushi Odagiri for this feature. + [bug] Fixed bug whereby directories inside of the template directories, such as __pycache__ on Pypy, would mistakenly be interpreted as files which are part of the template. #49 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-alembic?expand=0&rev=4 --- alembic-0.3.2.tar.gz | 3 --- alembic-0.3.4.tar.gz | 3 +++ python-alembic.changes | 36 +++++++++++++++++++++++++++++++++++- python-alembic.spec | 11 ++++++----- 4 files changed, 44 insertions(+), 9 deletions(-) delete mode 100644 alembic-0.3.2.tar.gz create mode 100644 alembic-0.3.4.tar.gz diff --git a/alembic-0.3.2.tar.gz b/alembic-0.3.2.tar.gz deleted file mode 100644 index ad88c22..0000000 --- a/alembic-0.3.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:92c0cac8c873adb573bf2db75739f0eece5b470f919dafa1eb9f589443e284a2 -size 342287 diff --git a/alembic-0.3.4.tar.gz b/alembic-0.3.4.tar.gz new file mode 100644 index 0000000..8647e4d --- /dev/null +++ b/alembic-0.3.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1f44d48d329e9a1b1d6ab72303797edf653fc1145260ff12d6463308190fce6a +size 345492 diff --git a/python-alembic.changes b/python-alembic.changes index 1782a0b..e109485 100644 --- a/python-alembic.changes +++ b/python-alembic.changes @@ -1,7 +1,41 @@ +------------------------------------------------------------------- +Wed Jun 6 12:13:48 UTC 2012 - saschpe@suse.de + +- Update to version 0.3.4: + + [bug] Fixed command-line bug introduced by the + "revision_environment" feature. +- Changes from version 0.3.3: + + [feature] New config argument + "revision_environment=true", causes env.py to + be run unconditionally when the "revision" command + is run, to support script.py.mako templates with + dependencies on custom "template_args". + + [feature] Added "template_args" option to configure() + so that an env.py can add additional arguments + to the template context when running the + "revision" command. This requires either --autogenerate + or the configuration directive "revision_environment=true". + + [bug] Added "type" argument to op.drop_constraint(), + and implemented full constraint drop support for + MySQL. CHECK and undefined raise an error. + MySQL needs the constraint type + in order to emit a DROP CONSTRAINT. #44 + + [feature] Added version_table argument to + EnvironmentContext.configure(), allowing for the + configuration of the version table name. #34 + + [feature] Added support for "relative" migration + identifiers, i.e. "alembic upgrade +2", + "alembic downgrade -1". Courtesy + Atsushi Odagiri for this feature. + + [bug] Fixed bug whereby directories inside of + the template directories, such as __pycache__ + on Pypy, would mistakenly be interpreted as + files which are part of the template. #49 + ------------------------------------------------------------------- Wed May 23 12:55:05 UTC 2012 - saschpe@suse.de -- Update to version 0.3.2 +- Update to version 0.3.2: + [feature] Basic support for Oracle added + [feature] Added support for UniqueConstraint in autogenerate + [bug] Fixed support of schema-qualified ForeignKey target in column alter operations, diff --git a/python-alembic.spec b/python-alembic.spec index f6a5d61..1d8b4ef 100644 --- a/python-alembic.spec +++ b/python-alembic.spec @@ -11,12 +11,13 @@ # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# + # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: python-alembic -Version: 0.3.2 +Version: 0.3.4 Release: 0 Url: http://bitbucket.org/zzzeek/alembic Summary: A database migration tool for SQLAlchemy @@ -24,14 +25,14 @@ License: MIT Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/a/alembic/alembic-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python-Mako +BuildRequires: python-SQLAlchemy >= 0.7.5 BuildRequires: python-argparse BuildRequires: python-devel BuildRequires: python-distribute BuildRequires: python-nose -BuildRequires: python-Mako -BuildRequires: python-SQLAlchemy >= 0.7.5 -Requires: python-SQLAlchemy >= 0.7.5 Requires: python-Mako +Requires: python-SQLAlchemy >= 0.7.5 %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else