pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/net/py-twisted



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed May 20 06:32:56 UTC 2026

Modified Files:
        pkgsrc/net/py-twisted: Makefile Makefile.common PLIST distinfo

Log Message:
py-twisted: updated to 26.4.0

Twisted 26.4.0 (2026-05-11)

This is the last release with support for Python 3.9.
No changes since 26.4.0rc2.

Security

- twisted.names was fix for Denial of Service (DoS) attack via resource exhaustion during DNS name decompression.
  Reported and fixed by Tomas Illuminati Balbin CVE-2026-42304

Features

- twisted.internet.ssl.CertificateOptions has a new constructor argument, contextForServerName, which takes a callback that will get invoked when a client sends a server name indication, with the 
sent servername, and returns a new OpenSSL.SSL.Context that the connection will switch to.
- twisted.internet.endpoints.serverFromString now supports the `tls` endpoint
  type, which allows you to do `twist web
  --listen=tls:.../certbot-dir/config/live` pointed at a certbot live
  configuration directory and have your certbot certificates automatically
  discovered and served appropriately.
- ``twisted.internet.reactor`` now has type annotations and will appear to be an object of an appropriate type, allowing for idiomatic common usages with correct type information.
- twisted.conch.ssh.SSHUserAuthServer now supports the security key ssh types "sk-ecdsa-sha2-nistp256%openssh.com@localhost" and "sk-ssh-ed25519%openssh.com@localhost" and extracting the 
`application` property from these new key types.

Bugfixes

- twisted.mail.smtp will now return a meaningful Failure when TLS validation fails.
- TLS version range constraints passed to twisted.internet.ssl.CertificateOptions are now properly respected rather than excluding the version being passed as the desired constraint.
- A potential reference cycle that might cause intermittent memory spikes while
  using twisted.internet.defer.inlineCallbacks was removed.
- Trial no longer emits the error `RuntimeWarning: TestResult has no addDuration method` when running PyUnit tests.
- twisted.python.rebuild.rebuild() now handles changes to ``sys.modules`` gracefully. Prior to the change, it could possibly raise a "dictionary changed size during iteration" error if the module 
list changed.
- twisted.internet.protocol.ReconnectingClientFactory: Don't multiply by ``factor`` for initial delay, but use ``initialDelay`` directly.
- twisted.internet.ssl and twisted.protocols.tls no longer mutate the pyOpenSSL context after creating pyOpenSSL connections, maintaining compatibility with an upcoming version of pyOpenSSL and 
increasing reliability (possibly even fixing a very rare segfault)
- `twisted.internet.testing.MemoryReactor.callWhenRunning` now invokes the callback immediately, if already started.
- Twisted now correctly detects EOF on OpenSSL 4.

Improved Documentation

- The example code from the documentation describing how to create a custom DNS server was updated to Python3.
- Type annotations now use modern PEP 585 built-in generics and PEP 604 union syntax throughout the project.

Deprecations and Removals

- Support for the obsolete TLS "Next Protocol Negotiation" has been removed from
  twisted.protocols.tls.
- Remove support for python3.8.


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 pkgsrc/net/py-twisted/Makefile
cvs rdiff -u -r1.55 -r1.56 pkgsrc/net/py-twisted/Makefile.common
cvs rdiff -u -r1.42 -r1.43 pkgsrc/net/py-twisted/PLIST
cvs rdiff -u -r1.51 -r1.52 pkgsrc/net/py-twisted/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/py-twisted/Makefile
diff -u pkgsrc/net/py-twisted/Makefile:1.58 pkgsrc/net/py-twisted/Makefile:1.59
--- pkgsrc/net/py-twisted/Makefile:1.58 Fri Jun 13 06:56:56 2025
+++ pkgsrc/net/py-twisted/Makefile      Wed May 20 06:32:56 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.58 2025/06/13 06:56:56 adam Exp $
+# $NetBSD: Makefile,v 1.59 2026/05/20 06:32:56 adam Exp $
 
 .include "../../net/py-twisted/Makefile.common"
 
@@ -33,13 +33,10 @@ TEST_DEPENDS+=      ${PYPKGPREFIX}-hypothesis
 REPLACE_PYTHON+=       src/twisted/mail/test/pop3testserver.py
 REPLACE_PYTHON+=       src/twisted/trial/test/scripttest.py
 
-USE_LANGUAGES= c99
+USE_CC_FEATURES=       c99
+USE_LANGUAGES=         c
 
-post-install:
-.for bin in cftp ckeygen conch mailmail pyhtmlizer tkconch trial twist twistd
-       cd ${DESTDIR}${PREFIX}/bin && \
-       ${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE}
-.endfor
+PY_RENAME_BINARIES=    cftp ckeygen conch mailmail pyhtmlizer tkconch trial twist twistd
 
 .include "../../lang/python/application.mk"
 .include "../../lang/python/wheel.mk"

Index: pkgsrc/net/py-twisted/Makefile.common
diff -u pkgsrc/net/py-twisted/Makefile.common:1.55 pkgsrc/net/py-twisted/Makefile.common:1.56
--- pkgsrc/net/py-twisted/Makefile.common:1.55  Fri Jun 13 06:56:56 2025
+++ pkgsrc/net/py-twisted/Makefile.common       Wed May 20 06:32:56 2026
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile.common,v 1.55 2025/06/13 06:56:56 adam Exp $
+# $NetBSD: Makefile.common,v 1.56 2026/05/20 06:32:56 adam Exp $
 #
 # used by net/py-twisted/Makefile
 # used by net/py-twisted-docs/Makefile
 
-DISTNAME=      twisted-25.5.0
+DISTNAME=      twisted-26.4.0
 CATEGORIES=    net python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=T/Twisted/}
 

Index: pkgsrc/net/py-twisted/PLIST
diff -u pkgsrc/net/py-twisted/PLIST:1.42 pkgsrc/net/py-twisted/PLIST:1.43
--- pkgsrc/net/py-twisted/PLIST:1.42    Fri Jun 13 06:56:56 2025
+++ pkgsrc/net/py-twisted/PLIST Wed May 20 06:32:56 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.42 2025/06/13 06:56:56 adam Exp $
+@comment $NetBSD: PLIST,v 1.43 2026/05/20 06:32:56 adam Exp $
 bin/cftp-${PYVERSSUFFIX}
 bin/ckeygen-${PYVERSSUFFIX}
 bin/conch-${PYVERSSUFFIX}
@@ -295,6 +295,9 @@ ${PYSITELIB}/twisted/conch/test/keydata.
 ${PYSITELIB}/twisted/conch/test/loopback.py
 ${PYSITELIB}/twisted/conch/test/loopback.pyc
 ${PYSITELIB}/twisted/conch/test/loopback.pyo
+${PYSITELIB}/twisted/conch/test/sk_dummy.py
+${PYSITELIB}/twisted/conch/test/sk_dummy.pyc
+${PYSITELIB}/twisted/conch/test/sk_dummy.pyo
 ${PYSITELIB}/twisted/conch/test/test_address.py
 ${PYSITELIB}/twisted/conch/test/test_address.pyc
 ${PYSITELIB}/twisted/conch/test/test_address.pyo
@@ -490,6 +493,9 @@ ${PYSITELIB}/twisted/internet/_producer_
 ${PYSITELIB}/twisted/internet/_resolver.py
 ${PYSITELIB}/twisted/internet/_resolver.pyc
 ${PYSITELIB}/twisted/internet/_resolver.pyo
+${PYSITELIB}/twisted/internet/_service_identity.py
+${PYSITELIB}/twisted/internet/_service_identity.pyc
+${PYSITELIB}/twisted/internet/_service_identity.pyo
 ${PYSITELIB}/twisted/internet/_signals.py
 ${PYSITELIB}/twisted/internet/_signals.pyc
 ${PYSITELIB}/twisted/internet/_signals.pyo
@@ -1266,6 +1272,12 @@ ${PYSITELIB}/twisted/positioning/test/te
 ${PYSITELIB}/twisted/protocols/__init__.py
 ${PYSITELIB}/twisted/protocols/__init__.pyc
 ${PYSITELIB}/twisted/protocols/__init__.pyo
+${PYSITELIB}/twisted/protocols/_sni.py
+${PYSITELIB}/twisted/protocols/_sni.pyc
+${PYSITELIB}/twisted/protocols/_sni.pyo
+${PYSITELIB}/twisted/protocols/_tls_legacy.py
+${PYSITELIB}/twisted/protocols/_tls_legacy.pyc
+${PYSITELIB}/twisted/protocols/_tls_legacy.pyo
 ${PYSITELIB}/twisted/protocols/amp.py
 ${PYSITELIB}/twisted/protocols/amp.pyc
 ${PYSITELIB}/twisted/protocols/amp.pyo
@@ -1690,6 +1702,9 @@ ${PYSITELIB}/twisted/tap/socks.pyo
 ${PYSITELIB}/twisted/test/__init__.py
 ${PYSITELIB}/twisted/test/__init__.pyc
 ${PYSITELIB}/twisted/test/__init__.pyo
+${PYSITELIB}/twisted/test/_ca_with_intermediate.py
+${PYSITELIB}/twisted/test/_ca_with_intermediate.pyc
+${PYSITELIB}/twisted/test/_ca_with_intermediate.pyo
 ${PYSITELIB}/twisted/test/cert.pem.no_trailing_newline
 ${PYSITELIB}/twisted/test/crash_test_dummy.py
 ${PYSITELIB}/twisted/test/crash_test_dummy.pyc
@@ -1930,6 +1945,9 @@ ${PYSITELIB}/twisted/test/test_shortcut.
 ${PYSITELIB}/twisted/test/test_sip.py
 ${PYSITELIB}/twisted/test/test_sip.pyc
 ${PYSITELIB}/twisted/test/test_sip.pyo
+${PYSITELIB}/twisted/test/test_sni.py
+${PYSITELIB}/twisted/test/test_sni.pyc
+${PYSITELIB}/twisted/test/test_sni.pyo
 ${PYSITELIB}/twisted/test/test_sob.py
 ${PYSITELIB}/twisted/test/test_sob.pyc
 ${PYSITELIB}/twisted/test/test_sob.pyo

Index: pkgsrc/net/py-twisted/distinfo
diff -u pkgsrc/net/py-twisted/distinfo:1.51 pkgsrc/net/py-twisted/distinfo:1.52
--- pkgsrc/net/py-twisted/distinfo:1.51 Fri Jun 13 06:56:56 2025
+++ pkgsrc/net/py-twisted/distinfo      Wed May 20 06:32:56 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.51 2025/06/13 06:56:56 adam Exp $
+$NetBSD: distinfo,v 1.52 2026/05/20 06:32:56 adam Exp $
 
-BLAKE2s (twisted-25.5.0.tar.gz) = 78826d9918335868680c2edd016ddd2eb8ddff9ad6159bb6f2a1537416a399bd
-SHA512 (twisted-25.5.0.tar.gz) = 3d023777854fdf54e06f4bbaf3159359767aac9ba33e90d2b2e8abe29815d088e00eebd06944c12610a28c517d9cb397a5104ff153160edabfb91dd16a15f597
-Size (twisted-25.5.0.tar.gz) = 3545725 bytes
+BLAKE2s (twisted-26.4.0.tar.gz) = 67765cc3c8f13718b8cc214ec987a014281285c3cca57b775766b4a02fc155d0
+SHA512 (twisted-26.4.0.tar.gz) = 03b9f8ead925c0cf42c2f74cfb1045fd119e4cb3e197606946b075ce8caf75eb2edad208b610f0ba8628da6b4dda5b29da7f2bd04f76a61a112d45f3e4b8ad22
+Size (twisted-26.4.0.tar.gz) = 3575095 bytes



Home | Main Index | Thread Index | Old Index