pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-tornado Update to 4.1:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1bc5077277db
branches:  trunk
changeset: 646419:1bc5077277db
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Feb 08 16:31:48 2015 +0000

description:
Update to 4.1:

Highlights

    If a Future contains an exception but that exception is never
    examined or re-raised (e.g. by yielding the Future), a stack
    trace will be logged when the Future is garbage-collected.
    New class tornado.gen.WaitIterator provides a way to iterate
    over Futures in the order they resolve.
    The tornado.websocket module now supports compression via the
    âpermessage-deflateâ extension. Override
    WebSocketHandler.get_compression_options to enable on the server
    side, and use the compression_options keyword argument to
    websocket_connect on the client side.
    When the appropriate packages are installed, it is possible to
    yield asyncio.Future or Twisted Defered objects in Tornado
    coroutines.

Backwards-compatibility notes

    HTTPServer now calls start_request with the correct arguments.
    This change is backwards-incompatible, afffecting any application
    which implemented HTTPServerConnectionDelegate by following
    the example of Application instead of the documented method
    signatures.

tornado.concurrent

    If a Future contains an exception but that exception is never
    examined or re-raised (e.g. by yielding the Future), a stack
    trace will be logged when the Future is garbage-collected.
    Future now catches and logs exceptions in its callbacks.

tornado.curl_httpclient

    tornado.curl_httpclient now supports request bodies for PATCH
    and custom methods.
    tornado.curl_httpclient now supports resubmitting bodies after
    following redirects for methods other than POST.
    curl_httpclient now runs the streaming and header callbacks on
    the IOLoop.
    tornado.curl_httpclient now uses its own logger for debug output
    so it can be filtered more easily.

tornado.gen

    New class tornado.gen.WaitIterator provides a way to iterate
    over Futures in the order they resolve.
    When the singledispatch library is available (standard on Python
    3.4, available via pip install singledispatch on older versions),
    the convert_yielded function can be used to make other kinds
    of objects yieldable in coroutines.
    New function tornado.gen.sleep is a coroutine-friendly analogue
    to time.sleep.
    gen.engine now correctly captures the stack context for its
    callbacks.

tornado.httpclient

    tornado.httpclient.HTTPRequest accepts a new argument
    raise_error=False to suppress the default behavior of raising
    an error for non-200 response codes.

tornado.httpserver

    HTTPServer now calls start_request with the correct arguments.
    This change is backwards-incompatible, afffecting any application
    which implemented HTTPServerConnectionDelegate by following
    the example of Application instead of the documented method
    signatures.
    HTTPServer now tolerates extra newlines which are sometimes
    inserted between requests on keep-alive connections.
    HTTPServer can now use keep-alive connections after a request
    with a chunked body.
    HTTPServer now always reports HTTP/1.1 instead of echoing the
    request version.

tornado.httputil

    New function tornado.httputil.split_host_and_port for parsing
    the netloc portion of URLs.
    The context argument to HTTPServerRequest is now optional, and
    if a context is supplied the remote_ip attribute is also
    optional.
    HTTPServerRequest.body is now always a byte string (previously
    the default empty body would be a unicode string on python 3).
    Header parsing now works correctly when newline-like unicode
    characters are present.
    Header parsing again supports both CRLF and bare LF line
    separators.
    Malformed multipart/form-data bodies will always be logged
    quietly instead of raising an unhandled exception; previously
    the behavior was inconsistent depending on the exact error.

tornado.ioloop

    The kqueue and select IOLoop implementations now report
    writeability correctly, fixing flow control in IOStream.
    When a new IOLoop is created, it automatically becomes âcurrentâ
    for the thread if there is not already a current instance.
    New method PeriodicCallback.is_running can be used to see
    whether the PeriodicCallback has been started.

tornado.iostream

    IOStream.start_tls now uses the server_hostname parameter for
    certificate validation.
    SSLIOStream will no longer consume 100% CPU after certain error
    conditions.
    SSLIOStream no longer logs EBADF errors during the handshake
    as they can result from nmap scans in certain modes.

tornado.options

    parse_config_file now always decodes the config file as utf8
    on Python 3.
    tornado.options.define more accurately finds the module defining
    the option.

tornado.platform.asyncio

    It is now possible to yield asyncio.Future objects in coroutines
    when the singledispatch library is available and
    tornado.platform.asyncio has been imported.
    New methods tornado.platform.asyncio.to_tornado_future and
    to_asyncio_future convert between the two librariesâ Future
    classes.

tornado.platform.twisted

    It is now possible to yield Deferred objects in coroutines when
    the singledispatch library is available and tornado.platform.twisted
    has been imported.

tornado.tcpclient

    TCPClient will no longer raise an exception due to an ill-timed
    timeout.

tornado.tcpserver

    TCPServer no longer ignores its read_chunk_size argument.

tornado.testing

    AsyncTestCase has better support for multiple exceptions.
    Previously it would silently swallow all but the last; now it
    raises the first and logs all the rest.
    AsyncTestCase now cleans up Subprocess state on tearDown when
    necessary.

tornado.web

    The asynchronous decorator now understands concurrent.futures.Future
    in addition to tornado.concurrent.Future.
    StaticFileHandler no longer logs a stack trace if the connection
    is closed while sending the file.
    RequestHandler.send_error now supports a reason keyword argument,
    similar to tornado.web.HTTPError.
    RequestHandler.locale now has a property setter.
    Application.add_handlers hostname matching now works correctly
    with IPv6 literals.
    Redirects for the Application default_host setting now match
    the request protocol instead of redirecting HTTPS to HTTP.
    Malformed _xsrf cookies are now ignored instead of causing
    uncaught exceptions.
    Application.start_request now has the same signature as
    HTTPServerConnectionDelegate.start_request.

tornado.websocket

    The tornado.websocket module now supports compression via the
    âpermessage-deflateâ extension. Override
    WebSocketHandler.get_compression_options to enable on the server
    side, and use the compression_options keyword argument to
    websocket_connect on the client side.
    WebSocketHandler no longer logs stack traces when the connection
    is closed.
    WebSocketHandler.open now accepts *args, **kw for consistency
    with RequestHandler.get and related methods.
    The Sec-WebSocket-Version header now includes all supported
    versions.
    websocket_connect now has a on_message_callback keyword argument
    for callback-style use without read_message().

diffstat:

 www/py-tornado/Makefile |  4 ++--
 www/py-tornado/PLIST    |  5 ++++-
 www/py-tornado/distinfo |  8 ++++----
 3 files changed, 10 insertions(+), 7 deletions(-)

diffs (44 lines):

diff -r 51eea958ba6f -r 1bc5077277db www/py-tornado/Makefile
--- a/www/py-tornado/Makefile   Sun Feb 08 16:27:36 2015 +0000
+++ b/www/py-tornado/Makefile   Sun Feb 08 16:31:48 2015 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.9 2014/09/14 17:58:25 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2015/02/08 16:31:48 wiz Exp $
 
-DISTNAME=      tornado-4.0.2
+DISTNAME=      tornado-4.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www
 MASTER_SITES=  http://pypi.python.org/packages/source/t/tornado/
diff -r 51eea958ba6f -r 1bc5077277db www/py-tornado/PLIST
--- a/www/py-tornado/PLIST      Sun Feb 08 16:27:36 2015 +0000
+++ b/www/py-tornado/PLIST      Sun Feb 08 16:31:48 2015 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2014/07/22 12:41:28 wiz Exp $
+@comment $NetBSD: PLIST,v 1.5 2015/02/08 16:31:48 wiz Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -117,6 +117,9 @@
 ${PYSITELIB}/tornado/test/__main__.py
 ${PYSITELIB}/tornado/test/__main__.pyc
 ${PYSITELIB}/tornado/test/__main__.pyo
+${PYSITELIB}/tornado/test/asyncio_test.py
+${PYSITELIB}/tornado/test/asyncio_test.pyc
+${PYSITELIB}/tornado/test/asyncio_test.pyo
 ${PYSITELIB}/tornado/test/auth_test.py
 ${PYSITELIB}/tornado/test/auth_test.pyc
 ${PYSITELIB}/tornado/test/auth_test.pyo
diff -r 51eea958ba6f -r 1bc5077277db www/py-tornado/distinfo
--- a/www/py-tornado/distinfo   Sun Feb 08 16:27:36 2015 +0000
+++ b/www/py-tornado/distinfo   Sun Feb 08 16:31:48 2015 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.8 2014/09/14 17:58:25 wiz Exp $
+$NetBSD: distinfo,v 1.9 2015/02/08 16:31:48 wiz Exp $
 
-SHA1 (tornado-4.0.2.tar.gz) = 6152ea61b4cdf9566f3974f30603ff51b527dd87
-RMD160 (tornado-4.0.2.tar.gz) = 57eb05b2fd8c4bedefbff4417e7cf2f0b418c8b3
-Size (tornado-4.0.2.tar.gz) = 315841 bytes
+SHA1 (tornado-4.1.tar.gz) = c6bd9ccd6d5449c36206ee83a02e8fc854158bf8
+RMD160 (tornado-4.1.tar.gz) = a9d7951114ddd16468088fd856d08019c0f5c6ea
+Size (tornado-4.1.tar.gz) = 332603 bytes



Home | Main Index | Thread Index | Old Index