Hello community, here is the log from the commit of package python-tornado for openSUSE:Factory checked in at 2018-07-19 09:35:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-tornado (Old) and /work/SRC/openSUSE:Factory/.python-tornado.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-tornado" Thu Jul 19 09:35:04 2018 rev:50 rq: version:4.5.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-tornado/python-tornado.changes 2018-07-17 09:37:54.546254346 +0200 +++ /work/SRC/openSUSE:Factory/.python-tornado.new/python-tornado.changes 2018-07-19 09:35:07.923421170 +0200 @@ -2,10 +1,0 @@ -Sun Jul 15 21:17:57 UTC 2018 - [email protected] - -- update to 5.1 -- drop tornado-async-deprecations.patch - tornado-testsuite_timeout.patch - * support python 3.7 - * big bunch of changes, please check: - http://www.tornadoweb.org/en/stable/releases.html - -------------------------------------------------------------------- Old: ---- tornado-5.1.tar.gz New: ---- tornado-4.5.3.tar.gz tornado-async-deprecations.patch tornado-testsuite_timeout.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-tornado.spec ++++++ --- /var/tmp/diff_new_pack.V5ZwzZ/_old 2018-07-19 09:35:09.175417000 +0200 +++ /var/tmp/diff_new_pack.V5ZwzZ/_new 2018-07-19 09:35:09.175417000 +0200 @@ -16,16 +16,18 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-tornado -Version: 5.1 +Version: 4.5.3 Release: 0 Summary: Open source version of scalable, non-blocking web server that power FriendFeed License: Apache-2.0 Group: Development/Languages/Python -URL: http://www.tornadoweb.org +Url: http://www.tornadoweb.org Source: https://files.pythonhosted.org/packages/source/t/tornado/tornado-%{version}.tar.gz +Patch0: tornado-async-deprecations.patch +Patch1: tornado-testsuite_timeout.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module pycurl} BuildRequires: %{python_module setuptools} @@ -88,6 +90,8 @@ %setup -q -n tornado-%{version} # Fix non-executable script rpmlint issue: find demos tornado -name "*.py" -exec sed -i "/#\!\/usr\/bin\/.*/d" {} \; +%patch0 -p1 +%patch1 -p1 %pre # remove egg-info _file_, being replaced by an egg-info directory @@ -108,8 +112,7 @@ %python_exec -m tornado.test.runtests %files %{python_files} -%license LICENSE -%doc demos +%doc demos LICENSE %{python_sitearch}/tornado %{python_sitearch}/tornado-%{version}-py*.egg-info ++++++ tornado-5.1.tar.gz -> tornado-4.5.3.tar.gz ++++++ ++++ 22016 lines of diff (skipped) ++++++ tornado-async-deprecations.patch ++++++ Index: tornado-4.4.2/tornado/test/runtests.py =================================================================== --- tornado-4.4.2.orig/tornado/test/runtests.py +++ tornado-4.4.2/tornado/test/runtests.py @@ -125,6 +125,9 @@ def main(): # 3.5.2's PendingDeprecationWarning became a DeprecationWarning in 3.6. warnings.filterwarnings("ignore", category=DeprecationWarning, message=".*legacy __aiter__ protocol") + # simply ignore all async-related deprecations, for a rough support for python 3.6 + warnings.filterwarnings("ignore", category=DeprecationWarning, + message="async") logging.getLogger("tornado.access").setLevel(logging.CRITICAL) ++++++ tornado-testsuite_timeout.patch ++++++ --- tornado-4.5.3/tornado/test/simple_httpclient_test.py 2018/03/16 13:18:41 1.1 +++ tornado-4.5.3/tornado/test/simple_httpclient_test.py 2018/03/16 13:41:14 @@ -239,7 +239,7 @@ @skipOnTravis def test_connect_timeout(self): timeout = 0.1 - timeout_min, timeout_max = 0.099, 1.0 + timeout_min, timeout_max = 0.099, 3.0 class TimeoutResolver(Resolver): def resolve(self, *args, **kwargs): @@ -257,7 +257,7 @@ @skipOnTravis def test_request_timeout(self): timeout = 0.1 - timeout_min, timeout_max = 0.099, 0.15 + timeout_min, timeout_max = 0.099, 0.25 if os.name == 'nt': timeout = 0.5 timeout_min, timeout_max = 0.4, 0.6 @@ -360,7 +360,7 @@ response = self.wait() self.assertEqual(response.code, 599) - self.assertTrue(response.request_time < 1, response.request_time) + self.assertTrue(response.request_time < 2.5, response.request_time) self.assertEqual(str(response.error), "HTTP 599: Timeout in request queue") self.triggers.popleft()() self.wait() --- tornado-4.5.3/tornado/test/testing_test.py 2018/03/16 13:18:44 1.1 +++ tornado-4.5.3/tornado/test/testing_test.py 2018/03/16 13:18:56 @@ -61,7 +61,7 @@ self.io_loop.add_timeout(self.io_loop.time() + 0.00, self.stop) self.wait(timeout=0.02) self.io_loop.add_timeout(self.io_loop.time() + 0.03, self.stop) - self.wait(timeout=0.15) + self.wait(timeout=0.25) def test_multiple_errors(self): def fail(message): @@ -206,7 +206,7 @@ self.finished = True def test_timeout_environment_variable(self): - @gen_test(timeout=0.5) + @gen_test(timeout=0.9) def test_long_timeout(self): time = self.io_loop.time yield gen.Task(self.io_loop.add_timeout, time() + 0.25)
