Permalink
Browse files

Update to 4.0. Add py-curl dependency for curl_httpclient.

Highlights

    The tornado.web.stream_request_body decorator allows large
    files to be uploaded with limited memory usage.
    Coroutines are now faster and are used extensively throughout
    Tornado itself. More methods now return Futures, including most
    IOStream methods and RequestHandler.flush.
    Many user-overridden methods are now allowed to return a Future
    for flow control.
    HTTP-related code is now shared between the tornado.httpserver,
    tornado.simple_httpclient and tornado.wsgi modules, making
    support for features such as chunked and gzip encoding more
    consistent. HTTPServer now uses new delegate interfaces defined
    in tornado.httputil in addition to its old single-callback
    interface.
    New module tornado.tcpclient creates TCP connections with
    non-blocking DNS, SSL handshaking, and support for IPv6.

Backwards-compatibility notes

    tornado.concurrent.Future is no longer thread-safe; use
    concurrent.futures.Future when thread-safety is needed.
    Tornado now depends on the certifi package instead of bundling
    its own copy of the Mozilla CA list. This will be installed
    automatically when using pip or easy_install.
    This version includes the changes to the secure cookie format
    first introduced in version 3.2.1, and the xsrf token change
    in version 3.2.2. If you are upgrading from an earlier version,
    see those versions' release notes.
    WebSocket connections from other origin sites are now rejected
    by default. To accept cross-origin websocket connections,
    override the new method WebSocketHandler.check_origin.
    WebSocketHandler no longer supports the old draft 76 protocol
    (this mainly affects Safari 5.x browsers). Applications should
    use non-websocket workarounds for these browsers.
    Authors of alternative IOLoop implementations should see the
    changes to IOLoop.add_handler in this release.
    The RequestHandler.async_callback and WebSocketHandler.async_callback
    wrapper functions have been removed; they have been obsolete
    for a long time due to stack contexts (and more recently
    coroutines).
    curl_httpclient now requires a minimum of libcurl version 7.21.1
    and pycurl 7.18.2.
    Support for RequestHandler.get_error_html has been removed;
    override RequestHandler.write_error instead.
  • Loading branch information...
1 parent d923a18 commit 866a5d775b15d3f5514019667167eb751915095c wiz committed Jul 22, 2014
Showing with 22 additions and 9 deletions.
  1. +4 −2 www/py-tornado/Makefile
  2. +14 −3 www/py-tornado/PLIST
  3. +4 −4 www/py-tornado/distinfo
View
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.6 2014/06/09 12:33:43 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2014/07/22 12:41:28 wiz Exp $
-DISTNAME= tornado-3.2.2
+DISTNAME= tornado-4.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= www
MASTER_SITES= http://pypi.python.org/packages/source/t/tornado/
@@ -10,6 +10,8 @@ HOMEPAGE= http://www.tornadoweb.org/
COMMENT= Fast and non-blocking web framework
LICENSE= apache-2.0
+DEPENDS+= ${PYPKGPREFIX}-curl>=7.18.2:../../www/py-curl
+
REPLACE_PYTHON+= setup.py
REPLACE_PYTHON+= tornado/*.py
REPLACE_PYTHON+= tornado/platform/*.py
View
@@ -1,8 +1,8 @@
-@comment $NetBSD: PLIST,v 1.3 2014/01/27 19:58:33 wiz Exp $
+@comment $NetBSD: PLIST,v 1.4 2014/07/22 12:41:28 wiz Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PLIST.py2x}${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/tornado/__init__.py
${PYSITELIB}/tornado/__init__.pyc
@@ -13,7 +13,6 @@ ${PYSITELIB}/tornado/auth.pyo
${PYSITELIB}/tornado/autoreload.py
${PYSITELIB}/tornado/autoreload.pyc
${PYSITELIB}/tornado/autoreload.pyo
-${PYSITELIB}/tornado/ca-certificates.crt
${PYSITELIB}/tornado/concurrent.py
${PYSITELIB}/tornado/concurrent.pyc
${PYSITELIB}/tornado/concurrent.pyo
@@ -26,6 +25,9 @@ ${PYSITELIB}/tornado/escape.pyo
${PYSITELIB}/tornado/gen.py
${PYSITELIB}/tornado/gen.pyc
${PYSITELIB}/tornado/gen.pyo
+${PYSITELIB}/tornado/http1connection.py
+${PYSITELIB}/tornado/http1connection.pyc
+${PYSITELIB}/tornado/http1connection.pyo
${PYSITELIB}/tornado/httpclient.py
${PYSITELIB}/tornado/httpclient.pyc
${PYSITELIB}/tornado/httpclient.pyo
@@ -99,6 +101,9 @@ ${PYSITELIB}/tornado/speedups.so
${PYSITELIB}/tornado/stack_context.py
${PYSITELIB}/tornado/stack_context.pyc
${PYSITELIB}/tornado/stack_context.pyo
+${PYSITELIB}/tornado/tcpclient.py
+${PYSITELIB}/tornado/tcpclient.pyc
+${PYSITELIB}/tornado/tcpclient.pyo
${PYSITELIB}/tornado/tcpserver.py
${PYSITELIB}/tornado/tcpserver.pyc
${PYSITELIB}/tornado/tcpserver.pyo
@@ -109,6 +114,9 @@ ${PYSITELIB}/tornado/test/README
${PYSITELIB}/tornado/test/__init__.py
${PYSITELIB}/tornado/test/__init__.pyc
${PYSITELIB}/tornado/test/__init__.pyo
+${PYSITELIB}/tornado/test/__main__.py
+${PYSITELIB}/tornado/test/__main__.pyc
+${PYSITELIB}/tornado/test/__main__.pyo
${PYSITELIB}/tornado/test/auth_test.py
${PYSITELIB}/tornado/test/auth_test.pyc
${PYSITELIB}/tornado/test/auth_test.pyo
@@ -175,6 +183,9 @@ ${PYSITELIB}/tornado/test/stack_context_test.pyc
${PYSITELIB}/tornado/test/stack_context_test.pyo
${PYSITELIB}/tornado/test/static/dir/index.html
${PYSITELIB}/tornado/test/static/robots.txt
+${PYSITELIB}/tornado/test/tcpclient_test.py
+${PYSITELIB}/tornado/test/tcpclient_test.pyc
+${PYSITELIB}/tornado/test/tcpclient_test.pyo
${PYSITELIB}/tornado/test/template_test.py
${PYSITELIB}/tornado/test/template_test.pyc
${PYSITELIB}/tornado/test/template_test.pyo
View
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.5 2014/06/09 12:33:43 wiz Exp $
+$NetBSD: distinfo,v 1.6 2014/07/22 12:41:28 wiz Exp $
-SHA1 (tornado-3.2.2.tar.gz) = ede9603adcceaf1b6085fd5a973cec50c7391888
-RMD160 (tornado-3.2.2.tar.gz) = d1cd5f74dd32a618deb0c3e55661692a1c47f0de
-Size (tornado-3.2.2.tar.gz) = 405596 bytes
+SHA1 (tornado-4.0.tar.gz) = 466e73db0d9e7a030f6933346e191637ae6ddd8a
+RMD160 (tornado-4.0.tar.gz) = 89dd21f39567d645456d727854be7060e95b7cd0
+Size (tornado-4.0.tar.gz) = 313742 bytes

0 comments on commit 866a5d7

Please sign in to comment.