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