Search
SailfishOS Open Build Service
>
Projects
>
home:nodevel
:
python3-pandas
>
python3-tornado
> Changes
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 8
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
[-]
[+]
Added
python3-tornado.spec
@@ -0,0 +1,525 @@ +# +# spec file for package python3-tornado +# +# Copyright (c) 2016 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 http://bugs.opensuse.org/ +# + +%{?!py3_ver: %global py3_ver 3.4} +%{?!python3_sitearch: %global python3_sitearch /usr/lib/python%{py3_ver}/site-packages/} +%{?!python3_sitelib: %global python3_sitelib /usr/lib/python%{py3_ver}/site-packages/} + +Name: python3-tornado +Version: 4.3 +Release: 43.1 +Url: http://www.tornadoweb.org +Summary: Open source version of scalable, non-blocking web server that power FriendFeed +License: Apache-2.0 +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/t/tornado/tornado-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python3-backports_abc >= 0.4 +BuildRequires: python3-certifi +BuildRequires: python3-devel +BuildRequires: python3-pycurl +BuildRequires: python3-simplejson +Requires: python3-backports_abc >= 0.4 +Requires: python3-certifi +Requires: python3-simplejson +# Recommends: python3-pycurl +# Recommends: python3-Twisted +# %if 0%{?suse_version} +# %if 0%{?suse_version} <= 1310 +# BuildRequires: python3-singledispatch +# Requires: python3-singledispatch +# %else +# BuildRequires: python3-Twisted +# %endif +# BuildRequires: fdupes +# %endif + +%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" {} \; + +%build +python3 setup.py build + +%install +find %{buildroot} -name ".pyc" -delete +python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%files +# %exclude %{buildroot}%{python3_sitearch}/*/*.pyc +%defattr(-,root,root,-) +%{python3_sitearch}/tornado +%{python3_sitearch}/tornado-%{version}-py%{py3_ver}.egg-info + +%changelog +* Sun May 8 2016 arun@gmx.de +- specfile: + * updated source url to files.pythonhosted.org +* Wed Nov 11 2015 toddrme2178@gmail.com +- python3-singledispatch is required for python 3.3 and earler + (which is only still present on openSUSE 13.1) +- python3-Twisted is now available. +* Sat Nov 7 2015 arun@gmx.de +- specfile: + * require backports_abc>=0.4 +- update to version 4.3: + see http://www.tornadoweb.org/en/stable/releases/v4.3.0.html +* Sat Sep 26 2015 toddrme2178@gmail.com +- BuildRequires python3-certifi since it is required by tests. + It is already in Requires. +* Sat Jul 18 2015 arun@gmx.de +- update to version 4.2.1: + * This release fixes a path traversal vulnerability in + StaticFileHandler, in which files whose names started with the + static_path directory but were not actually in that directory + could be accessed. +* Sat May 30 2015 arun@gmx.de +- update to version 4.2: + * Backwards-compatibility notes + - "SSLIOStream.connect" and .IOStream.start_tls now validate + certificates by default. + - Certificate validation will now use the system CA root + certificates instead of "certifi" when possible (i.e. Python + 2.7.9+ or 3.4+). This includes .IOStream and + "simple_httpclient", but not "curl_httpclient". + - The default SSL configuration has become stricter, using + ssl.create_default_context where available on the client side. + (On the server side, applications are encouraged to migrate from + the "ssl_options" dict-based API to pass an ssl.SSLContext + instead). + - The deprecated classes in the tornado.auth module, + "GoogleMixin", "FacebookMixin", and "FriendFeedMixin" have been + removed. + * New modules: tornado.locks and tornado.queues + - These modules provide classes for coordinating coroutines, + merged from Toro http://toro.readthedocs.org + (See http://www.tornadoweb.org/en/stable/releases/v4.2.0.html for more details) + * tornado.autoreload + - Improved compatibility with Windows. + - Fixed a bug in Python 3 if a module was imported during a reload + check. + * tornado.concurrent + - .run_on_executor now accepts arguments to control which + attributes it uses to find the .IOLoop and executor. + * tornado.curl_httpclient + - Fixed a bug that would cause the client to stop processing + requests if an exception occurred in certain places while there + is a queue. + * tornado.escape + - .xhtml_escape now supports numeric character references in hex + format (" ") + * tornado.gen + - .WaitIterator no longer uses weak references, which fixes + several garbage-collection-related bugs. + - tornado.gen.Multi and tornado.gen.multi_future (which are used + when yielding a list or dict in a coroutine) now log any + exceptions after the first if more than one .Future fails + (previously they would be logged when the .Future was + garbage-collected, but this is more reliable). Both have a new + keyword argument "quiet_exceptions" to suppress logging of + certain exception types; to use this argument you must call + "Multi" or "multi_future" directly instead of simply yielding a + list. + - .multi_future now works when given multiple copies of the same + .Future. + - On Python 3, catching an exception in a coroutine no longer + leads to leaks via "Exception.__context__". + * tornado.httpclient + - The "raise_error" argument now works correctly with the + synchronous .HTTPClient. + - The synchronous .HTTPClient no longer interferes with + .IOLoop.current(). + * tornado.httpserver + - .HTTPServer is now a subclass of tornado.util.Configurable. + * tornado.httputil + - .HTTPHeaders can now be copied with copy.copy and copy.deepcopy. + * tornado.ioloop + - The .IOLoop constructor now has a "make_current" keyword + argument to control whether the new .IOLoop becomes + .IOLoop.current(). + - Third-party implementations of .IOLoop should accept "**kwargs" + in their ~.IOLoop.initialize methods and pass them to the + superclass implementation. + - .PeriodicCallback is now more efficient when the clock jumps + forward by a large amount. + * tornado.iostream + - "SSLIOStream.connect" and .IOStream.start_tls now validate + certificates by default. + - New method .SSLIOStream.wait_for_handshake allows server-side + applications to wait for the handshake to complete in order to + verify client certificates or use NPN/ALPN. + - The .Future returned by "SSLIOStream.connect" now resolves after + the handshake is complete instead of as soon as the TCP + connection is established. + - Reduced logging of SSL errors. + - .BaseIOStream.read_until_close now works correctly when a + "streaming_callback" is given but "callback" is None (i.e. when + it returns a .Future) + * tornado.locale + - New method .GettextLocale.pgettext allows additional context to be + supplied for gettext translations. + * tornado.log + - .define_logging_options now works correctly when given a + non-default "options" object. + * tornado.process + - New method .Subprocess.wait_for_exit is a coroutine-friendly + version of .Subprocess.set_exit_callback. + * tornado.simple_httpclient + - Improved performance on Python 3 by reusing a single