forked from pool/python-tornado6
osc copypac from project:devel:languages:python package:python-tornado revision:115, using expand
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tornado6?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
1183
python-tornado.changes
Normal file
1183
python-tornado.changes
Normal file
File diff suppressed because it is too large
Load Diff
98
python-tornado.spec
Normal file
98
python-tornado.spec
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-tornado
|
||||||
|
#
|
||||||
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%define skip_python2 1
|
||||||
|
Name: python-tornado
|
||||||
|
Version: 6.0.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
|
||||||
|
Source: https://files.pythonhosted.org/packages/source/t/tornado/tornado-%{version}.tar.gz
|
||||||
|
Patch1: tornado-testsuite_timeout.patch
|
||||||
|
Patch2: skip-failing-tests.patch
|
||||||
|
BuildRequires: %{python_module base >= 3.5}
|
||||||
|
BuildRequires: %{python_module certifi}
|
||||||
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module pycurl}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module simplejson}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python
|
||||||
|
Requires: python-simplejson
|
||||||
|
Recommends: python-Twisted
|
||||||
|
Recommends: python-pycares
|
||||||
|
Recommends: python-pycurl
|
||||||
|
Recommends: python-service_identity
|
||||||
|
Provides: python-toro = %{version}
|
||||||
|
Obsoletes: python-toro < %{version}
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
Tornado is an open source version of the scalable, non-blocking web server and
|
||||||
|
tools that power FriendFeed. The FriendFeed application is written using a web
|
||||||
|
framework that looks a bit like web.py or Google's webapp, but with additional
|
||||||
|
tools and optimizations to take advantage of the underlying non-blocking
|
||||||
|
infrastructure.
|
||||||
|
|
||||||
|
The framework is distinct from most mainstream web server frameworks (and
|
||||||
|
certainly most Python frameworks) because it is non-blocking and reasonably
|
||||||
|
fast. Because it is non-blocking and uses epoll, it can handle thousands of
|
||||||
|
simultaneous standing connections, which means it is ideal for real-time web
|
||||||
|
services. We built the web server specifically to handle FriendFeed's real-time
|
||||||
|
features — every active user of FriendFeed maintains an open connection to the
|
||||||
|
FriendFeed servers. (For more information on scaling servers to support
|
||||||
|
thousands of clients, see The C10K problem.)
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n tornado-%{version}
|
||||||
|
# Fix non-executable script rpmlint issue:
|
||||||
|
find demos tornado -name "*.py" -exec sed -i "/#\!\/usr\/bin\/.*/d" {} \;
|
||||||
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
|
%pre
|
||||||
|
# remove egg-info _file_, being replaced by an egg-info directory
|
||||||
|
if [ -f %{python_sitearch}/tornado-%{version}-py%{python_version}.egg-info ]; then
|
||||||
|
rm %{python_sitearch}/tornado-%{version}-py%{python_version}.egg-info
|
||||||
|
fi
|
||||||
|
|
||||||
|
%build
|
||||||
|
%python_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%python_install
|
||||||
|
%fdupes -s demos
|
||||||
|
%python_expand rm -r %{buildroot}%{$python_sitearch}/tornado/test
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
|
||||||
|
%check
|
||||||
|
export ASYNC_TEST_TIMEOUT=30
|
||||||
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
|
%python_exec -m tornado.test.runtests
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%license LICENSE
|
||||||
|
%doc demos
|
||||||
|
%{python_sitearch}/tornado
|
||||||
|
%{python_sitearch}/tornado-%{version}-py*.egg-info
|
||||||
|
|
||||||
|
%changelog
|
40
skip-failing-tests.patch
Normal file
40
skip-failing-tests.patch
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
From: Benjamin Drung <benjamin.drung@cloud.ionos.com>
|
||||||
|
Date: Tue, 18 Dec 2018 18:35:28 +0100
|
||||||
|
Subject: [PATCH] Skip failing openssl 1.1.1 tests (for now)
|
||||||
|
|
||||||
|
Four tests fail when using openssl 1.1.1 with TLS 1.3 support. Disable
|
||||||
|
these tests for now. Please fix the bug and re-enable them again.
|
||||||
|
|
||||||
|
Bug: https://github.com/tornadoweb/tornado/issues/2536
|
||||||
|
---
|
||||||
|
tornado/test/iostream_test.py | 3 +++
|
||||||
|
1 file changed, 3 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/tornado/test/iostream_test.py b/tornado/test/iostream_test.py
|
||||||
|
index 56fffe6..b1d5f5d 100644
|
||||||
|
--- a/tornado/test/iostream_test.py
|
||||||
|
+++ b/tornado/test/iostream_test.py
|
||||||
|
@@ -166,6 +166,7 @@ class TestReadWriteMixin(object):
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
@gen_test
|
||||||
|
+ @unittest.skip("Failing when using openssl 1.1.1 with TLS 1.3 support. See https://github.com/tornadoweb/tornado/issues/2536")
|
||||||
|
def test_write_zero_bytes(self):
|
||||||
|
# Attempting to write zero bytes should run the callback without
|
||||||
|
# going into an infinite loop.
|
||||||
|
@@ -217,6 +218,7 @@ class TestReadWriteMixin(object):
|
||||||
|
rs.close()
|
||||||
|
|
||||||
|
@gen_test
|
||||||
|
+ @unittest.skip("Failing when using openssl 1.1.1 with TLS 1.3 support. See https://github.com/tornadoweb/tornado/issues/2536")
|
||||||
|
def test_read_until_close_after_close(self):
|
||||||
|
# Similar to test_delayed_close_callback, but read_until_close takes
|
||||||
|
# a separate code path so test it separately.
|
||||||
|
@@ -736,6 +738,7 @@ class TestIOStreamMixin(object):
|
||||||
|
@skipIfNonUnix
|
||||||
|
@skipPypy3V58
|
||||||
|
@gen_test
|
||||||
|
+ @unittest.skip("Failing when using openssl 1.1.1 with TLS 1.3 support. See https://github.com/tornadoweb/tornado/issues/2536")
|
||||||
|
def test_inline_read_error(self):
|
||||||
|
# An error on an inline read is raised without logging (on the
|
||||||
|
# assumption that it will eventually be noticed or logged further
|
3
tornado-6.0.3.tar.gz
Normal file
3
tornado-6.0.3.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c845db36ba616912074c5b1ee897f8e0124df269468f25e4fe21fe72f6edd7a9
|
||||||
|
size 482444
|
20
tornado-testsuite_timeout.patch
Normal file
20
tornado-testsuite_timeout.patch
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
--- tornado-6.0.3/tornado/test/testing_test.py 2018/03/16 13:18:44 1.1
|
||||||
|
+++ tornado-6.0.3/tornado/test/testing_test.py 2018/03/16 13:18:56
|
||||||
|
@@ -54,7 +54,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)
|
||||||
|
|
||||||
|
|
||||||
|
class LeakTest(AsyncTestCase):
|
||||||
|
@@ -262,7 +262,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):
|
||||||
|
yield gen.sleep(0.25)
|
||||||
|
|
Reference in New Issue
Block a user