rpms/python-migrate/EL-5 python-migrate-disable-pytest.patch, NONE, 1.1 python-migrate.spec, NONE, 1.1

Toshio くらとみ (toshio) fedora-extras-commits at redhat.com
Wed Jul 30 04:40:12 UTC 2008


Author: toshio

Update of /cvs/pkgs/rpms/python-migrate/EL-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1557

Added Files:
	python-migrate-disable-pytest.patch python-migrate.spec 
Log Message:
Initial import... done in other branches but not EL-5 yet.


python-migrate-disable-pytest.patch:

--- NEW FILE python-migrate-disable-pytest.patch ---
Index: sqlalchemy-migrate-0.4.4/setup.py
===================================================================
--- sqlalchemy-migrate-0.4.4.orig/setup.py
+++ sqlalchemy-migrate-0.4.4/setup.py
@@ -20,7 +20,7 @@ Migrate extends SQLAlchemy to have datab
 """,
 
     install_requires = ['sqlalchemy >= 0.3.10'],
-    setup_requires = ['py >= 0.9.0-beta'],
+    setup_requires = [],
     dependency_links = [
         "http://codespeak.net/download/py/",
     ],


--- NEW FILE python-migrate.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

%define srcname sqlalchemy-migrate

Name: python-migrate
Version: 0.4.5
Release: 3%{?dist}
Summary: Schema migration tools for SQLAlchemy

Group: Development/Languages
License: MIT
URL: http://code.google.com/p/%{srcname}/
Source0: http://%{srcname}.googlecode.com/files/%{srcname}-%{version}.tar.gz
# Local patch to disable py.test.  Needed until py.test is in Fedora.
Patch0: python-migrate-disable-pytest.patch
# Patch sent upstream to generate a script for the repository upgrade script
Patch1: python-migrate-migrate_repository.patch
# Local patch to rename /usr/bin/migrate to sqlalchemy-migrate
Patch2: python-migrate-sqlalchemy-migrate.patch

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools-devel
Requires: python-sqlalchemy >= 0.3.10
Requires: python-setuptools

%description
Schema migration tools for SQLAlchemy designed to support an agile approach
to database design and make it easier to keep development and production
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}
%patch0 -p1 -b .pytest
%patch1 -p0 -b .repomigrate
%patch2 -p1 -b .rename

%build
%{__python} setup.py build

%install
%{__rm} -rf %{buildroot}
%{__python} setup.py install --skip-build --root %{buildroot}

%clean
%{__rm} -rf %{buildroot}

# Check needs py.test in order to run
#%check
#echo 'sqlite:///__tmp__' > test_db.cfg
# setuptools doesn't appear to be compatible with py.test
# %{__python} setup.py test
#%{__python} -c 'from py.test.cmdline import main; main(["test"])'

%files
%defattr(-,root,root,-)
%doc README CHANGELOG docs/
%{_bindir}/*
%{python_sitelib}/*

%changelog
* Tue Jul 29 2008 Toshio Kuratomi <toshio at fedoraproject.org> 0.4.5-3
- Patch to generate a script for the repository migrate script.
- Move the script rename into a patch to setup.py.

* Thu Jul 17 2008 Toshio Kuratomi <toshio at fedoraproject.org> 0.4.5-2
- Remove patches that are merged upstream.

* Thu Jul 17 2008 Toshio Kuratomi <toshio at fedoraproject.org> 0.4.5-1
- New upstream

* Thu Jul 17 2008 Toshio Kuratomi <toshio at fedoraproject.org> 0.4.4-4
- Disable py.test so we don't try to download it during build.

* Tue Jul 15 2008 Toshio Kuratomi <toshio at fedoraproject.org> 0.4.4-3
- Rename binary to sqlalchemy-migrate to avoid potential filename clashes.
  (Queried upstream but the change is only in Fedora).  Noted that
  openmosix defintely has a /usr/bin/migrate already.

* Sat Jul 06 2008 Ricky Zhou <ricky at fedoraproject.org> 0.4.4-2
- Add BuildRequires on python-setuptools-devel.
- Add Requires on SQLAlchemy.

* Sat Jun 21 2008 Toshio Kuratomi <toshio at fedoraproject.org> 0.4.4-1
- Initial Fedora Build.




More information about the fedora-extras-commits mailing list