py-tornado: updated to 6.4

What's new in Tornado 6.4.0
===========================

Nov 28, 2023
------------

General Changes
~~~~~~~~~~~~~~~

- Python 3.12 is now supported. Older versions of Tornado will work on Python 3.12 but may log
  deprecation warnings.

Deprecation Notices
~~~~~~~~~~~~~~~~~~~

- `.IOLoop.add_callback_from_signal` is suspected to have been broken since Tornado 5.0 and will be
  removed in version 7.0.  Use `asyncio.loop.add_signal_handler` instead.
- The ``client_secret`` argument to `.OAuth2Mixin.authorize_redirect` is deprecated and will be
  removed in Tornado 7.0. This argument has never been used and other similar methods in this module
  don't have it.
- `.TwitterMixin` is deprecated and will be removed in the future.

``tornado.auth``
~~~~~~~~~~~~~~~~

- The ``client_secret`` argument to `.OAuth2Mixin.authorize_redirect` is deprecated and will be
  removed in Tornado 7.0. This argument has never been used and other similar methods in this module
  don't have it.
- `.TwitterMixin` is deprecated and will be removed in the future.

``tornado.autoreload``
~~~~~~~~~~~~~~~~~~~~~~

- Autoreload can now be used when the program is run as a directory rather than a file or module.
- New CLI flag ``--until-success`` re-runs the program on any failure but stops after the first
  successful run.

``tornado.concurrent``
~~~~~~~~~~~~~~~~~~~~~~

- Fixed reference cycles that could lead to increased memory usage.

``tornado.escape``
~~~~~~~~~~~~~~~~~~

- Several methods in this module now simply pass through to their equivalents in the standard
  library.

``tornado.gen``
~~~~~~~~~~~~~~~

- This module now holds a strong reference to all running `asyncio.Task` objects it creates. This
  prevents premature garbage collection which could cause warnings like "Task was destroyed but it
  is pending!".

``tornado.ioloop``
~~~~~~~~~~~~~~~~~~

- `.IOLoop.add_callback_from_signal` is suspected to have been broken since Tornado 5.0 and will be
  removed in version 7.0.  Use `asyncio.loop.add_signal_handler` instead.
- The type annotation for `.IOLoop.run_in_executor` has been updated to match the updated signature
  of `asyncio.loop.run_in_executor`.
- Fixed reference cycles that could lead to increased memory usage.

``tornado.locale``
~~~~~~~~~~~~~~~~~~

- `.format_timestamp` now supports "aware" datetime objects.

``tornado.platform.asyncio``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- The shutdown protocol for `.AddThreadSelectorEventLoop` now requires the use of `asyncio.run` or
  `asyncio.loop.shutdown_asyncgens` to avoid leaking the thread.
- Introduced `.SelectorThread` class containing the core functionality of
  `.AddThreadSelectorEventLoop`.
- The ``close()`` method of `.AddThreadSelectorEventLoop` is now idempotent.

``tornado.web``
~~~~~~~~~~~~~~~

- `.StaticFileHandler.get_modified_time` now supports "aware" datetime objects and the default
  implementation now returns aware objects.

``tornado.websocket``
~~~~~~~~~~~~~~~~~~~~~

- Unclosed client connections now reliably log a warning. Previously the warning was dependent on
  garbage collection and whether the ``ping_interval`` option was used.
- The ``subprotocols`` argument to `.WebSocketClientConnection` now defaults to None instead of an
  empty list (which was mutable and reused)
This commit is contained in:
adam 2023-12-07 17:08:05 +00:00
parent 06aff22b1f
commit 41a31d3c39
3 changed files with 18 additions and 16 deletions

View File

@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.34 2023/08/12 12:59:54 adam Exp $
# $NetBSD: Makefile,v 1.35 2023/12/07 17:08:05 adam Exp $
DISTNAME= tornado-6.3.3
DISTNAME= tornado-6.4
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=t/tornado/}
@ -10,12 +10,10 @@ HOMEPAGE= https://www.tornadoweb.org/
COMMENT= Fast and non-blocking web framework
LICENSE= apache-2.0
DEPENDS+= ${PYPKGPREFIX}-curl>=7.18.2:../../www/py-curl
TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
PYTHON_VERSIONS_INCOMPATIBLE= 27
do-test:
cd ${WRKSRC} && ${PYTHONBIN} -m tornado.test.runtests
.include "../../lang/python/egg.mk"
.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"

View File

@ -1,8 +1,9 @@
@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
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
@comment $NetBSD: PLIST,v 1.18 2023/12/07 17:08:05 adam Exp $
${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
${PYSITELIB}/tornado/__init__.py
${PYSITELIB}/tornado/__init__.pyc
${PYSITELIB}/tornado/__init__.pyo
@ -110,6 +111,9 @@ ${PYSITELIB}/tornado/test/auth_test.pyo
${PYSITELIB}/tornado/test/autoreload_test.py
${PYSITELIB}/tornado/test/autoreload_test.pyc
${PYSITELIB}/tornado/test/autoreload_test.pyo
${PYSITELIB}/tornado/test/circlerefs_test.py
${PYSITELIB}/tornado/test/circlerefs_test.pyc
${PYSITELIB}/tornado/test/circlerefs_test.pyo
${PYSITELIB}/tornado/test/concurrent_test.py
${PYSITELIB}/tornado/test/concurrent_test.pyc
${PYSITELIB}/tornado/test/concurrent_test.pyo

View File

@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.26 2023/08/12 12:59:54 adam Exp $
$NetBSD: distinfo,v 1.27 2023/12/07 17:08:05 adam Exp $
BLAKE2s (tornado-6.3.3.tar.gz) = cced5ba8789f1d0102dbb16a6c149096c444664956f7385459ec93716b3b4aec
SHA512 (tornado-6.3.3.tar.gz) = 3d4b0f933f09b8f8d5de5f93662de73d97a0ed98f5b56e0810d803d537092c74e89315dc9aaa0af85f91e18eca64cf429f6f73bce29523ce56738398fa24a597
Size (tornado-6.3.3.tar.gz) = 509872 bytes
BLAKE2s (tornado-6.4.tar.gz) = 60c8a7ae04c1c73ad973a9a1d49f68ac706a2de69001e7fc61a3d84832f45ef8
SHA512 (tornado-6.4.tar.gz) = c063509d4c385e410c63cccdc1e9c66aa2bb739473667ede56cb801b7379b910c8059dec831d609109f3076222b588b257afd960dffa422d7a872867dcdda7c7
Size (tornado-6.4.tar.gz) = 498845 bytes