From 617132ca30c03b4e7d548863da3264dd4cba8329 Mon Sep 17 00:00:00 2001 From: yatinkarel Date: Sep 24 2021 08:19:11 +0000 Subject: Import python-alembic-1.7.1-3.el9 in CloudSIG xena --- diff --git a/.python-alembic.metadata b/.python-alembic.metadata index 23c2667..111985f 100644 --- a/.python-alembic.metadata +++ b/.python-alembic.metadata @@ -1 +1 @@ -0f03f0a6aa9ee270936dcc3ee0fda311259d8e77 SOURCES/alembic-1.6.0.tar.gz +d264066326a3c8afb05e286c50bb7c25390784c5 SOURCES/alembic-1.7.1.tar.gz diff --git a/SOURCES/0001-filter-out-DeprecationWarnings.patch b/SOURCES/0001-filter-out-DeprecationWarnings.patch new file mode 100644 index 0000000..60c0f88 --- /dev/null +++ b/SOURCES/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/SPECS/python-alembic.spec b/SPECS/python-alembic.spec index b81a05b..9f4d3aa 100644 --- a/SPECS/python-alembic.spec +++ b/SPECS/python-alembic.spec @@ -1,16 +1,21 @@ %global modname alembic Name: python-alembic -Version: 1.6.0 -Release: 1%{?dist} +Version: 1.7.1 +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: openstack-macros BuildRequires: help2man BuildRequires: python3-devel @@ -22,6 +27,9 @@ 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 +52,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 +104,27 @@ py.test-3 %changelog +* 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