rdobuilder fea2fb
%global modname alembic
rdobuilder fea2fb
rdobuilder fea2fb
Name:             python-alembic
rdobuilder fea2fb
Version:          1.7.5
rdobuilder fea2fb
Release:          2%{?dist}
rdobuilder fea2fb
Summary:          Database migration tool for SQLAlchemy
rdobuilder fea2fb
rdobuilder fea2fb
License:          MIT
rdobuilder fea2fb
URL:              https://pypi.io/project/alembic
rdobuilder fea2fb
Source0:          %pypi_source alembic
rdobuilder fea2fb
rdobuilder fea2fb
# Alembic fails with Python 3.10.0b2 due to DeprecationWarnings treated as an error.
rdobuilder fea2fb
# Downstream report: https://bugzilla.redhat.com/show_bug.cgi?id=1958159
rdobuilder fea2fb
Patch1:           0001-filter-out-DeprecationWarnings.patch
rdobuilder fea2fb
rdobuilder fea2fb
BuildArch:        noarch
rdobuilder fea2fb
rdobuilder fea2fb
BuildRequires:    help2man
rdobuilder fea2fb
rdobuilder fea2fb
BuildRequires:    python3-devel
rdobuilder fea2fb
BuildRequires:    python3-sqlalchemy >= 1.1
rdobuilder fea2fb
BuildRequires:    python3-mako
rdobuilder fea2fb
BuildRequires:    python3-nose
rdobuilder fea2fb
BuildRequires:    python3-setuptools
rdobuilder fea2fb
BuildRequires:    python3-mock
rdobuilder fea2fb
BuildRequires:    python3-dateutil
rdobuilder fea2fb
BuildRequires:    python3-editor
rdobuilder fea2fb
BuildRequires:    python3-pytest
rdobuilder fea2fb
%if 0%{?rhel} == 8
rdobuilder fea2fb
BuildRequires:    python3-importlib-resources
rdobuilder fea2fb
%endif
rdobuilder fea2fb
rdobuilder fea2fb
rdobuilder fea2fb
%global _description\
rdobuilder fea2fb
Alembic is a new database migrations tool, written by the author of\
rdobuilder fea2fb
SQLAlchemy.  A migrations tool offers the following functionality:\
rdobuilder fea2fb
\
rdobuilder fea2fb
* Can emit ALTER statements to a database in order to change the structure\
rdobuilder fea2fb
  of tables and other constructs.\
rdobuilder fea2fb
* Provides a system whereby "migration scripts" may be constructed; each script\
rdobuilder fea2fb
  indicates a particular series of steps that can "upgrade" a target database\
rdobuilder fea2fb
  to a new version, and optionally a series of steps that can "downgrade"\
rdobuilder fea2fb
  similarly, doing the same steps in reverse.\
rdobuilder fea2fb
* Allows the scripts to execute in some sequential manner.\
rdobuilder fea2fb
\
rdobuilder fea2fb
Documentation and status of Alembic is at http://readthedocs.org/docs/alembic/
rdobuilder fea2fb
rdobuilder fea2fb
%description %_description
rdobuilder fea2fb
rdobuilder fea2fb
rdobuilder fea2fb
%package -n python3-alembic
rdobuilder fea2fb
Summary:          %summary
rdobuilder fea2fb
rdobuilder fea2fb
%if 0%{?rhel} == 8
rdobuilder fea2fb
Requires:         python3-importlib-resources
rdobuilder fea2fb
%endif
rdobuilder fea2fb
%{?python_provide:%python_provide python3-alembic}
rdobuilder fea2fb
rdobuilder fea2fb
rdobuilder fea2fb
%description -n python3-alembic %_description
rdobuilder fea2fb
rdobuilder fea2fb
%prep
rdobuilder fea2fb
%autosetup -p1 -n %{modname}-%{version}
rdobuilder fea2fb
rdobuilder fea2fb
rdobuilder fea2fb
%build
rdobuilder fea2fb
%py3_build
rdobuilder fea2fb
rdobuilder fea2fb
%{__mkdir_p} bin
rdobuilder fea2fb
echo 'python3 -c "import alembic.config; alembic.config.main()" $*' > bin/alembic
rdobuilder fea2fb
chmod 0755 bin/alembic
rdobuilder fea2fb
help2man --version-string %{version} --no-info -s 1 bin/alembic > alembic.1
rdobuilder fea2fb
rdobuilder fea2fb
rdobuilder fea2fb
%install
rdobuilder fea2fb
rdobuilder fea2fb
install -d -m 0755 %{buildroot}%{_mandir}/man1
rdobuilder fea2fb
rdobuilder fea2fb
%py3_install
rdobuilder fea2fb
mv %{buildroot}/%{_bindir}/%{modname} %{buildroot}/%{_bindir}/%{modname}-3
rdobuilder fea2fb
ln -s %{modname}-3 %{buildroot}/%{_bindir}/%{modname}-%{python3_version}
rdobuilder fea2fb
install -m 0644 alembic.1 %{buildroot}%{_mandir}/man1/alembic-3.1
rdobuilder fea2fb
ln -s alembic-3.1 %{buildroot}%{_mandir}/man1/alembic-%{python3_version}.1
rdobuilder fea2fb
rdobuilder fea2fb
ln -s %{modname}-%{python3_version} %{buildroot}/%{_bindir}/%{modname}
rdobuilder fea2fb
ln -s alembic-%{python3_version}.1 %{buildroot}%{_mandir}/man1/alembic.1
rdobuilder fea2fb
rdobuilder fea2fb
rdobuilder fea2fb
%check
rdobuilder fea2fb
py.test-3
rdobuilder fea2fb
rdobuilder fea2fb
rdobuilder fea2fb
%files -n python3-%{modname}
rdobuilder fea2fb
%doc LICENSE README.rst CHANGES docs
rdobuilder fea2fb
%{python3_sitelib}/%{modname}/
rdobuilder fea2fb
%{python3_sitelib}/%{modname}-%{version}-*
rdobuilder fea2fb
%{_bindir}/%{modname}
rdobuilder fea2fb
%{_mandir}/man1/alembic.1*
rdobuilder fea2fb
%{_bindir}/%{modname}-3
rdobuilder fea2fb
%{_bindir}/%{modname}-%{python3_version}
rdobuilder fea2fb
%{_mandir}/man1/alembic-3.1*
rdobuilder fea2fb
%{_mandir}/man1/alembic-%{python3_version}.1*
rdobuilder fea2fb
rdobuilder fea2fb
rdobuilder fea2fb
%changelog
rdobuilder fea2fb
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.5-2
rdobuilder fea2fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
rdobuilder fea2fb
rdobuilder fea2fb
* Sun Nov 28 2021 Kevin Fenzi <kevin@scrye.com> - 1.7.5-1
rdobuilder fea2fb
- Update to 1.7.5. Fixes rhbz#2022454
rdobuilder fea2fb
rdobuilder fea2fb
* Sat Nov 06 2021 Kevin Fenzi <kevin@scrye.com> - 1.7.4-1
rdobuilder fea2fb
- Update to 1.7.4. Fixes rhbz#2011425
rdobuilder fea2fb
rdobuilder fea2fb
* Sat Sep 25 2021 Kevin Fenzi <kevin@scrye.com> - 1.7.3-1
rdobuilder fea2fb
- Update to 1.7.3. Fixes rhbz#2005403
rdobuilder fea2fb
rdobuilder fea2fb
* Fri Sep 17 2021 Neal Gompa <ngompa@fedoraproject.org> - 1.7.1-3
rdobuilder fea2fb
- Drop redundant manually specified dependencies
rdobuilder fea2fb
rdobuilder fea2fb
* Thu Sep 16 2021 Joel Capitao <jcapitao@redhat.com> - 1.7.1-2
rdobuilder fea2fb
- Add the dist tag again
rdobuilder fea2fb
rdobuilder fea2fb
* Mon Sep 13 2021 Joel Capitao <jcapitao@redhat.com> - 1.7.1-1
rdobuilder fea2fb
- Update to 1.7.1. Fixes rhbz#1999176
rdobuilder fea2fb
rdobuilder fea2fb
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.5-2
rdobuilder fea2fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
rdobuilder fea2fb
rdobuilder fea2fb
* Sat Jun 12 2021 Kevin Fenzi <kevin@scrye.com> - 1.6.5-1
rdobuilder fea2fb
- Update to 1.6.5. Fixes rhbz#1964163
rdobuilder fea2fb
rdobuilder fea2fb
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.6.3-2
rdobuilder fea2fb
- Rebuilt for Python 3.10
rdobuilder fea2fb
rdobuilder fea2fb
* Sat May 22 2021 Kevin Fenzi <kevin@scrye.com> - 1.6.3-1
rdobuilder fea2fb
- Update to 1.6.3. Fixes rhbz#1957878
rdobuilder fea2fb
rdobuilder fea2fb
* Tue May 04 2021 Kevin Fenzi <kevin@scrye.com> - 1.6.0-1
rdobuilder fea2fb
- Update to 1.6.0. Fixes rhbz#1956482
rdobuilder fea2fb
rdobuilder fea2fb
* Sat Mar 27 2021 Kevin Fenzi <kevin@scrye.com> - 1.5.8-1
rdobuilder fea2fb
- Update to 1.5.8. Fixes rhbz#1935790
rdobuilder fea2fb
rdobuilder fea2fb
* Mon Feb 22 2021 Kevin Fenzi <kevin@scrye.com> - 1.5.5-1
rdobuilder fea2fb
- Update to 1.5.5. Fixes rhbz#1931142
rdobuilder fea2fb
rdobuilder fea2fb
* Fri Feb 12 2021 Kevin Fenzi <kevin@scrye.com> - 1.5.3-1
rdobuilder fea2fb
- Update to 1.5.3. Fixes rhbz#1922496
rdobuilder fea2fb
rdobuilder fea2fb
* Thu Jan 28 2021 Kevin Fenzi <kevin@scrye.com> - 1.5.0-1
rdobuilder fea2fb
- Update to 1.5.0. Fixes rhbz#1917596
rdobuilder fea2fb
rdobuilder fea2fb
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-2
rdobuilder fea2fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
rdobuilder fea2fb
rdobuilder fea2fb
* Thu Nov 19 2020 Joel Capitao <jcapitao@redhat.com> - 1.4.3-1
rdobuilder fea2fb
- Update to 1.4.3 (rhbz#1878203)
rdobuilder fea2fb
rdobuilder fea2fb
* Thu Aug 20 2020 Merlin Mathesius <mmathesi@redhat.com> - 1.4.2-5
rdobuilder fea2fb
- Correct macro usage to fix Rawhide and ELN FTBFS errors
rdobuilder fea2fb
rdobuilder fea2fb
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-4
rdobuilder fea2fb
- Second attempt - Rebuilt for
rdobuilder fea2fb
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
rdobuilder fea2fb
rdobuilder fea2fb
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-3
rdobuilder fea2fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
rdobuilder fea2fb
rdobuilder fea2fb
* Sun May 24 2020 Miro Hron훾ok <mhroncok@redhat.com> - 1.4.2-2
rdobuilder fea2fb
- Rebuilt for Python 3.9
rdobuilder fea2fb
rdobuilder fea2fb
* Sun Mar 22 2020 Carl George <carl@george.computer> - 1.4.2-1
rdobuilder fea2fb
- Latest upstream rhbz#1808866
rdobuilder fea2fb
rdobuilder fea2fb
* Wed Feb 19 2020 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.4.0-1
rdobuilder fea2fb
- Update to 1.4.0 (#1784129).
rdobuilder fea2fb
- https://alembic.sqlalchemy.org/en/latest/changelog.html#change-1.4.0
rdobuilder fea2fb
rdobuilder fea2fb
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
rdobuilder fea2fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
rdobuilder fea2fb
rdobuilder fea2fb
* Mon Nov 18 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.3.1-1
rdobuilder fea2fb
- Update to 1.3.1 (#1767518).
rdobuilder fea2fb
- https://alembic.sqlalchemy.org/en/latest/changelog.html#change-1.3.1
rdobuilder fea2fb
rdobuilder fea2fb
* Fri Sep 27 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.2.1-1
rdobuilder fea2fb
- Update to 1.2.1 (#1754016).
rdobuilder fea2fb
- https://alembic.sqlalchemy.org/en/latest/changelog.html#change-1.2.1
rdobuilder fea2fb
rdobuilder fea2fb
* Tue Sep 17 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.1.0-2
rdobuilder fea2fb
- Drop python2-alembic (#1751088).
rdobuilder fea2fb
rdobuilder fea2fb
* Tue Sep 03 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.1.0-1
rdobuilder fea2fb
- Upgrade to 1.1.0 (#1747053).
rdobuilder fea2fb
- https://alembic.sqlalchemy.org/en/latest/changelog.html#change-1.1.0
rdobuilder fea2fb
rdobuilder fea2fb
* Sun Aug 18 2019 Miro Hron훾ok <mhroncok@redhat.com> - 1.0.11-3
rdobuilder fea2fb
- Rebuilt for Python 3.8
rdobuilder fea2fb
rdobuilder fea2fb
* Mon Jul 22 2019 Petr Viktorin <pviktori@redhat.com> - 1.0.11-2
rdobuilder fea2fb
- Make /usr/bin/alembic point to alembic-3 on Fedora 31+
rdobuilder fea2fb
  See https://fedoraproject.org/wiki/Changes/Python_means_Python3
rdobuilder fea2fb
- Avoid absolute symlinks
rdobuilder fea2fb
- Conditionalize the Python 2/Python 3 parts with bcond
rdobuilder fea2fb
rdobuilder fea2fb
* Sun Jun 30 2019 Kevin Fenzi <kevin@scrye.com> - 1.0.11-1
rdobuilder fea2fb
- Update to 1.0.11. Fixes bug #1723981
rdobuilder fea2fb
rdobuilder fea2fb
* Wed Jun 19 2019 Troy Dawson <tdawson@redhat.com> - 1.0.10-1.1
rdobuilder fea2fb
- Make python2 optional
rdobuilder fea2fb
- Do not build python2 on RHEL8
rdobuilder fea2fb
rdobuilder fea2fb
* Wed Jun 05 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.0.10-1
rdobuilder fea2fb
- Update to 1.0.10 (#1700050).
rdobuilder fea2fb
- https://alembic.sqlalchemy.org/en/latest/changelog.html#change-1.0.10
rdobuilder fea2fb
rdobuilder fea2fb
* Thu Mar 28 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.0.8-1
rdobuilder fea2fb
- Update to 1.0.8 (#1685262).
rdobuilder fea2fb
- https://alembic.sqlalchemy.org/en/latest/changelog.html#change-1.0.8
rdobuilder fea2fb
rdobuilder fea2fb
* Tue Feb 05 2019 Alfredo Moralejo <amoralej@redhat.com> - 1.0.7-1
rdobuilder fea2fb
- Update to 1.0.7
rdobuilder fea2fb
rdobuilder fea2fb
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
rdobuilder fea2fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
rdobuilder fea2fb
rdobuilder fea2fb
* Wed Jul 25 2018 Pierre-Yves Chibon <pingou@pingoured.fr> - 1.0.0-1
rdobuilder fea2fb
- Update to 1.0.0
rdobuilder fea2fb
rdobuilder fea2fb
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.7-7
rdobuilder fea2fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
rdobuilder fea2fb
rdobuilder fea2fb
* Tue Jun 19 2018 Miro Hron훾ok <mhroncok@redhat.com> - 0.9.7-6
rdobuilder fea2fb
- Rebuilt for Python 3.7
rdobuilder fea2fb
rdobuilder fea2fb
* Sun Jun 17 2018 Miro Hron훾ok <mhroncok@redhat.com> - 0.9.7-5
rdobuilder fea2fb
- Rebuilt for Python 3.7
rdobuilder fea2fb
rdobuilder fea2fb
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.9.7-4
rdobuilder fea2fb
- Update Python 2 dependency declarations to new packaging standards
rdobuilder fea2fb
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
rdobuilder fea2fb
rdobuilder fea2fb
* Thu Feb 08 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 0.9.7-3
rdobuilder fea2fb
- The python3-alembic package now provides only alembic-3 and alembic-3.y.
rdobuilder fea2fb
- The python2-alembic package now provides alembic, alembic-2, and alembic-2.y.
rdobuilder fea2fb
rdobuilder fea2fb
* Sat Jan 27 2018 Ralph Bean <rbean@redhat.com> - 0.9.7-2
rdobuilder fea2fb
- The python3-alembic package now provides the alembic executable.
rdobuilder fea2fb
rdobuilder fea2fb
* Thu Jan 18 2018 Ralph Bean <rbean@redhat.com> - 0.9.7-1
rdobuilder fea2fb
- new version
rdobuilder fea2fb
- New dependency on python-dateutil.