diff --git a/pytest-ignore-urllib3-pyopenssl-DeprecationWarnings.patch b/pytest-ignore-urllib3-pyopenssl-DeprecationWarnings.patch new file mode 100644 index 0000000..2356802 --- /dev/null +++ b/pytest-ignore-urllib3-pyopenssl-DeprecationWarnings.patch @@ -0,0 +1,13 @@ +diff --git a/pytest.ini b/pytest.ini +index aef459eb..75faeb5b 100644 +--- a/pytest.ini ++++ b/pytest.ini +@@ -51,6 +51,7 @@ filterwarnings = + ignore:Exception ignored in. :pytest.PytestUnraisableExceptionWarning:_pytest.unraisableexception + ignore:Exception ignored in. <_io.FileIO .closed.>:pytest.PytestUnraisableExceptionWarning:_pytest.unraisableexception + ++ ignore:'urllib3.contrib.pyopenssl' module is deprecated:DeprecationWarning + ignore:'cgi' is deprecated:DeprecationWarning + ignore:Use cheroot.test.webtest:DeprecationWarning + ignore:This method will be removed in future versions.*:DeprecationWarning + ignore:Unable to verify that the server is bound on:UserWarning diff --git a/python-cherrypy.spec b/python-cherrypy.spec index 8822b22..9e691a3 100644 --- a/python-cherrypy.spec +++ b/python-cherrypy.spec @@ -10,7 +10,7 @@ Name: python-cherrypy %global camelname CherryPy Version: 18.8.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Pythonic, object-oriented web development framework License: BSD URL: https://cherrypy.dev/ @@ -19,6 +19,9 @@ Source0: https://files.pythonhosted.org/packages/source/C/%{camelname}/%{ # Ignore cgi-related DeprecationWarnings new in Python 3.11 Patch1: pytest-ignore-cgi-DeprecationWarnings.patch +# Ignore urllib3.contrib.pyopenssl DeprecationWarnings +Patch2: pytest-ignore-urllib3-pyopenssl-DeprecationWarnings.patch + BuildArch: noarch BuildRequires: dos2unix @@ -95,6 +98,9 @@ export WEBTEST_INTERACTIVE=false %exclude %{python3_sitelib}/cherrypy/tutorial %changelog +* Mon Sep 19 2022 Dan Radez - 18.8.0-2 +- Ignore urllib3.contrib.pyopenssl DeprecationWarnings to fix FTBFS + * Mon Aug 29 2022 Dan Radez - 18.8.0-1 - updating to 18.8.0 (rhbz#2105856)