[Twisted-Python] Twisted 21.2.0 Release Announcement
![](https://secure.gravatar.com/avatar/469df05f5dfd5b75fb3cb3a0868d36bf.jpg?s=120&d=mm&r=g)
On behalf of Twisted Matrix Laboratories, I am honored to announce the release of Twisted 21.2.0! There are two major announcements for this release: - *Python 2.7 support has been dropped*. Twisted 21.2.0 supports Python 3.5.3 and higher only - *This will be the last Twisted release to support Python 3.5*. Twisted 21.2.0 brings the following: - twist dns --pyzone now works on Python 3 - twisted.web.twcgi now works on Python 3 - all tests pass on all platforms on Python 3.8, including asyncio tests on Windows - tests pass on Python 3.9 (thanks to Michał Górny) - type hints, as specified in PEP 484, are now used in functions throughout the codebase - mypy (static type checker) is now run over the codebase during CI to help detect problems, and help improve the use of types - code in is now formatted with Black (thanks to Tom Most) - many CI and automation improvements (thanks to Adi Roiban and Thomas Grainger) - many more fixes (225 tickets closed!) You can install by running this command: python -m pip install Twisted==21.2.0 The full tarball is available at: https://pypi.org/project/Twisted/21.2.0/#files The full NEWS file with all changes is at: https://github.com/twisted/twisted/blob/twisted-21.2.0/NEWS.rst
![](https://secure.gravatar.com/avatar/c194a4d2f2f8269aa052942e87985198.jpg?s=120&d=mm&r=g)
On Sun, 28 Feb 2021 at 10:28, Craig Rodrigues <rodrigc@crodrigues.org> wrote:
Hi, Thanks Craig for managing this release. Happy to finally see a brand new release. Sad to see Py2.7 go... but this is life... all good things have an end :p Looking forward to also removing Py3.5 :) Cheers -- Adi Roiban
![](https://secure.gravatar.com/avatar/469df05f5dfd5b75fb3cb3a0868d36bf.jpg?s=120&d=mm&r=g)
On Sun, Feb 28, 2021 at 1:55 PM Adi Roiban <adi@roiban.ro> wrote:
Hi,
Thanks Craig for managing this release.
You are welcome Adi! I am happy to contribute my efforts to the Twisted community and to push the project along. In 2015-2016, unfortunately I lost my job. While in between jobs, I contributed a lot to the effort to port Twisted to Python 3. It was a very enjoyable experience, and I learned a lot of Python at the time. :) I joined the Python 2 porting party late, and there were others who invested a lot of time and effort into it. Amber did a heck of a lot of work before me on Python 3 porting, and did a lot of work after I contributed. I don't remember who else contributed, but there were a lot of folks including you, Jean- , Glyph, and others. The earliest Python 3 ticket I can find in the Trac is this one from 14 years ago filed by Itamar!! https://twistedmatrix.com/trac/ticket/2484 Honestly, at the time, when I was working on Python 3 porting in 2016, I wasn't even sure that Twisted would survive as a project beyond Python 2. So it is nice to see that Python 2.7 is history, and the Twisted codebase is incorporating new language features, types, etc. and is keeping up with newer Python versions. Hurray! -- Craig
![](https://secure.gravatar.com/avatar/469df05f5dfd5b75fb3cb3a0868d36bf.jpg?s=120&d=mm&r=g)
Glyph, The 21.2.0 release branch is ready for review so that it can be merged back to trunk: https://github.com/twisted/twisted/pull/1514 Thanks. -- Craig
![](https://secure.gravatar.com/avatar/63ef3e1c4ce734bfc654bfd31a5ff041.jpg?s=120&d=mm&r=g)
On 3/1/21 18:35, Craig Rodrigues wrote:
Mahalo nui loa for the latest and greatest! I can report that all my software is now running on Python3 with nevow/athena too, which might give me some time to dig into the work on chunking the changes in nevow and feeding them back into the standard twisted development process. Werner
![](https://secure.gravatar.com/avatar/e1554622707bedd9202884900430b838.jpg?s=120&d=mm&r=g)
Thank you so much for shepherding this release to completion, Craig. It's so good to have a recent release out in the world again! Looking forward to the many process improvements that have landed as well, and having more frequent releases produced by automation! -g
![](https://secure.gravatar.com/avatar/c194a4d2f2f8269aa052942e87985198.jpg?s=120&d=mm&r=g)
On Sun, 28 Feb 2021 at 10:28, Craig Rodrigues <rodrigc@crodrigues.org> wrote:
Hi, Thanks Craig for managing this release. Happy to finally see a brand new release. Sad to see Py2.7 go... but this is life... all good things have an end :p Looking forward to also removing Py3.5 :) Cheers -- Adi Roiban
![](https://secure.gravatar.com/avatar/469df05f5dfd5b75fb3cb3a0868d36bf.jpg?s=120&d=mm&r=g)
On Sun, Feb 28, 2021 at 1:55 PM Adi Roiban <adi@roiban.ro> wrote:
Hi,
Thanks Craig for managing this release.
You are welcome Adi! I am happy to contribute my efforts to the Twisted community and to push the project along. In 2015-2016, unfortunately I lost my job. While in between jobs, I contributed a lot to the effort to port Twisted to Python 3. It was a very enjoyable experience, and I learned a lot of Python at the time. :) I joined the Python 2 porting party late, and there were others who invested a lot of time and effort into it. Amber did a heck of a lot of work before me on Python 3 porting, and did a lot of work after I contributed. I don't remember who else contributed, but there were a lot of folks including you, Jean- , Glyph, and others. The earliest Python 3 ticket I can find in the Trac is this one from 14 years ago filed by Itamar!! https://twistedmatrix.com/trac/ticket/2484 Honestly, at the time, when I was working on Python 3 porting in 2016, I wasn't even sure that Twisted would survive as a project beyond Python 2. So it is nice to see that Python 2.7 is history, and the Twisted codebase is incorporating new language features, types, etc. and is keeping up with newer Python versions. Hurray! -- Craig
![](https://secure.gravatar.com/avatar/469df05f5dfd5b75fb3cb3a0868d36bf.jpg?s=120&d=mm&r=g)
Glyph, The 21.2.0 release branch is ready for review so that it can be merged back to trunk: https://github.com/twisted/twisted/pull/1514 Thanks. -- Craig
![](https://secure.gravatar.com/avatar/63ef3e1c4ce734bfc654bfd31a5ff041.jpg?s=120&d=mm&r=g)
On 3/1/21 18:35, Craig Rodrigues wrote:
Mahalo nui loa for the latest and greatest! I can report that all my software is now running on Python3 with nevow/athena too, which might give me some time to dig into the work on chunking the changes in nevow and feeding them back into the standard twisted development process. Werner
![](https://secure.gravatar.com/avatar/e1554622707bedd9202884900430b838.jpg?s=120&d=mm&r=g)
Thank you so much for shepherding this release to completion, Craig. It's so good to have a recent release out in the world again! Looking forward to the many process improvements that have landed as well, and having more frequent releases produced by automation! -g
participants (5)
-
Adi Roiban
-
Craig Rodrigues
-
Glyph
-
Tom Most
-
Werner Thie