%global srcname sqlalchemy-migrate Name: python-migrate Version: 0.13.0 Release: 19%{?dist} Summary: Schema migration tools for SQLAlchemy License: MIT URL: https://github.com/openstack/%{srcname} Source0: https://pypi.io/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz # Local patch to rename /usr/bin/migrate to sqlalchemy-migrate Patch100: python-migrate-sqlalchemy-migrate.patch BuildArch: noarch %global _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\ database change sets and database repository versioning. %description %_description %package -n python3-migrate Summary: Schema migration tools for SQLAlchemy BuildRequires: python3-devel BuildRequires: python3-sqlalchemy >= 0.9.6 BuildRequires: python3-sqlalchemy < 2 BuildRequires: python3-setuptools BuildRequires: python3-nose BuildRequires: python3-sphinx BuildRequires: python3-decorator BuildRequires: python3-tempita >= 0.4 BuildRequires: python3-pbr >= 1.3.0 BuildRequires: python3-six >= 1.9.0 BuildRequires: python3-sqlparse Requires: python3-sqlalchemy >= 0.9.6 Requires: python3-sqlalchemy < 2 Requires: python3-setuptools Requires: python3-decorator Requires: python3-tempita >= 0.4 Requires: python3-pbr >= 1.3.0 Requires: python3-six >= 1.9.0 Requires: python3-sqlparse %description -n python3-migrate 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 database change sets and database repository versioning. %prep %setup -q -n %{srcname}-%{version} %patch -P100 -p1 -b .rename # use real unittest in python 2.7 and up %if 0%{?fedora} || 0%{?rhel} > 6 sed -i "s/import unittest2/import unittest as unittest2/g" \ migrate/tests/fixture/__init__.py \ migrate/tests/fixture/base.py %endif # Utilize a valid version identifier for test-requirements.txt # for setuptools 66+ sed -i 's/2010h/2010/' test-requirements.txt %build %py3_build %install %py3_install %check # Need to set PATH for two reasons: # 1) Path isn't being cleared by mock so we have /root/bin/ in the PATH # 2) Need to be able to find the newly installed migrate binaries PATH=/bin:/usr/bin:%{buildroot}%{_bindir} export PATH PYTHONPATH=`pwd` export PYTHONPATH echo 'sqlite:///__tmp__' > test_db.cfg # Disable temporarily until tests are adjusted to support testtools >= 0.9.36 #nosetests-3 %files -n python3-migrate %doc README.rst doc/ %{_bindir}/sqlalchemy-migrate %{_bindir}/sqlalchemy-migrate-repository %{python3_sitelib}/* %changelog * Fri Jul 19 2024 Fedora Release Engineering - 0.13.0-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jun 19 2024 Python Maint - 0.13.0-18 - Rebuilt for Python 3.13 * Mon Mar 25 2024 Nils Philippsen - 0.13.0-17 - Require SQLAlchemy < 2 * Fri Jan 26 2024 Fedora Release Engineering - 0.13.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.13.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.13.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Jul 03 2023 Python Maint - 0.13.0-13 - Rebuilt for Python 3.12 * Thu Apr 06 2023 Charalampos Stratakis - 0.13.0-12 - Utilize a valid version scheme for test requirements to fix FTBFS with setuptools >= 66.0.0 * Fri Jan 20 2023 Fedora Release Engineering - 0.13.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.13.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 0.13.0-9 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.13.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.13.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.13.0-6 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.13.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.13.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.13.0-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.13.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Nov 19 2019 Orion Poplawski - 0.13.0-1 - Update to 0.13.0 * Thu Oct 03 2019 Miro Hrončok - 0.12.0-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.12.0-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.12.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.12.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Jan 29 2019 Alfredo Moralejo - 0.12.0-1 - Update to 0.12.0. * Fri Jan 04 2019 Miro Hrončok - 0.11.0-10 - Subpackage python2-migrate has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Jul 14 2018 Fedora Release Engineering - 0.11.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.11.0-8 - Rebuilt for Python 3.7 * Mon May 14 2018 Yatin Karel - 0.11.0-7 - Add python3 Requires * Sat Mar 17 2018 Iryna Shcherbina - 0.11.0-6 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Neal Gompa - 0.11.0-5 - Add missing pbr dependency for Python 2 subpackage * Fri Feb 09 2018 Fedora Release Engineering - 0.11.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 0.11.0-3 - Python 2 binary package renamed to python2-migrate See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Thu Jul 27 2017 Fedora Release Engineering - 0.11.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Apr 7 2017 Haïkel Guémar - 0.11.0-1 - Upstream 0.11.0 (required due to pbr bump) * Sat Feb 11 2017 Fedora Release Engineering - 0.10.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.10.0-4 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 0.10.0-3 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 0.10.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Dec 18 2015 Haïkel Guémar - 0.10.0-1 - Upstream 0.10.0 - Add python3 subpackage * Thu Jun 18 2015 Fedora Release Engineering - 0.9.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Apr 01 2015 Pádraig Brady - 0.9.6.1 - Latest upstream * Tue Mar 31 2015 Pádraig Brady - 0.9.5-1 - Latest upstream * Tue Feb 10 2015 Pádraig Brady - 0.9.4-1 - Latest upstream * Wed Nov 19 2014 Pádraig Brady - 0.9.2-2 - build: remove cap on testtools for the moment * Thu Sep 18 2014 Pádraig Brady - 0.9.2-1 - Latest upstream * Fri Jun 13 2014 Pádraig Brady - 0.9.1-1 - Latest upstream * Sat Jun 07 2014 Fedora Release Engineering - 0.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Mar 08 2014 Pádraig Brady - 0.9-1 - Latest upstream * Tue Mar 04 2014 Pádraig Brady - 0.8.5.1 - Latest upstream * Mon Dec 16 2013 Pádraig Brady - 0.8.2-1 - Latest upstream * Mon Sep 23 2013 Pádraig Brady - 0.7.2-9 - improve sqlalchemy 0.8 compatibility * Sun Aug 04 2013 Fedora Release Engineering - 0.7.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Mar 11 2013 Pádraig Brady - 0.7.2-7 - Add compatability for sqlalchemy >= 0.8 * Thu Feb 14 2013 Fedora Release Engineering - 0.7.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Dec 20 2012 Pádraig Brady - 0.7.2-5 - Fix build on RHEL 7 * Sat Jul 21 2012 Fedora Release Engineering - 0.7.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 0.7.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Nov 16 2011 Toshio Kuratomi - 0.7.2-2 - Require python-tempita * Tue Nov 08 2011 Martin Bacovsky - 0.7.2-1 - Updated to new version * Sat Jun 25 2011 Toshio Kuratomi - 0.7-1 - Update to new version compatible with SQLAlchemy 0.7.x. * Tue Feb 08 2011 Fedora Release Engineering - 0.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Jan 13 2011 Toshio Kuratomi - 0.6-3 - Fix SQLAlchemy Requires -- need >= 0.5, not 0.6 * Sun Aug 1 2010 Toshio Kuratomi - 0.6-2 - Update to unittests to work with newer scripttest API * Sat Jul 31 2010 Thomas Spura - 0.6-1 - update to new version - testsuite doesn't work right now * Thu Jul 22 2010 David Malcolm - 0.5.4-2 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Tue Apr 20 2010 Martin Bacovsky - 0.5.4-1 - Update to new bugfix release * Sun Jul 26 2009 Fedora Release Engineering - 0.5.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Jun 01 2009 Luke Macken 0.5.3-2 - Add python-migrate-py2.4-import.patch, which makes the use of __import__ work on Python 2.4 - Add python-sqlite2 to the build requirements on FC6 and below * Thu Apr 16 2009 Toshio Kuratomi 0.5.3-1 - Update to new bugfix release. * Thu Feb 26 2009 Fedora Release Engineering - 0.5.1.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Feb 11 2009 Toshio Kuratomi 0.5.1.2-2 - Add BR on python-sphinx * 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 * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.4.5-4 - Rebuild for Python 2.6 * Tue Jul 29 2008 Toshio Kuratomi 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 0.4.5-2 - Remove patches that are merged upstream. * Thu Jul 17 2008 Toshio Kuratomi 0.4.5-1 - New upstream * Thu Jul 17 2008 Toshio Kuratomi 0.4.4-4 - Disable py.test so we don't try to download it during build. * Tue Jul 15 2008 Toshio Kuratomi 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. * Sun Jul 06 2008 Ricky Zhou 0.4.4-2 - Add BuildRequires on python-setuptools-devel. - Add Requires on SQLAlchemy. * Sat Jun 21 2008 Toshio Kuratomi 0.4.4-1 - Initial Fedora Build.