forked from pool/python-tornado
Accepting request 622947 from home:mimi_vx:branches:devel:languages:python
- 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 OBS-URL: https://build.opensuse.org/request/show/622947 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tornado?expand=0&rev=83
This commit is contained in:
@@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jul 15 21:17:57 UTC 2018 - mimi.vx@gmail.com
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu May 10 16:35:09 UTC 2018 - toddrme2178@gmail.com
|
Thu May 10 16:35:09 UTC 2018 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
@@ -16,18 +16,16 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%bcond_without python2
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%bcond_without python2
|
||||||
Name: python-tornado
|
Name: python-tornado
|
||||||
Version: 4.5.3
|
Version: 5.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Open source version of scalable, non-blocking web server that power FriendFeed
|
Summary: Open source version of scalable, non-blocking web server that power FriendFeed
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
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
|
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 devel}
|
||||||
BuildRequires: %{python_module pycurl}
|
BuildRequires: %{python_module pycurl}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
@@ -90,8 +88,6 @@ thousands of clients, see The C10K problem.)
|
|||||||
%setup -q -n tornado-%{version}
|
%setup -q -n tornado-%{version}
|
||||||
# Fix non-executable script rpmlint issue:
|
# Fix non-executable script rpmlint issue:
|
||||||
find demos tornado -name "*.py" -exec sed -i "/#\!\/usr\/bin\/.*/d" {} \;
|
find demos tornado -name "*.py" -exec sed -i "/#\!\/usr\/bin\/.*/d" {} \;
|
||||||
%patch0 -p1
|
|
||||||
%patch1 -p1
|
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
# remove egg-info _file_, being replaced by an egg-info directory
|
# remove egg-info _file_, being replaced by an egg-info directory
|
||||||
@@ -112,7 +108,8 @@ export ASYNC_TEST_TIMEOUT=30
|
|||||||
%python_exec -m tornado.test.runtests
|
%python_exec -m tornado.test.runtests
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc demos LICENSE
|
%license LICENSE
|
||||||
|
%doc demos
|
||||||
%{python_sitearch}/tornado
|
%{python_sitearch}/tornado
|
||||||
%{python_sitearch}/tornado-%{version}-py*.egg-info
|
%{python_sitearch}/tornado-%{version}-py*.egg-info
|
||||||
|
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:6d14e47eab0e15799cf3cdcc86b0b98279da68522caace2bd7ce644287685f0a
|
|
||||||
size 484221
|
|
3
tornado-5.1.tar.gz
Normal file
3
tornado-5.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:4f66a2172cb947387193ca4c2c3e19131f1c70fa8be470ddbbd9317fd0801582
|
||||||
|
size 516359
|
@@ -1,14 +0,0 @@
|
|||||||
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)
|
|
||||||
|
|
@@ -1,49 +0,0 @@
|
|||||||
--- 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)
|
|
Reference in New Issue
Block a user