summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2022-08-18 16:48:30 +0000
committeradam <adam@pkgsrc.org>2022-08-18 16:48:30 +0000
commitb885b435d0814b5c8aa3e85a1f8cfc5d895bf72f (patch)
tree55b955c66d8a76dda2ff3e91db4e1ac910922aec
parente15ec794c4063225041fa5d5833b87efa29f8257 (diff)
downloadpkgsrc-b885b435d0814b5c8aa3e85a1f8cfc5d895bf72f.tar.gz
py-tornado: updated to 6.2
What's new in Tornado 6.2.0 =========================== Jul 3, 2022 ----------- Deprecation notice ~~~~~~~~~~~~~~~~~~ - Python 3.10 has begun the process of significant changes to the APIs for managing the event loop. Calls to methods such as `asyncio.get_event_loop` may now raise `DeprecationWarning` if no event loop is running. This has significant impact on the patterns for initializing applications, and in particular invalidates patterns that have long been the norm in Tornado's documentation and actual usage. In the future (with some as-yet-unspecified future version of Python), the old APIs will be removed. The new recommended pattern is to start the event loop with `asyncio.run`. More detailed migration guides will be coming in the future. - The `.IOLoop` constructor is deprecated unless the ``make_current=False`` argument is used. Use `.IOLoop.current` when the loop is already running instead. - `.AsyncTestCase` (and `.AsyncHTTPTestCase`) are deprecated. Use `unittest.IsolatedAsyncioTestCase` instead. - Multi-process `.TCPServer.bind`/`.TCPServer.start` is deprecated. See `.TCPServer` docs for supported alternatives. - `.AnyThreadEventLoopPolicy` is deprecated. This class controls the creation of the "current" event loop so it will be removed when that concept is no longer supported. - `.IOLoop.make_current` and `.IOLoop.clear_current` are deprecated. In the future the concept of a "current" event loop as distinct from one that is currently running will be removed. - ``TwistedResolver`` and ``CaresResolver`` are deprecated and will be removed in Tornado 7.0. General changes ~~~~~~~~~~~~~~~ - The minimum supported Python version is now 3.7. - Wheels are now published with the Python stable ABI (``abi3``) for compatibility across versions of Python. - SSL certificate verfication and hostname checks are now enabled by default in more places (primarily in client-side usage of `.SSLIOStream`). - Various improvements to type hints throughout the package. - CI has moved from Travis and Appveyor to Github Actions. `tornado.gen` ~~~~~~~~~~~~~ - Fixed a bug in which ``WaitIterator.current_index`` could be incorrect. - ``tornado.gen.TimeoutError``` is now an alias for `asyncio.TimeoutError`. `tornado.http1connection` ~~~~~~~~~~~~~~~~~~~~~~~~~ - ``max_body_size`` may now be set to zero to disallow a non-empty body. - ``Content-Encoding: gzip`` is now recognized case-insensitively. `tornado.httpclient` ~~~~~~~~~~~~~~~~~~~~ - ``curl_httpclient`` now supports non-ASCII (ISO-8859-1) header values, same as ``simple_httpclient``. `tornado.ioloop` ~~~~~~~~~~~~~~~~ - `.PeriodicCallback` now understands coroutines and will not start multiple copies if a previous invocation runs too long. - `.PeriodicCallback` now accepts `datetime.timedelta` objects in addition to numbers of milliseconds. - Avoid logging "Event loop is closed" during shutdown-related race conditions. - Tornado no longer calls `logging.basicConfig` when starting an IOLoop; this has been unnecessary since Python 3.2 added a logger of last resort. - The `.IOLoop` constructor now accepts an ``asyncio_loop`` keyword argument to initialize with a specfied asyncio event loop. - It is now possible to construct an `.IOLoop` on one thread (with ``make_current=False``) and start it on a different thread. `tornado.iostream` ~~~~~~~~~~~~~~~~~~ - `.SSLIOStream` now supports reading more than 2GB at a time. - ``IOStream.write`` now supports typed `memoryview` objects. `tornado.locale` ~~~~~~~~~~~~~~~~ - `.load_gettext_translations` no longer logs errors when language directories exist but do not contain the expected file. `tornado.netutil` ~~~~~~~~~~~~~~~~~ - `.is_valid_ip` no longer raises exceptions when the input is too long. - The default resolver now uses the same methods (and thread pool) as `asyncio`. `tornado.tcpserver` ~~~~~~~~~~~~~~~~~~~ - `.TCPServer.listen` now supports more arguments to pass through to `.netutil.bind_sockets`. `tornado.testing` ~~~~~~~~~~~~~~~~~ - `.bind_unused_port` now takes an optional ``address`` argument. - Wrapped test methods now include the ``__wrapped__`` attribute. `tornado.web` ~~~~~~~~~~~~~ - When using a custom `.StaticFileHandler` subclass, the ``reset()`` method is now called on this subclass instead of the base class. - Improved handling of the ``Accept-Language`` header. - `.Application.listen` now supports more arguments to pass through to `.netutil.bind_sockets`. `tornado.websocket` ~~~~~~~~~~~~~~~~~~~ - `.WebSocketClientConnection.write_message` now accepts `dict` arguments for consistency with `.WebSocketHandler.write_message`. - `.WebSocketClientConnection.write_message` now raises an exception as documented if the connection is already closed.
-rw-r--r--www/py-tornado/Makefile4
-rw-r--r--www/py-tornado/PLIST7
-rw-r--r--www/py-tornado/distinfo8
3 files changed, 11 insertions, 8 deletions
diff --git a/www/py-tornado/Makefile b/www/py-tornado/Makefile
index faf4d34131f..21510fd18e0 100644
--- a/www/py-tornado/Makefile
+++ b/www/py-tornado/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.30 2022/02/05 09:00:25 adam Exp $
+# $NetBSD: Makefile,v 1.31 2022/08/18 16:48:30 adam Exp $
-DISTNAME= tornado-6.1
+DISTNAME= tornado-6.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=t/tornado/}
diff --git a/www/py-tornado/PLIST b/www/py-tornado/PLIST
index b847c4fea42..9b59b27b2dd 100644
--- a/www/py-tornado/PLIST
+++ b/www/py-tornado/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.16 2022/02/05 09:00:25 adam Exp $
+@comment $NetBSD: PLIST,v 1.17 2022/08/18 16:48:30 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -85,7 +85,7 @@ ${PYSITELIB}/tornado/routing.pyo
${PYSITELIB}/tornado/simple_httpclient.py
${PYSITELIB}/tornado/simple_httpclient.pyc
${PYSITELIB}/tornado/simple_httpclient.pyo
-${PYSITELIB}/tornado/speedups.so
+${PYSITELIB}/tornado/speedups.abi3.so
${PYSITELIB}/tornado/tcpclient.py
${PYSITELIB}/tornado/tcpclient.pyc
${PYSITELIB}/tornado/tcpclient.pyo
@@ -95,6 +95,9 @@ ${PYSITELIB}/tornado/tcpserver.pyo
${PYSITELIB}/tornado/template.py
${PYSITELIB}/tornado/template.pyc
${PYSITELIB}/tornado/template.pyo
+${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
diff --git a/www/py-tornado/distinfo b/www/py-tornado/distinfo
index 81792444336..4333e67cdbc 100644
--- a/www/py-tornado/distinfo
+++ b/www/py-tornado/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.22 2022/02/05 09:00:25 adam Exp $
+$NetBSD: distinfo,v 1.23 2022/08/18 16:48:30 adam Exp $
-BLAKE2s (tornado-6.1.tar.gz) = c2faa6ccd570234ad219207fa3ff424f4ea40d661908307e84fa9b3b093cb29d
-SHA512 (tornado-6.1.tar.gz) = 0ec1db1fad911182bda547c177a18b107b906cf66576443069e2b986cf041b3d4ebe08e5a168aa5cd3b56547f32f8b384bacaf74db89f582951d7b610b7494e8
-Size (tornado-6.1.tar.gz) = 497359 bytes
+BLAKE2s (tornado-6.2.tar.gz) = f2d809417a48b9c06c184350b595ea8656ce1d582408748a94558515fda33749
+SHA512 (tornado-6.2.tar.gz) = 157cbeee21bef29ac68b319329e7fc57db4c68dbb5a245e2171b7a28427ebbfe16b745e3bdbdec5912caae5eaa60c3cbbf8830c9c76fec5ffdf025e234468517
+Size (tornado-6.2.tar.gz) = 504849 bytes