Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==21.2.0
->==24.7.0
By merging this PR, the issue #10 will be automatically resolved and closed:
Release Notes
twisted/twisted (Twisted)
v24.7.0
: Twisted 24.7.0Compare Source
Twisted 24.7.0 (2024-08-08)
24.7.0.rc2 fixed an unreleased regression caused by PR 12109. (#12279)
No other changes since 24.7.0.rc2
Features
REMOTE_PORT
. (#12096)assert
to check the type of the arguments. You should now use type checking to validate your code. These changes were done to reduce the CPU usage. (#12122)Bugfixes
conch
command-line no longer will either. (#12141)Improved Documentation
Deprecations and Removals
return
statement. (#9930)twisted-iocpsupport
is no longer a hard dependency on Windows.The IOCP support is now installed together with the other Windows soft
dependencies via
twisted[windows-platform]
. (#11893)This is done to have the same behaviour as with Python 3.13. (#12063)
async
argument, deprecated since 18.9.0, has been removed. (#12130)The SOAP support was already broken, for at least the last 4 years.
The SOAP support in Twisted has no active maintainer. (#12146)
Misc
Conch
Bugfixes
Bugfixes
Deprecations and Removals
v24.3.0
: Twisted 24.3.0Compare Source
Twisted 24.3.0 (2024-03-01)
This release supports PyPy v7.3.14.
Bugfixes
flat function names, in format strings, as it has long been
explicitly documented to do. So, you will now get the expected
result from [formatEvent("here's the result of calling a method at
log-format time: {obj.method()}", obj=...)]{.title-ref} (#9347)
provided in the last chunk of a chunked encoded response, rather
than raising an exception. (#11997)
twisted.protocols.tls.TLSMemoryBIOFactory, was refactored for
improved performance when doing a high number of small writes.
(#12011)
without triggering a deprecation warnings on Python 3.12. (#12026)
reactor.spawnProcess
,now copies the parent environment when the [env=None]{.title-ref}
argument is passed on Posix systems and
os.posix_spawnp
is usedinternally. (#12068)
introspection was adjusted for the latest PyPy 7.3.14 release,
allowing legacy @inlineCallbacks to run on new PyPY versions.
(#12084)
Deprecations and Removals
tests with skip annotation or skip attribute for Python 3.12.1 or
newer. This is the result of upstream Python gh-106584 change. The
behavior is not change in 3.12.0 or older. (#12052)
Misc
#12067, #12076, #12078, #12087, #12095
Conch
No significant changes.
Web
Bugfixes
references long-deprecated
cookielib
andurllib2
standardlibrary modules. (#12044)
Deprecations and Removals
[multipart/form-data]{.title-ref} using
[email.message_from_bytes]{.title-ref}. The usage of
[cgi.parse_multipart]{.title-ref} was removed as the
[cgi]{.title-ref} module will be removed in Python 3.13. (#11848)
Misc
Mail
No significant changes.
Words
Improved Documentation
Names
No significant changes.
Trial
No significant changes.
v23.10.0
: Twisted 23.10.0Compare Source
Twisted 23.10.0 (2023-10-31)
No changes since 23.10.0.rc1.
Features
CPython
, functions wrapped bytwisted.internet.defer.inlineCallbacks
can have their arguments and return values freed immediately after completion (due to there no longer being circular references). (#11885)Bugfixes
Improved Documentation
Read The Docs was fixed.
This was a regression introduced with 23.8.0. (#12012)
Deprecations and Removals
Misc
Conch
No significant changes.
Web
Bugfixes
Mail
No significant changes.
Words
No significant changes.
Names
No significant changes.
Trial
Misc
v23.8.0
: Twisted 23.8.0Compare Source
Twisted 23.8.0. (2023-08-28)
This is the last release with support for Python 3.7.
No changes since 23.8.0.rc1.
Features
twisted.internet.defer.race
has been added as a way to get the first available result from a list of Deferreds. (#11817)Bugfixes
IHostnameResolver.resolveHostName
andIResolverSimple.getHostByName
. (#10276)twist conch --auth=sshkey
can now authenticate users without a traceback again, thanks to twisted.conch.unix.UnixConchUser no longer being incorrectly instantiated withbytes
. In the course of this fix, some type hinting has also been applied totwisted.cred.portal
. (#11626)trial -j
no longer obscures tracebacks forany errors caused by that interruption with an
UnboundLocalError
due to a bugin its own implementation. Note that there are still several internal
tracebacks that will be emitted upon exiting, because tearing down the test
runner mid-suite is still not an entirely clean operation, but it should at
least be possible to see errors reported from, for example, a test that is
hanging more clearly. (#11707)
will work with latest Twisted codebase. (#11740)
use BadZipFile (big F) instead, added in 3.2. (#11821)
twisted.web.template
now avoids unnecessary copying and is faster, particularly for templates with deep nesting. (#11834)twisted.web.template
now avoids some unecessary evaluation of type annotations and is faster. (#11835)use fromtimestamp(x, timezone.utc).replace(tzinfo=None) instead. (#11908)
Deprecations and Removals
conch_nacl
now use hyphens rather than underscores to comply with PEP 685. The old names will be supported until the end of 2023. (#11655)Misc
Conch
Deprecations and Removals
v22.10.0
: Twisted 22.10.0Compare Source
Twisted 22.10.0 (2022-10-30)
This release contains a security fix for CVE-2022-39348.
This is a low-severity security bug.
Twisted 22.10.0rc1 release candidate was released on 2022-10-26 and there are
no changes between the release candidate and the final release.
Features
systemd:
endpoint parser now supports "named" file descriptors. This is a more reliable mechanism for choosing among several inherited descriptors. (#8147)Improved Documentation
systemd
endpoint parser'sindex
parameter is now documented as leading to non-deterministic results in which descriptor is selected. The newname
parameter is now documented as preferred. (#8146)Deprecations and Removals
Misc
Conch
Bugfixes
Bugfixes
Mail
Bugfixes
Bugfixes
v22.8.0
: Twisted 22.8.0Compare Source
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
Bugfixes
twisted.internet.base.DelayedCall.__repr__
will no longer raiseAttributeError
if theDelayedCall
was created before debug mode was enabled. As a side-effect,twisted.internet.base.DelayedCall.creator
is now defined asNone
in cases where previously it was undefined. (#8306)ContextVar.reset()
now works correctly insideinlineCallbacks
functions and coroutines. (#10301)Improved Documentation
doing a security release. (#10324)
directory that is now placed inside the documentation root directory. (#11575)
Deprecations and Removals
Twisted 22.4.0 was the last version with support for Python 3.6. (#10304)
Misc
Conch
Bugfixes
IRequest.write
instead of passing them all separately. This greatly reduces the number of chunks in the response. (#10348)Misc
Words
Bugfixes
Trial
Features
trial --jobs=N --until-failure ...
now reports the correct number of tests run after each iteration. (#10311)trial -jN ...
will now pass errors and failures toIReporter
methods as instances ofWorkerException
instead ofstr
. (#10333)Misc
v22.4.0
: Twisted 22.4.0Compare Source
Twisted 22.4.0 (2022-04-11)
Features
Bugfixes
Conch
Features
Bugfixes
Words
No significant changes.
Names
No significant changes.
Trial
Features
trial -u ...
. (#10320)Misc
v22.2.0
: Twisted 22.2.0Compare Source
Twisted 22.2.0 (2022-03-01)
Bugfixes
min
function no longer acceptsNone
as an argument. (#9660)SSH version string is not sent in the first 4096 bytes. (#10284, CVE-2022-21716,
GHSA-rv6r-3f5q-9rgx)
Improved Documentation
Deprecations and Removals
Misc
Conch
Misc
v22.1.0
: Twisted 22.1.0Compare Source
Twisted 22.1.0 (2022-02-03)
Features
Bugfixes
twisted.internet.base.DelayedCall.__repr__
andtwisted.internet.task.LoopingCall.__repr__
had the changes from #10155 reverted to accept non-function callables. (#10235)twisted.python.threading.ThreadPool.currentThread()
in favor ofthreading.current_thread()
.Switched
twisted.python.threading.ThreadPool.currentThread()
andtwisted.python.threadable.getThreadID()
to use `threading.current_thread()to avoid the deprecation warnings introduced for
threading.currentThread()`` in Python 3.10. (#10273)Improved Documentation
Misc
Conch
Features
Web
Bugfixes
Deprecations and Removals
v21.7.0
: Twisted 21.7.0Compare Source
Twisted 21.7.0 (2021-07-26)
Features
of Twisted where you might reasonably be able to use mypy without your own custom
stub files (#10017)
Bugfixes
DelayedCall.__repr__
andLoopingCall.__repr__
from21.7.0.rc1 were reverted as the wrong assumption that
__qualname__
isavailable on all the supported Python versions.
(#10235)
to PyPy (#10236)
module.__name__
andsys.modules
key (#10230)twisted.web.http_headers.getRawHeaders is now typed to return a non-optional value if a non-None default value is given. (#10142)
log file using UTF-8 encoding.
In previous versions it was using the system default encoding.
This was causing encoding errors as the distributed trial workers are sending
Unicode data and the system default encoding might not always be Unicode compatible.
For example, it can be CP1252 on Windows. (#10157)
SHA1 digest for non-group key exchanges. (#10203)
Improved Documentation
Deprecations and Removals
Misc