diff --git a/.cvsignore b/.cvsignore index efa7810..8c35737 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -sqlalchemy-migrate-0.5.1.dev-r479.tar.gz +sqlalchemy-migrate-0.5.1.2.tar.gz diff --git a/python-migrate-unittests.patch b/python-migrate-unittests.patch deleted file mode 100644 index 34a8fa3..0000000 --- a/python-migrate-unittests.patch +++ /dev/null @@ -1,21 +0,0 @@ -Index: test/versioning/test_shell.py -=================================================================== ---- test/versioning/test_shell.py (revision 479) -+++ test/versioning/test_shell.py (working copy) -@@ -1,6 +1,7 @@ - import sys - import traceback - from StringIO import StringIO -+from types import FileType - import os,shutil - from test import fixture - from migrate.versioning.repository import Repository -@@ -19,7 +20,7 @@ - def execute(self,shell_cmd,runshell=None): - """A crude simulation of a shell command, to speed things up""" - # If we get an fd, the command is already done -- if isinstance(shell_cmd,file) or isinstance(shell_cmd,StringIO): -+ if isinstance(shell_cmd, FileType) or isinstance(shell_cmd, StringIO): - return shell_cmd - # Analyze the command; see if we can 'fake' the shell - try: diff --git a/python-migrate.spec b/python-migrate.spec index cba6552..6bec7fd 100644 --- a/python-migrate.spec +++ b/python-migrate.spec @@ -3,26 +3,18 @@ %define srcname sqlalchemy-migrate Name: python-migrate -Version: 0.5.1 -Release: 0.1.20090122.svn479%{?dist} +Version: 0.5.1.2 +Release: 1%{?dist} Summary: Schema migration tools for SQLAlchemy Group: Development/Languages License: MIT URL: http://code.google.com/p/%{srcname}/ -# Build from a snapshot so we get this working with sqlalchemy-0.5 -# svn checkout http://sqlalchemy-migrate.googlecode.com/svn/trunk/ sqlalchemy-migrate -r479 -# cd sqlalchemy-migrate -# python setup.py sdist -# tarball is in dist/sqlalchemy-migrate-0.5.1.dev-r479.tar.gz -Source0: %{srcname}-%{version}.dev-r479.tar.gz -#Source0: http://%{srcname}.googlecode.com/files/%{srcname}-%{version}.tar.gz +Source0: http://%{srcname}.googlecode.com/files/%{srcname}-%{version}.tar.gz # Local patch to rename /usr/bin/migrate to sqlalchemy-migrate Patch0: python-migrate-sqlalchemy-migrate.patch -# Sent upstream to fix a unittest failure -Patch1: python-migrate-unittests.patch # Disable one unittest for now. In the future we want this to work -Patch2: python-migrate-disable-test_fk.patch +Patch1: python-migrate-disable-test_fk.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -41,11 +33,10 @@ databases in sync as schema changes are required. It allows you to manage atabase change sets and database repository versioning. %prep -%setup -q -n %{srcname}-%{version}.dev-r479 +%setup -q -n %{srcname}-%{version} %patch0 -p1 -b .rename -%patch1 -p0 -b .testing # Try removing this patch on every update -%patch2 -p1 -b .disable-test +%patch1 -p1 -b .disable-test %build %{__python} setup.py build @@ -68,6 +59,10 @@ echo 'sqlite:///__tmp__' > test_db.cfg %{python_sitelib}/* %changelog +* Wed Feb 11 2009 Toshio Kuratomi 0.5.1.2-1 +- Update to 0.5.1.2 release with official support for SA-0.5 +- Remove patches merged upstream + * Mon Jan 26 2009 Toshio Kuratomi 0.5.1-0.1.20090122.svn479 - Update to snapshot so that it works with sqlalchemy-0.5 - Enable test suite diff --git a/sources b/sources index d53144f..9bd3f22 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -bff7f5c013497fdc7c2f79e48b6a38ad sqlalchemy-migrate-0.5.1.dev-r479.tar.gz +547d692b1ab58186535a0e41aef4b378 sqlalchemy-migrate-0.5.1.2.tar.gz