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