757b8b
%global srcname sqlalchemy-migrate
66719f
632279
Name: python-migrate
23febf
Version: 0.13.0
23febf
Release: 1%{?dist}
632279
Summary: Schema migration tools for SQLAlchemy
632279
632279
License: MIT
66719f
URL: https://github.com/openstack/%{srcname}
1ee24e
Source0: https://pypi.io/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz
34c497
# Local patch to rename /usr/bin/migrate to sqlalchemy-migrate
731cb6
Patch100: python-migrate-sqlalchemy-migrate.patch
632279
632279
BuildArch: noarch
c76b47
c76b47
%global _description\
c76b47
Schema migration tools for SQLAlchemy designed to support an agile approach\
c76b47
to database design and make it easier to keep development and production\
c76b47
databases in sync as schema changes are required.  It allows you to manage\
c76b47
database change sets and database repository versioning.
c76b47
c76b47
%description %_description
c76b47
66719f
%package -n     python3-migrate
66719f
Summary: Schema migration tools for SQLAlchemy
66719f
66719f
BuildRequires: python3-devel
185b82
BuildRequires: python3-sqlalchemy >= 0.9.6
66719f
BuildRequires: python3-setuptools
66719f
BuildRequires: python3-nose
66719f
BuildRequires: python3-sphinx
66719f
BuildRequires: python3-decorator
66719f
BuildRequires: python3-tempita >= 0.4
66719f
BuildRequires: python3-pbr >= 1.3.0
66719f
BuildRequires: python3-six >= 1.9.0
66719f
BuildRequires: python3-sqlparse
66719f
185b82
Requires: python3-sqlalchemy >= 0.9.6
6ec72a
Requires: python3-setuptools
6ec72a
Requires: python3-decorator
6ec72a
Requires: python3-tempita >= 0.4
6ec72a
Requires: python3-pbr >= 1.3.0
6ec72a
Requires: python3-six >= 1.9.0
6ec72a
Requires: python3-sqlparse
6ec72a
66719f
%description -n python3-migrate
66719f
Schema migration tools for SQLAlchemy designed to support an agile approach
66719f
to database design and make it easier to keep development and production
66719f
databases in sync as schema changes are required.  It allows you to manage
66719f
database change sets and database repository versioning.
66719f
632279
%prep
a4c8ee
%setup -q -n %{srcname}-%{version}
edccf8
%patch100 -p1 -b .rename
bfd9e8
bfd9e8
# use real unittest in python 2.7 and up
d1ce8b
%if 0%{?fedora} || 0%{?rhel} > 6
bfd9e8
sed -i "s/import unittest2/import unittest as unittest2/g" \
bfd9e8
    migrate/tests/fixture/__init__.py \
bfd9e8
    migrate/tests/fixture/base.py
d1ce8b
%endif
632279
632279
%build
66719f
%py3_build
632279
632279
%install
66719f
%py3_install
632279
001c0c
%check
5613a6
# Need to set PATH for two reasons:
5613a6
# 1) Path isn't being cleared by mock so we have /root/bin/ in the PATH
5613a6
# 2) Need to be able to find the newly installed migrate binaries
5613a6
PATH=/bin:/usr/bin:%{buildroot}%{_bindir}
5613a6
export PATH
5613a6
5613a6
PYTHONPATH=`pwd`
5613a6
export PYTHONPATH
001c0c
echo 'sqlite:///__tmp__' > test_db.cfg
89a3d8
89a3d8
# Disable temporarily until tests are adjusted to support testtools >= 0.9.36
89f260
#nosetests-3
632279
89f260
%files -n python3-migrate
ea6012
%doc README.rst doc/
66719f
%{_bindir}/sqlalchemy-migrate
66719f
%{_bindir}/sqlalchemy-migrate-repository
66719f
%{python3_sitelib}/*
632279
632279
%changelog
23febf
* Tue Nov 19 2019 Orion Poplawski <orion@nwra.com> - 0.13.0-1
23febf
- Update to 0.13.0
23febf
592280
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.12.0-5
592280
- Rebuilt for Python 3.8.0rc1 (#1748018)
592280
5634ae
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.12.0-4
5634ae
- Rebuilt for Python 3.8
5634ae
b7bcf0
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-3
b7bcf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b7bcf0
a9abeb
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-2
a9abeb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a9abeb
185b82
* Tue Jan 29 2019 Alfredo Moralejo <amoralej@redhat.com> - 0.12.0-1
185b82
- Update to 0.12.0.
185b82
89f260
* Fri Jan 04 2019 Miro Hrončok <mhroncok@redhat.com> - 0.11.0-10
89f260
- Subpackage python2-migrate has been removed
89f260
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
89f260
33d895
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-9
33d895
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
33d895
0ff441
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.11.0-8
0ff441
- Rebuilt for Python 3.7
0ff441
6ec72a
* Mon May 14 2018 Yatin Karel <ykarel@redhat.com> - 0.11.0-7
6ec72a
- Add python3 Requires
6ec72a
f11336
* Sat Mar 17 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.11.0-6
f11336
- Update Python 2 dependency declarations to new packaging standards
f11336
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
f11336
Neal Gompa 111fb0
* Fri Feb 09 2018 Neal Gompa <ngompa@datto.com> - 0.11.0-5
Neal Gompa 111fb0
- Add missing pbr dependency for Python 2 subpackage
Neal Gompa 111fb0
24efc8
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-4
24efc8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
24efc8
c76b47
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.11.0-3
c76b47
- Python 2 binary package renamed to python2-migrate
c76b47
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
c76b47
a67036
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-2
a67036
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a67036
1ee24e
* Fri Apr  7 2017 Haïkel Guémar <hguemar@fedoraproject.org> - 0.11.0-1
1ee24e
- Upstream 0.11.0 (required due to pbr bump)
1ee24e
a215cb
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-5
a215cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a215cb
0fdde9
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.10.0-4
0fdde9
- Rebuild for Python 3.6
0fdde9
8d75fa
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-3
8d75fa
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
8d75fa
4358ea
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-2
4358ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4358ea
66719f
* Fri Dec 18 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 0.10.0-1
66719f
- Upstream 0.10.0
66719f
- Add python3 subpackage
66719f
ac1aca
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-2
ac1aca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ac1aca
7d3427
* Wed Apr 01 2015 Pádraig Brady <pbrady@redhat.com> - 0.9.6.1
7d3427
- Latest upstream
7d3427
Alan Pevec bdf2fb
* Tue Mar 31 2015 Pádraig Brady <pbrady@redhat.com> - 0.9.5-1
Alan Pevec bdf2fb
- Latest upstream
Alan Pevec bdf2fb
3766fc
* Tue Feb 10 2015 Pádraig Brady <pbrady@redhat.com> - 0.9.4-1
3766fc
- Latest upstream
3766fc
89a3d8
* Wed Nov 19 2014 Pádraig Brady <pbrady@redhat.com> - 0.9.2-2
89a3d8
- build: remove cap on testtools for the moment
89a3d8
e92f2a
* Thu Sep 18 2014 Pádraig Brady <pbrady@redhat.com> - 0.9.2-1
e92f2a
- Latest upstream
e92f2a
a8e437
* Fri Jun 13 2014 Pádraig Brady <pbrady@redhat.com> - 0.9.1-1
a8e437
- Latest upstream
a8e437
536ff3
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
536ff3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
536ff3
e93948
* Sat Mar 08 2014 Pádraig Brady <pbrady@redhat.com> - 0.9-1
e93948
- Latest upstream
e93948
4cb187
* Tue Mar 04 2014 Pádraig Brady <pbrady@redhat.com> - 0.8.5.1
4cb187
- Latest upstream
4cb187
ea6012
* Mon Dec 16 2013 Pádraig Brady <pbrady@redhat.com> - 0.8.2-1
ea6012
- Latest upstream
ea6012
3062cc
* Mon Sep 23 2013 Pádraig Brady <pbrady@redhat.com> - 0.7.2-9
3062cc
- improve sqlalchemy 0.8 compatibility
3062cc
f3f3a1
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-8
f3f3a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f3f3a1
603ed1
* Mon Mar 11 2013 Pádraig Brady <P@draigBrady.com> - 0.7.2-7
603ed1
- Add compatability for sqlalchemy >= 0.8
603ed1
267341
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-6
267341
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
267341
aefd67
* Thu Dec 20 2012 Pádraig Brady <P@draigBrady.com> - 0.7.2-5
aefd67
- Fix build on RHEL 7
aefd67
61f338
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-4
61f338
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
61f338
8016a4
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-3
8016a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8016a4
d1ce8b
* Wed Nov 16 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.7.2-2
d1ce8b
- Require python-tempita
d1ce8b
edccf8
* Tue Nov 08 2011 Martin Bacovsky <mbacovsk@redhat.com> - 0.7.2-1
edccf8
- Updated to new version
edccf8
2edd58
* Sat Jun 25 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.7-1
2edd58
- Update to new version compatible with SQLAlchemy 0.7.x.
2edd58
a16524
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-4
a16524
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a16524
e3d184
* Thu Jan 13 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6-3
e3d184
- Fix SQLAlchemy Requires -- need >= 0.5, not 0.6
2edd58
5613a6
* Sun Aug 1 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6-2
5613a6
- Update to unittests to work with newer scripttest API
5613a6
bfd9e8
* Sat Jul 31 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.6-1
bfd9e8
- update to new version
bfd9e8
- testsuite doesn't work right now
bfd9e8
1fe884
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.5.4-2
1fe884
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
1fe884
757b8b
* Tue Apr 20 2010 Martin Bacovsky <mbacovsk@redhat.com> - 0.5.4-1
757b8b
- Update to new bugfix release 
757b8b
d44711
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-3
d44711
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d44711
526a10
* Mon Jun 01 2009 Luke Macken <lmacken@redhat.com> 0.5.3-2
526a10
- Add python-migrate-py2.4-import.patch, which makes the use
526a10
  of __import__ work on Python 2.4
526a10
- Add python-sqlite2 to the build requirements on FC6 and below
526a10
e84bee
* Thu Apr 16 2009 Toshio Kuratomi <toshio@fedoraproject.org> 0.5.3-1
e84bee
- Update to new bugfix release.
e84bee
780502
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1.2-3
780502
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
780502
136962
* Wed Feb 11 2009 Toshio Kuratomi <toshio@fedoraproject.org> 0.5.1.2-2
136962
- Add BR on python-sphinx
136962
a4c8ee
* Wed Feb 11 2009 Toshio Kuratomi <toshio@fedoraproject.org> 0.5.1.2-1
a4c8ee
- Update to 0.5.1.2 release with official support for SA-0.5
a4c8ee
- Remove patches merged upstream
a4c8ee
001c0c
* Mon Jan 26 2009 Toshio Kuratomi <toshio@fedoraproject.org> 0.5.1-0.1.20090122.svn479
001c0c
- Update to snapshot so that it works with sqlalchemy-0.5
001c0c
- Enable test suite
001c0c
447805
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.4.5-4
447805
- Rebuild for Python 2.6
447805
34c497
* Tue Jul 29 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.4.5-3
34c497
- Patch to generate a script for the repository migrate script.
34c497
- Move the script rename into a patch to setup.py.
34c497
e0589b
* Thu Jul 17 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.4.5-2
e0589b
- Remove patches that are merged upstream.
e0589b
eb45d1
* Thu Jul 17 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.4.5-1
eb45d1
- New upstream
eb45d1
964a52
* Thu Jul 17 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.4.4-4
964a52
- Disable py.test so we don't try to download it during build.
964a52
632279
* Tue Jul 15 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.4.4-3
632279
- Rename binary to sqlalchemy-migrate to avoid potential filename clashes.
632279
  (Queried upstream but the change is only in Fedora).  Noted that
632279
  openmosix defintely has a /usr/bin/migrate already.
632279
89a3d8
* Sun Jul 06 2008 Ricky Zhou <ricky@fedoraproject.org> 0.4.4-2
632279
- Add BuildRequires on python-setuptools-devel.
632279
- Add Requires on SQLAlchemy.
632279
632279
* Sat Jun 21 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.4.4-1
632279
- Initial Fedora Build.