From e69d8c00360c00373c586a43784f3097e6bd46f5 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Apr 30 2020 08:27:17 +0000 Subject: Filter lib2to3 (Pending)DeprecationWarning in testes lib2to3 is deprecated in Python 3.9: https://bugs.python.org/issue40360 Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1829716 --- diff --git a/filter-lib2to3-deprecation-warnings.patch b/filter-lib2to3-deprecation-warnings.patch new file mode 100644 index 0000000..4cd6f33 --- /dev/null +++ b/filter-lib2to3-deprecation-warnings.patch @@ -0,0 +1,11 @@ +diff --git a/pytest.ini b/pytest.ini +index 825dbe6..40efb05 100644 +--- a/pytest.ini ++++ b/pytest.ini +@@ -20,3 +20,6 @@ filterwarnings = + ignore:Unicode unequal comparison failed to convert:UnicodeWarning + # https://github.com/pypa/setuptools/issues/2025 + ignore:direct construction of .*Item has been deprecated:DeprecationWarning ++ # https://github.com/pypa/setuptools/issues/2081 ++ ignore:lib2to3 package is deprecated:PendingDeprecationWarning ++ ignore:lib2to3 package is deprecated:DeprecationWarning diff --git a/python-setuptools.spec b/python-setuptools.spec index 1a3d12c..5c72863 100644 --- a/python-setuptools.spec +++ b/python-setuptools.spec @@ -25,6 +25,9 @@ License: MIT and (BSD or ASL 2.0) URL: https://pypi.python.org/pypi/%{srcname} Source0: %{pypi_source %{srcname} %{version} zip} +# https://github.com/pypa/setuptools/issues/2081 +Patch1: filter-lib2to3-deprecation-warnings.patch + BuildArch: noarch BuildRequires: gcc