Compare commits

...

No commits in common. 'c9' and 'i10c-beta' have entirely different histories.

2
.gitignore vendored

@ -1 +1 @@
SOURCES/alembic-1.7.5.tar.gz
SOURCES/alembic-1.13.1.tar.gz

@ -1 +1 @@
a105945f1e3181fc3b29ca1e302442646e9339ab SOURCES/alembic-1.7.5.tar.gz
a03d392cd537d36530de9b31997e55fd324b3986 SOURCES/alembic-1.13.1.tar.gz

@ -1,31 +0,0 @@
From 1a4a106bf202fbd90371087260af2bbc0ef097c3 Mon Sep 17 00:00:00 2001
From: Tomas Hrnciar <thrnciar@redhat.com>
Date: Thu, 3 Jun 2021 15:20:04 +0200
Subject: [PATCH] filter out DeprecationWarnings
---
alembic/testing/warnings.py | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/alembic/testing/warnings.py b/alembic/testing/warnings.py
index d809dfe..ae8bcec 100644
--- a/alembic/testing/warnings.py
+++ b/alembic/testing/warnings.py
@@ -30,3 +30,14 @@ def setup_filters():
warnings.filterwarnings(
"once", category=pytest.PytestDeprecationWarning
)
+ warnings.filterwarnings(
+ "ignore",
+ category=DeprecationWarning,
+ message="SelectableGroups dict interface is deprecated. Use select.",
+ )
+ warnings.filterwarnings(
+ "ignore",
+ category=DeprecationWarning,
+ message="The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives",
+ )
+
--
2.31.1

@ -1,46 +1,46 @@
%global modname alembic
## START: Set by rpmautospec
## (rpmautospec version 0.6.5)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 6;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec
Name: python-alembic
Version: 1.7.5
Release: 3%{?dist}
Version: 1.13.1
Release: %autorelease
Summary: Database migration tool for SQLAlchemy
# SPDX
License: MIT
URL: https://pypi.io/project/alembic
Source0: %pypi_source alembic
# Alembic fails with Python 3.10.0b2 due to DeprecationWarnings treated as an error.
# Downstream report: https://bugzilla.redhat.com/show_bug.cgi?id=1958159
Patch1: 0001-filter-out-DeprecationWarnings.patch
Source0: %{pypi_source alembic}
BuildArch: noarch
BuildRequires: help2man
BuildRequires: python3-devel
BuildRequires: python3-sqlalchemy >= 1.1
BuildRequires: python3-mako
BuildRequires: python3-setuptools
BuildRequires: python3-dateutil
BuildRequires: python3-pytest
%if 0%{?rhel} == 8
BuildRequires: python3-importlib-resources
%if %{undefined rhel}
BuildRequires: python3-pytest-xdist
%endif
%global _description %{expand:
Alembic is a database migrations tool written by the author of SQLAlchemy. A
migrations tool offers the following functionality:
• Can emit ALTER statements to a database in order to change the structure of
tables and other constructs
• Provides a system whereby "migration scripts" may be constructed; each script
indicates a particular series of steps that can "upgrade" a target database
to a new version, and optionally a series of steps that can "downgrade"
similarly, doing the same steps in reverse.
• Allows the scripts to execute in some sequential manner.
%global _description\
Alembic is a new database migrations tool, written by the author of\
SQLAlchemy. A migrations tool offers the following functionality:\
\
* Can emit ALTER statements to a database in order to change the structure\
of tables and other constructs.\
* Provides a system whereby "migration scripts" may be constructed; each script\
indicates a particular series of steps that can "upgrade" a target database\
to a new version, and optionally a series of steps that can "downgrade"\
similarly, doing the same steps in reverse.\
* Allows the scripts to execute in some sequential manner.\
\
Documentation and status of Alembic is at http://readthedocs.org/docs/alembic/
Documentation and status of Alembic is at https://alembic.sqlalchemy.org/}
%description %_description
@ -48,61 +48,146 @@ Documentation and status of Alembic is at http://readthedocs.org/docs/alembic/
%package -n python3-alembic
Summary: %summary
%if 0%{?rhel} == 8
Requires: python3-importlib-resources
%endif
%{?python_provide:%python_provide python3-alembic}
%description -n python3-alembic %_description
%prep
%autosetup -p1 -n %{modname}-%{version}
%autosetup -p1 -n alembic-%{version}
# HTML documentation has bundled and pre-compiled/pre-minified JavaScript; see
# https://docs.fedoraproject.org/en-US/packaging-guidelines/JavaScript/.
rm -rvf docs/_static
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
sed -r -i 's/^([[:blank:]]*(black|zimports))\b/# &/' tox.ini
# Don't treat DeprecationWarnings as errros in tests
sed -i '/"error", category=DeprecationWarning/d' alembic/testing/warnings.py
%generate_buildrequires
%pyproject_buildrequires
%build
%py3_build
%pyproject_wheel
%{__mkdir_p} bin
echo 'python3 -c "import alembic.config; alembic.config.main()" $*' > bin/alembic
mkdir -p bin
echo '%{python3} -c "import alembic.config; alembic.config.main()" $*' > bin/alembic
chmod 0755 bin/alembic
help2man --version-string %{version} --no-info -s 1 bin/alembic > alembic.1
%install
install -d -m 0755 %{buildroot}%{_mandir}/man1
%py3_install
mv %{buildroot}/%{_bindir}/%{modname} %{buildroot}/%{_bindir}/%{modname}-3
ln -s %{modname}-3 %{buildroot}/%{_bindir}/%{modname}-%{python3_version}
%pyproject_install
%pyproject_save_files alembic
mv %{buildroot}/%{_bindir}/alembic %{buildroot}/%{_bindir}/alembic-3
ln -s alembic-3 %{buildroot}/%{_bindir}/alembic-%{python3_version}
install -m 0644 alembic.1 %{buildroot}%{_mandir}/man1/alembic-3.1
ln -s alembic-3.1 %{buildroot}%{_mandir}/man1/alembic-%{python3_version}.1
ln -s %{modname}-%{python3_version} %{buildroot}/%{_bindir}/%{modname}
ln -s alembic-%{python3_version} %{buildroot}/%{_bindir}/alembic
ln -s alembic-%{python3_version}.1 %{buildroot}%{_mandir}/man1/alembic.1
%check
py.test-3
%pytest %{?!rhel:-n auto}
%files -n python3-%{modname}
%doc LICENSE README.rst CHANGES docs
%{python3_sitelib}/%{modname}/
%{python3_sitelib}/%{modname}-%{version}-*
%{_bindir}/%{modname}
%{_mandir}/man1/alembic.1*
%{_bindir}/%{modname}-3
%{_bindir}/%{modname}-%{python3_version}
%{_mandir}/man1/alembic-3.1*
%{_mandir}/man1/alembic-%{python3_version}.1*
%files -n python3-alembic -f %{pyproject_files}
# pyproject_files handles LICENSE; verify with rpm -qL -p ...
%doc README.rst CHANGES
%{_bindir}/alembic
%{_mandir}/man1/alembic.1{,.*}
%{_bindir}/alembic-3
%{_mandir}/man1/alembic-3.1{,.*}
%{_bindir}/alembic-%{python3_version}
%{_mandir}/man1/alembic-%{python3_version}.1{,.*}
%changelog
* Fri Jun 17 2022 Sergio Correia <scorreia@redhat.com> - 1.7.5-3
- Add python-alembic to RHEL-9
Resolves: rhbz#2084557
* Tue Nov 26 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1.13.1-6
- Rebuilt for MSVSphere 10
## START: Generated by rpmautospec
* Tue Aug 13 2024 Sergio Correia <scorreia@redhat.com> - 1.13.1-6
- Do not build "tz" subpackage
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.13.1-5
- Bump release for June 2024 mass rebuild
* Mon May 27 2024 Karel Srot <ksrot@redhat.com> - 1.13.1-4
- [ci] Configure CI tests and gating.yaml
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Dec 20 2023 František Zatloukal <fzatlouk@redhat.com> - 1.13.1-1
- Update to 1.13.1 (Fixes RHBZ#2255427)
* Mon Dec 04 2023 František Zatloukal <fzatlouk@redhat.com> - 1.13.0-1
- Update to 1.13.0 (Fixes RHBZ#2252423)
* Mon Nov 06 2023 František Zatloukal <fzatlouk@redhat.com> - 1.12.1-1
- Update to 1.12.1 (Fixes RHBZ#2246418)
* Wed Oct 11 2023 František Zatloukal <fzatlouk@redhat.com> - 1.12.0-1
- Update to 1.12.0 (Fixes RHBZ#2236554)
* Sun Aug 20 2023 František Zatloukal <fzatlouk@redhat.com> - 1.11.3-1
- Update to 1.11.3 (Fixes RHBZ#2232407)
* Fri Aug 04 2023 František Zatloukal <fzatlouk@redhat.com> - 1.11.2-1
- Update to 1.11.2 (Fixes RHBZ#2229186)
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jul 04 2023 Miro Hrončok <miro@hroncok.cz> - 1.11.1-3
- Don't treat DeprecationWarnings as errros in tests
* Mon Jul 03 2023 Python Maint <python-maint@redhat.com> - 1.11.1-2
- Rebuilt for Python 3.12
* Wed May 24 2023 František Zatloukal <fzatlouk@redhat.com> - 1.11.1-1
- Update to 1.11.1 (fixes RHBZ#2204508)
* Tue May 23 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 1.10.4-2
- Convert from tox to pytest, avoid xdist on RHEL
* Tue May 09 2023 Frantisek Zatloukal <fzatlouk@redhat.com> - 1.10.4-1
- Update to 1.10.4 (closes RHBZ#2170561 )
* Fri Feb 10 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 1.9.3-1
- Update to 1.9.3 (close RHBZ#2153880)
* Sat Feb 04 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 1.8.1-3
- Drop conditionals for EPEL8 (which has setuptools too old for this version
anyway)
- Drop obsolete spec file macros, and use appropriate newer ones
- Drop HTML documentation due to bundled/pre-minified JavaScript
- Confirm License is SPDX MIT
- Add metapackage for “tz” extra
- Port to pyproject-rpm-macros
- Stricter patterns to avoid listing man pages twice
- Update description text from upstream
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Mon Aug 29 2022 Kevin Fenzi <kevin@scrye.com> - 1.8.1-1
- Update to 1.8.1. Fixes rhbz#2092126
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.7-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 1.7.7-2
- Rebuilt for Python 3.11
* Sun May 29 2022 Kevin Fenzi <kevin@scrye.com> - 1.7.7-1
- Update to 1.7.7. Fixes rhbz#2049145
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
@ -252,3 +337,5 @@ py.test-3
* Thu Jan 18 2018 Ralph Bean <rbean@redhat.com> - 0.9.7-1
- new version
- New dependency on python-dateutil.
## END: Generated by rpmautospec

Loading…
Cancel
Save