From 246d60ba41dc205bd367eaef1867eacac488b4a7 Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Thu, 16 May 2019 15:27:45 +0200 Subject: [PATCH] New patch to not turn DeprecationWarning in tornado module into Exception --- ...rn-DeprecationWarning-into-Exception.patch | 25 +++++++++++++++++++ python-tornado.spec | 9 ++++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 Do-not-turn-DeprecationWarning-into-Exception.patch diff --git a/Do-not-turn-DeprecationWarning-into-Exception.patch b/Do-not-turn-DeprecationWarning-into-Exception.patch new file mode 100644 index 0000000..198376b --- /dev/null +++ b/Do-not-turn-DeprecationWarning-into-Exception.patch @@ -0,0 +1,25 @@ +From eccbc528d9800bdfef5e1795e6bada446aafaf43 Mon Sep 17 00:00:00 2001 +From: Lumir Balhar +Date: Thu, 16 May 2019 13:50:14 +0200 +Subject: [PATCH] Do not turn DeprecationWarning into Exception + +--- + tornado/test/runtests.py | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/tornado/test/runtests.py b/tornado/test/runtests.py +index e4f938d3..cd2a5b87 100644 +--- a/tornado/test/runtests.py ++++ b/tornado/test/runtests.py +@@ -127,8 +127,6 @@ def main(): + # Tornado generally shouldn't use anything deprecated, but some of + # our dependencies do (last match wins). + warnings.filterwarnings("ignore", category=DeprecationWarning) +- warnings.filterwarnings("error", category=DeprecationWarning, +- module=r"tornado\..*") + warnings.filterwarnings("ignore", category=PendingDeprecationWarning) + warnings.filterwarnings("error", category=PendingDeprecationWarning, + module=r"tornado\..*") +-- +2.21.0 + diff --git a/python-tornado.spec b/python-tornado.spec index 175e20b..acb395d 100644 --- a/python-tornado.spec +++ b/python-tornado.spec @@ -9,7 +9,7 @@ Name: python-%{srcname} Version: 5.1.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Scalable, non-blocking web server and tools License: ASL 2.0 @@ -20,6 +20,9 @@ Source0: %{pypi_source} # Tornado has them, mostly in docstrings and the tests treat them as errors # Fixed upstream: https://github.com/tornadoweb/tornado/commit/6dceb64ed27c1d48af22142f2ebae946f0e85e95 Patch0: fix-syntax-warnings.patch +# Do not turn DeprecationWarning in tornado module into Exception +# fixes FTBFS with Python 3.8 +Patch1: Do-not-turn-DeprecationWarning-into-Exception.patch BuildRequires: gcc @@ -122,6 +125,10 @@ export ASYNC_TEST_TIMEOUT=10 %changelog +* Thu May 16 2019 Lumír Balhar - 5.1.1-2 +- New patch to not turn DeprecationWarning in tornado module into Exception +- Fixes FTBFS with Python 3.8 + * Wed Mar 27 2019 Miro Hrončok - 5.1.1-1 - Update to 5.1.1 - Fix SyntaxWarnings (turned into SyntaxErrors) on Python 3.8