Sun Feb 13 09:26:19 2022 UTC ()
py-twisted: updated to 22.1.0

Twisted 22.1.0 (2022-02-03)
===========================

Features
--------
- Python 3.10 is now a supported platform
- Type annotations have been added to the twisted.python.fakepwd module.

Bugfixes
--------
- twisted.internet.defer.inlineCallbacks has an improved type annotation, to avoid typing errors when it is used on a function which returns a non-None result.
- ``twisted.internet.base.DelayedCall.__repr__`` and ``twisted.internet.task.LoopingCall.__repr__`` had the changes from 10155 reverted to accept non-function callables.
- Revert the removal of .whl building that was done as part of 10177.
- The type annotation of the host parameter to twisted.internet.interfaces.IReactorTCP.connectTCP has been corrected from bytes to str.
- Deprecated ``twisted.python.threading.ThreadPool.currentThread()`` in favor of ``threading.current_thread()``.
  Switched ``twisted.python.threading.ThreadPool.currentThread()`` and ``twisted.python.threadable.getThreadID()`` to use `threading.current_thread()`` to avoid the deprecation warnings introduced for ``threading.currentThread()`` in Python 3.10.

Improved Documentation
----------------------
- twisted.internet.utils.runWithWarningsSupressed behavior of waiting on deferreds has been documented.
- Sync API docs templates with pydoctor 21.9.0 release, using new theming capabilities.

Bugfixes
--------
- SSHTransportBase.ssh_KEXINIT now uses the remote peer preferred MAC list for negotiation. In previous versions  it was only using the local preferred MAC list.

Features
~~~~~~~~
- twisted.conch.ssh now supports SSH extension negotiation (RFC 8308).

Bugfixes
~~~~~~~~
- twisted.conch now uses constant-time comparisons for MACs.
- twisted.conch.ssh.filetransfer.FileTransferServer will now return an ENOENT error status if an SFTP client tries to close an unrecognized file handle.
- twisted.web.client.RedirectAgent and twisted.web.client.BrowserLikeRedirectAgent now properly remove sensitive headers when redirecting to a different origin.

Improved Documentation
----------------------
- Add type annotations for twisted.web.client.readBody.

Deprecations and Removals
~~~~~~~~~~~~~~~~~~~~~~~~~
- twisted.web.client.getPage, twisted.web.client.downladPage, and the associated implementation classes (HTTPPageGetter, HTTPPageDownloader, HTTPClientFactory, HTTPDownloader) have been removed because they do not segregate cookies by domain. They were deprecated in Twisted 16.7.0 in favor of twisted.web.client.Agent. GHSA-92x2-jw7w-xvvx.

Mail
----
No significant changes.

Words
-----
No significant changes.

Names
-----
No significant changes.

Trial
-----

Bugfixes
~~~~~~~~
- trial.runner.filenameToModule now sets the correct module.__name__ and sys.modules key


(adam)
diff -r1.48 -r1.49 pkgsrc/net/py-twisted/Makefile
diff -r1.45 -r1.46 pkgsrc/net/py-twisted/Makefile.common
diff -r1.41 -r1.42 pkgsrc/net/py-twisted/distinfo

cvs diff -r1.48 -r1.49 pkgsrc/net/py-twisted/Makefile (expand / switch to unified diff)

--- pkgsrc/net/py-twisted/Makefile 2022/02/13 08:54:22 1.48
+++ pkgsrc/net/py-twisted/Makefile 2022/02/13 09:26:19 1.49
@@ -1,26 +1,28 @@ @@ -1,26 +1,28 @@
1# $NetBSD: Makefile,v 1.48 2022/02/13 08:54:22 wiz Exp $ 1# $NetBSD: Makefile,v 1.49 2022/02/13 09:26:19 adam Exp $
 2
 3.include "../../net/py-twisted/Makefile.common"
2 4
3PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl} 5PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
4COMMENT= Framework for writing networked applications 6COMMENT= Framework for writing networked applications
5.include "../../net/py-twisted/Makefile.common" 
6 7
7DEPENDS+= ${PYPKGPREFIX}-attrs>=17.4.0:../../devel/py-attrs 8DEPENDS+= ${PYPKGPREFIX}-ZopeInterface>=4.4.2:../../devel/py-ZopeInterface
8DEPENDS+= ${PYPKGPREFIX}-automat>=0.3.0:../../devel/py-automat 9DEPENDS+= ${PYPKGPREFIX}-attrs>=19.2.0:../../devel/py-attrs
 10DEPENDS+= ${PYPKGPREFIX}-automat>=0.8.0:../../devel/py-automat
9DEPENDS+= ${PYPKGPREFIX}-constantly>=15.1:../../devel/py-constantly 11DEPENDS+= ${PYPKGPREFIX}-constantly>=15.1:../../devel/py-constantly
10DEPENDS+= ${PYPKGPREFIX}-hamcrest>=1.9.0:../../devel/py-hamcrest 12DEPENDS+= ${PYPKGPREFIX}-hamcrest>=1.9.0:../../devel/py-hamcrest
11DEPENDS+= ${PYPKGPREFIX}-hyperlink>=17.1.1:../../www/py-hyperlink 13DEPENDS+= ${PYPKGPREFIX}-hyperlink>=17.1.1:../../www/py-hyperlink
12DEPENDS+= ${PYPKGPREFIX}-incremental>=16.10.1:../../devel/py-incremental 14DEPENDS+= ${PYPKGPREFIX}-incremental>=21.3.0:../../devel/py-incremental
13DEPENDS+= ${PYPKGPREFIX}-ZopeInterface>=4.4.2:../../devel/py-ZopeInterface 15DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=3.6.5:../../devel/py-typing-extensions
14# TLS 16# TLS
15DEPENDS+= ${PYPKGPREFIX}-OpenSSL>=16.0.0:../../security/py-OpenSSL 17DEPENDS+= ${PYPKGPREFIX}-OpenSSL>=16.0.0:../../security/py-OpenSSL
16DEPENDS+= ${PYPKGPREFIX}-service_identity>=18.1.0:../../security/py-service_identity 18DEPENDS+= ${PYPKGPREFIX}-service_identity>=18.1.0:../../security/py-service_identity
17DEPENDS+= ${PYPKGPREFIX}-idna>=2.4:../../www/py-idna 19DEPENDS+= ${PYPKGPREFIX}-idna>=2.4:../../www/py-idna
18 20
19REPLACE_PYTHON+= src/twisted/mail/test/pop3testserver.py 21REPLACE_PYTHON+= src/twisted/mail/test/pop3testserver.py
20REPLACE_PYTHON+= src/twisted/trial/test/scripttest.py 22REPLACE_PYTHON+= src/twisted/trial/test/scripttest.py
21 23
22USE_LANGUAGES= c99 24USE_LANGUAGES= c99
23 25
24USE_PKG_RESOURCES= yes 26USE_PKG_RESOURCES= yes
25 27
26PYTHON_VERSIONS_INCOMPATIBLE= 27 28PYTHON_VERSIONS_INCOMPATIBLE= 27

cvs diff -r1.45 -r1.46 pkgsrc/net/py-twisted/Makefile.common (expand / switch to unified diff)

--- pkgsrc/net/py-twisted/Makefile.common 2022/02/05 13:16:13 1.45
+++ pkgsrc/net/py-twisted/Makefile.common 2022/02/13 09:26:19 1.46
@@ -1,16 +1,15 @@ @@ -1,16 +1,15 @@
1# $NetBSD: Makefile.common,v 1.45 2022/02/05 13:16:13 js Exp $ 1# $NetBSD: Makefile.common,v 1.46 2022/02/13 09:26:19 adam Exp $
2# 2#
3# used by net/py-twisted/Makefile 3# used by net/py-twisted/Makefile
4# used by net/py-twisted-docs/Makefile 4# used by net/py-twisted-docs/Makefile
5 5
6DISTNAME= Twisted-22.1.0rc1 6DISTNAME= Twisted-22.1.0
7CATEGORIES= net python 7CATEGORIES= net python
8MASTER_SITES= ${MASTER_SITE_PYPI:=T/Twisted/} 8MASTER_SITES= ${MASTER_SITE_PYPI:=T/Twisted/}
9EXTRACT_SUFX= .tar.gz 
10 9
11MAINTAINER?= pkgsrc-users@NetBSD.org 10MAINTAINER?= pkgsrc-users@NetBSD.org
12HOMEPAGE= https://www.twistedmatrix.com/ 11HOMEPAGE= https://www.twistedmatrix.com/
13LICENSE= mit 12LICENSE= mit
14 13
15DISTINFO_FILE?= ${.CURDIR}/../../net/py-twisted/distinfo 14DISTINFO_FILE?= ${.CURDIR}/../../net/py-twisted/distinfo
16PATCHDIR?= ${.CURDIR}/../../net/py-twisted/patches 15#PATCHDIR?= ${.CURDIR}/../../net/py-twisted/patches

cvs diff -r1.41 -r1.42 pkgsrc/net/py-twisted/distinfo (expand / switch to unified diff)

--- pkgsrc/net/py-twisted/distinfo 2022/02/05 13:16:13 1.41
+++ pkgsrc/net/py-twisted/distinfo 2022/02/13 09:26:19 1.42
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.41 2022/02/05 13:16:13 js Exp $ 1$NetBSD: distinfo,v 1.42 2022/02/13 09:26:19 adam Exp $
2 2
3BLAKE2s (Twisted-22.1.0rc1.tar.gz) = d773054ca8ba8b2e0a04d931b721e40935284a01274026f25d919ed7f4ae0931 3BLAKE2s (Twisted-22.1.0.tar.gz) = 12359d9a322bd20b668260ec5b85e2e67d33795541e43fe1643a9b4fff755029
4SHA512 (Twisted-22.1.0rc1.tar.gz) = 08e0fc9f973f79a3592cbd9a741b5a7f44df76dd98129818da3200d19290bfb2ee288506ed901ccd96ed5dcb8a1789654c20da8c022c7bbd52329374b7d0c996 4SHA512 (Twisted-22.1.0.tar.gz) = b16603c15e99ddf845f42974e43c885800165158fb160238c00590e1ad22f9850b578de7bb23313040714667769af346d5dc89eada6051873884ee0a3fa01e97
5Size (Twisted-22.1.0rc1.tar.gz) = 3730403 bytes 5Size (Twisted-22.1.0.tar.gz) = 3729983 bytes