Subject: CVS commit: pkgsrc/net/py-twisted
From: Adam Ciarcinski
Date: 2022-10-25 20:21:27
Message id: 20221025182127.8F80BFA90@cvs.NetBSD.org

Log Message:
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``.

Files:
RevisionActionfile
1.48modifypkgsrc/net/py-twisted/Makefile.common
1.35modifypkgsrc/net/py-twisted/PLIST
1.44modifypkgsrc/net/py-twisted/distinfo