From b21d0d5ffa3e5e855359d0baf54b63060767f680 Mon Sep 17 00:00:00 2001 From: Sergio Correia Date: Fri, 17 Jun 2022 19:14:39 -0300 Subject: [PATCH] Add python-alembic to RHEL-9 Resolves: rhbz#2084557 --- .build-0.7.6-1.fc23.log | 7 -- .gitignore | 1 + 0001-filter-out-DeprecationWarnings.patch | 31 +++++++++ gating.yaml | 6 ++ python-alembic.spec | 80 ++++++++++++++++++++--- sources | 2 +- 6 files changed, 109 insertions(+), 18 deletions(-) delete mode 100644 .build-0.7.6-1.fc23.log create mode 100644 0001-filter-out-DeprecationWarnings.patch create mode 100644 gating.yaml diff --git a/.build-0.7.6-1.fc23.log b/.build-0.7.6-1.fc23.log deleted file mode 100644 index 9072654..0000000 --- a/.build-0.7.6-1.fc23.log +++ /dev/null @@ -1,7 +0,0 @@ -error: Failed build dependencies: - help2man is needed by python-alembic-0.7.6-1.fc23.noarch - python-mock is needed by python-alembic-0.7.6-1.fc23.noarch - python3-mock is needed by python-alembic-0.7.6-1.fc23.noarch - python3-sqlalchemy >= 0.7.4 is needed by python-alembic-0.7.6-1.fc23.noarch - - diff --git a/.gitignore b/.gitignore index 0f1feca..8e0555f 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,4 @@ /alembic-1.3.1.tar.gz /alembic-1.4.0.tar.gz /alembic-1.4.2.tar.gz +/alembic-1.7.5.tar.gz diff --git a/0001-filter-out-DeprecationWarnings.patch b/0001-filter-out-DeprecationWarnings.patch new file mode 100644 index 0000000..60c0f88 --- /dev/null +++ b/0001-filter-out-DeprecationWarnings.patch @@ -0,0 +1,31 @@ +From 1a4a106bf202fbd90371087260af2bbc0ef097c3 Mon Sep 17 00:00:00 2001 +From: Tomas Hrnciar +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 + diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..60afc23 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-9 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.openstack-keylime-integration.functional} diff --git a/python-alembic.spec b/python-alembic.spec index fe349b0..c396e1e 100644 --- a/python-alembic.spec +++ b/python-alembic.spec @@ -1,14 +1,18 @@ %global modname alembic Name: python-alembic -Version: 1.4.2 -Release: 5%{?dist} +Version: 1.7.5 +Release: 3%{?dist} Summary: Database migration tool for SQLAlchemy 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 + BuildArch: noarch BuildRequires: help2man @@ -16,12 +20,12 @@ BuildRequires: help2man BuildRequires: python3-devel BuildRequires: python3-sqlalchemy >= 1.1 BuildRequires: python3-mako -BuildRequires: python3-nose BuildRequires: python3-setuptools -BuildRequires: python3-mock BuildRequires: python3-dateutil -BuildRequires: python3-editor BuildRequires: python3-pytest +%if 0%{?rhel} == 8 +BuildRequires: python3-importlib-resources +%endif %global _description\ @@ -44,11 +48,9 @@ Documentation and status of Alembic is at http://readthedocs.org/docs/alembic/ %package -n python3-alembic Summary: %summary -Requires: python3-sqlalchemy >= 1.1 -Requires: python3-mako -Requires: python3-setuptools -Requires: python3-editor -Requires: python3-dateutil +%if 0%{?rhel} == 8 +Requires: python3-importlib-resources +%endif %{?python_provide:%python_provide python3-alembic} @@ -98,6 +100,64 @@ py.test-3 %changelog +* Fri Jun 17 2022 Sergio Correia - 1.7.5-3 +- Add python-alembic to RHEL-9 + Resolves: rhbz#2084557 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.7.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Sun Nov 28 2021 Kevin Fenzi - 1.7.5-1 +- Update to 1.7.5. Fixes rhbz#2022454 + +* Sat Nov 06 2021 Kevin Fenzi - 1.7.4-1 +- Update to 1.7.4. Fixes rhbz#2011425 + +* Sat Sep 25 2021 Kevin Fenzi - 1.7.3-1 +- Update to 1.7.3. Fixes rhbz#2005403 + +* Fri Sep 17 2021 Neal Gompa - 1.7.1-3 +- Drop redundant manually specified dependencies + +* Thu Sep 16 2021 Joel Capitao - 1.7.1-2 +- Add the dist tag again + +* Mon Sep 13 2021 Joel Capitao - 1.7.1-1 +- Update to 1.7.1. Fixes rhbz#1999176 + +* Fri Jul 23 2021 Fedora Release Engineering - 1.6.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Sat Jun 12 2021 Kevin Fenzi - 1.6.5-1 +- Update to 1.6.5. Fixes rhbz#1964163 + +* Fri Jun 04 2021 Python Maint - 1.6.3-2 +- Rebuilt for Python 3.10 + +* Sat May 22 2021 Kevin Fenzi - 1.6.3-1 +- Update to 1.6.3. Fixes rhbz#1957878 + +* Tue May 04 2021 Kevin Fenzi - 1.6.0-1 +- Update to 1.6.0. Fixes rhbz#1956482 + +* Sat Mar 27 2021 Kevin Fenzi - 1.5.8-1 +- Update to 1.5.8. Fixes rhbz#1935790 + +* Mon Feb 22 2021 Kevin Fenzi - 1.5.5-1 +- Update to 1.5.5. Fixes rhbz#1931142 + +* Fri Feb 12 2021 Kevin Fenzi - 1.5.3-1 +- Update to 1.5.3. Fixes rhbz#1922496 + +* Thu Jan 28 2021 Kevin Fenzi - 1.5.0-1 +- Update to 1.5.0. Fixes rhbz#1917596 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.4.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Nov 19 2020 Joel Capitao - 1.4.3-1 +- Update to 1.4.3 (rhbz#1878203) + * Thu Aug 20 2020 Merlin Mathesius - 1.4.2-5 - Correct macro usage to fix Rawhide and ELN FTBFS errors diff --git a/sources b/sources index bd1213c..73ef75b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (alembic-1.4.2.tar.gz) = 82bdfe442c19033aa2b802ec49edd13ed265c00a2b5a048490a83ffa8e53587c56a90b64d554e746a9189923419c528482cb7a7c950c210e0de47b32fa7c270e +SHA512 (alembic-1.7.5.tar.gz) = 4223116c3610f3196335c1fb2032a9a236c3e6ec4e4ca5cb85ccc3667d614e77d51d9fee1ee0173a32451198929428c1fcf39afd90b6df32584b076e0a4ab1a4