py-twisted: updated to 22.8.0

Twisted 22.8.0 (2022-09-06)
===========================

Twisted 22.8.0rc1 release candidate was released on 2022-08-28 and there are
no changes between the release candidate and the final release.

Features
--------
- twisted.internet.defer.maybeDeferred will now schedule a coroutine result as asynchronous operation and return a Deferred that fires with the result of the coroutine.
- Twisted now works with Cryptography versions 37 and above, and as a result, its minimum TLS protocol version has been upgraded to TLSv1.2.

Bugfixes
--------
- ``twisted.internet.base.DelayedCall.__repr__`` will no longer raise ``AttributeError`` if the ``DelayedCall`` was created before debug mode was enabled.  As a side-effect, ``twisted.internet.base.DelayedCall.creator`` is now defined as ``None`` in cases where previously it was undefined.
- twisted.internet.iocpreactor.udp now properly re-queues its listener when there is a failure condition on the read from the socket.
- twisted.internet.defer.inlineCallbacks no longer causes confusing StopIteration tracebacks to be added to the top of tracebacks originating in triggered callbacks
- The typing of twisted.internet.task.react no longer constrains the type of argv.
- `ContextVar.reset()` now works correctly inside `inlineCallbacks` functions and coroutines.
- Implement twisted.python.failure._Code.co_positions for compatibility with Python 3.11.
- twisted.pair.tuntap._TUNSETIFF and ._TUNGETIFF values are now correct parisc, powerpc and sparc architectures.

Improved Documentation
----------------------
- The release process documentation was updated to include information about
  doing a security release.
- The development and policy documentation pages were moved into the same
  directory that is now placed inside the documentation root directory.

Deprecations and Removals
-------------------------
- Python 3.6 is no longer supported.
  Twisted 22.4.0 was the last version with support for Python 3.6.

Conch
-----

Bugfixes
~~~~~~~~
- twisted.conch.checkers.UNIXAuthorizedKeysFiles now uses the filesystem encoding to decode usernames before looking them up in the password database, so it works on Python 3.
- twisted.conch.ssh.SSHSession.request_env no longer gives a warning if the session does not implement ISessionSetEnv.
- The cftp command line (and `twisted.conch.scripts.cftp.SSHSession.extReceived`) no longer raises an unhandled error when receiving data on stderr from the server.

Web
---

Features
~~~~~~~~
- twisted.web.template.renderElement now combines consecutive, sychronously-available bytes up to a fixed size limit into a single string to pass to ``IRequest.write`` instead of passing them all separately.  This greatly reduces the number of chunks in the response.

Mail
----

Bugfixes
~~~~~~~~
- twisted.mail.maildir.MaildirMessage now use byte header to avoid incompatibility with the FileMessage which writes bytes not strings lines to a message file

Words
-----

Bugfixes
~~~~~~~~
- twisted.words.protocols.irc.IRCClient now splits overly long NOTICEs and NOTICEs containing \n before sending.

Names
-----

Bugfixes
~~~~~~~~
- twisted.names.dns logs unparsable messages rather than generating a Failure instance

Trial
-----

Features
~~~~~~~~
- ``trial --jobs=N --exitfirst`` is now supported.

Bugfixes
~~~~~~~~
- `trial --jobs=N --until-failure ...` now reports the correct number of tests run after each iteration.
- ``trial -jN ...`` will now pass errors and failures to ``IReporter`` methods as instances of ``WorkerException`` instead of ``str``.
This commit is contained in:
adam 2022-10-25 18:21:27 +00:00
parent 62e0d277d0
commit d904d1aedc
3 changed files with 20 additions and 16 deletions

View file

@ -1,9 +1,9 @@
# $NetBSD: Makefile.common,v 1.47 2022/08/10 08:59:35 adam Exp $
# $NetBSD: Makefile.common,v 1.48 2022/10/25 18:21:27 adam Exp $
#
# used by net/py-twisted/Makefile
# used by net/py-twisted-docs/Makefile
DISTNAME= Twisted-22.4.0
DISTNAME= Twisted-22.8.0
CATEGORIES= net python
MASTER_SITES= ${MASTER_SITE_PYPI:=T/Twisted/}

View file

@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.34 2022/08/10 08:59:35 adam Exp $
@comment $NetBSD: PLIST,v 1.35 2022/10/25 18:21:27 adam Exp $
bin/cftp-${PYVERSSUFFIX}
bin/ckeygen-${PYVERSSUFFIX}
bin/conch-${PYVERSSUFFIX}
@ -1358,12 +1358,7 @@ ${PYSITELIB}/twisted/python/_appdirs.pyo
${PYSITELIB}/twisted/python/_inotify.py
${PYSITELIB}/twisted/python/_inotify.pyc
${PYSITELIB}/twisted/python/_inotify.pyo
${PYSITELIB}/twisted/python/_pydoctor.py
${PYSITELIB}/twisted/python/_pydoctor.pyc
${PYSITELIB}/twisted/python/_pydoctor.pyo
${PYSITELIB}/twisted/python/_pydoctortemplates/common.html
${PYSITELIB}/twisted/python/_pydoctortemplates/footer.html
${PYSITELIB}/twisted/python/_pydoctortemplates/header.html
${PYSITELIB}/twisted/python/_pydoctortemplates/subheader.html
${PYSITELIB}/twisted/python/_release.py
${PYSITELIB}/twisted/python/_release.pyc
${PYSITELIB}/twisted/python/_release.pyo
@ -1490,9 +1485,6 @@ ${PYSITELIB}/twisted/python/test/test_htmlizer.pyo
${PYSITELIB}/twisted/python/test/test_inotify.py
${PYSITELIB}/twisted/python/test/test_inotify.pyc
${PYSITELIB}/twisted/python/test/test_inotify.pyo
${PYSITELIB}/twisted/python/test/test_pydoctor.py
${PYSITELIB}/twisted/python/test/test_pydoctor.pyc
${PYSITELIB}/twisted/python/test/test_pydoctor.pyo
${PYSITELIB}/twisted/python/test/test_release.py
${PYSITELIB}/twisted/python/test/test_release.pyc
${PYSITELIB}/twisted/python/test/test_release.pyo
@ -2007,6 +1999,9 @@ ${PYSITELIB}/twisted/trial/_dist/distreporter.pyo
${PYSITELIB}/twisted/trial/_dist/disttrial.py
${PYSITELIB}/twisted/trial/_dist/disttrial.pyc
${PYSITELIB}/twisted/trial/_dist/disttrial.pyo
${PYSITELIB}/twisted/trial/_dist/functional.py
${PYSITELIB}/twisted/trial/_dist/functional.pyc
${PYSITELIB}/twisted/trial/_dist/functional.pyo
${PYSITELIB}/twisted/trial/_dist/managercommands.py
${PYSITELIB}/twisted/trial/_dist/managercommands.pyc
${PYSITELIB}/twisted/trial/_dist/managercommands.pyo
@ -2016,6 +2011,9 @@ ${PYSITELIB}/twisted/trial/_dist/options.pyo
${PYSITELIB}/twisted/trial/_dist/test/__init__.py
${PYSITELIB}/twisted/trial/_dist/test/__init__.pyc
${PYSITELIB}/twisted/trial/_dist/test/__init__.pyo
${PYSITELIB}/twisted/trial/_dist/test/matchers.py
${PYSITELIB}/twisted/trial/_dist/test/matchers.pyc
${PYSITELIB}/twisted/trial/_dist/test/matchers.pyo
${PYSITELIB}/twisted/trial/_dist/test/test_distreporter.py
${PYSITELIB}/twisted/trial/_dist/test/test_distreporter.pyc
${PYSITELIB}/twisted/trial/_dist/test/test_distreporter.pyo
@ -2067,6 +2065,9 @@ ${PYSITELIB}/twisted/trial/test/detests.pyo
${PYSITELIB}/twisted/trial/test/erroneous.py
${PYSITELIB}/twisted/trial/test/erroneous.pyc
${PYSITELIB}/twisted/trial/test/erroneous.pyo
${PYSITELIB}/twisted/trial/test/matchers.py
${PYSITELIB}/twisted/trial/test/matchers.pyc
${PYSITELIB}/twisted/trial/test/matchers.pyo
${PYSITELIB}/twisted/trial/test/mockcustomsuite.py
${PYSITELIB}/twisted/trial/test/mockcustomsuite.pyc
${PYSITELIB}/twisted/trial/test/mockcustomsuite.pyo
@ -2094,6 +2095,9 @@ ${PYSITELIB}/twisted/trial/test/ordertests.pyo
${PYSITELIB}/twisted/trial/test/packages.py
${PYSITELIB}/twisted/trial/test/packages.pyc
${PYSITELIB}/twisted/trial/test/packages.pyo
${PYSITELIB}/twisted/trial/test/pyunitcases.py
${PYSITELIB}/twisted/trial/test/pyunitcases.pyc
${PYSITELIB}/twisted/trial/test/pyunitcases.pyo
${PYSITELIB}/twisted/trial/test/sample.py
${PYSITELIB}/twisted/trial/test/sample.pyc
${PYSITELIB}/twisted/trial/test/sample.pyo

View file

@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.43 2022/08/10 08:59:35 adam Exp $
$NetBSD: distinfo,v 1.44 2022/10/25 18:21:27 adam Exp $
BLAKE2s (Twisted-22.4.0.tar.gz) = 1c92a4f69eff4bd57762831ff337da185ca475ceff41d608232db9c0b40ba457
SHA512 (Twisted-22.4.0.tar.gz) = 53fbdf142f65b9dfa07276f422341aa45124e6d4f713e0ccedf2344879c9ed33102c49a73bf6e35fe543fa989a71fd3316eb7226a5106a79b8d09f342ea40aba
Size (Twisted-22.4.0.tar.gz) = 3744412 bytes
BLAKE2s (Twisted-22.8.0.tar.gz) = 2117d2d36379db73bf28c4be6044fa1a6b352d4d2a53c29e3807dbd0d81dce97
SHA512 (Twisted-22.8.0.tar.gz) = ce5690f51669c829d5cb3097bd4bf66471c157b2967d25ccbaad9dcae1f9bc4b7ec63a6a49cc0a30392adc5d8765a3137811294e3ffc3c4699f1f7d6c6490db8
Size (Twisted-22.8.0.tar.gz) = 3781326 bytes