Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Bump twisted from 17.1.0 to 21.2.0 #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Apr 6, 2022

Bumps twisted from 17.1.0 to 21.2.0.

Release notes

Sourced from twisted's releases.

Twisted 21.2.0

Ticket numbers in this file can be looked up by visiting http://twistedmatrix.com/trac/ticket/

.. towncrier release notes start

Twisted 21.2.0 (2021-02-28)

Features

  • The enableSessions argument to twisted.internet.ssl.CertificateOptions now actually enables/disables OpenSSL's session cache. Also, due to session-related bugs, it defaults to False. (#9583)
  • twisted.internet.defer.inlineCallbacks and ensureDeferred will now associate a contextvars.Context with the coroutines they run, meaning that ContextVar objects will maintain their value within the same coroutine, similarly to asyncio Tasks. This functionality requires Python 3.7+, or the contextvars PyPI backport to be installed for Python 3.5-3.6. (#9719, #9826)
  • twisted.internet.defer.Deferred.fromCoroutine has been added. This is similar to the existing ensureDeferred function, but is named more consistently inside Twisted and does not pass through Deferreds. (#9825)
  • trial now allows the @​unittest.skipIf decorator to specify that an entire test class should be skipped. (#9829)
  • The twisted.python.deprecate.deprecatedKeywordParameter decorator can be used to mark a keyword paramater of a function or method as deprecated. (#9844)
  • Projects using Twisted can now perform type checking against a Twisted installation, for example using mypy. (#9908)
  • twisted.python.util.InsensitiveDict now fully implements MutableMapping. (#9919)
  • Python 3.8 is now tested and supported. (#9955)
  • Support a coroutine function in twisted.internet.task.react (#9974)
  • PyPy 3.7 is now tested and supported. (#10093)

Bugfixes

  • twisted.web.twcgi.CGIProcessProtocol.processEnded(...) now handles an already-finished request, for example when request.connectionLost(...) was called previously. (#9468)
  • Twisted's dependency on PyHamcrest has been moved from the base package to the new "test" extra. Consequently the test extra must be installed for Twisted's test suite to pass. (#9509)
  • Fixed serialization of timedelta, date, and time objects in twisted.spread. (#9716)
  • twisted.internet.asyncioreactor.AsyncioSelectorReactor now raises an exception if instantiated with an event loop which is not compatible with asyncio.SelectorEventLoop. This fixes the AsyncioSelectorReactor in Python 3.8+ on Windows, where in bp-34687 the default Windows asyncio event loop was changed to ProactorEventLoop. Applications that use AsyncioSelectorReactor on Windows with Python 3.8+ must call asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) before instantiating and running AsyncioSelectorReactor. (#9766)
  • twisted.internet.process.registerReapProcessHandler and ._BaseProcess.reapProcess will no longer raise a TypeError when processing a None PID (#9775)
  • INotify will close its file descriptor if a directory is automatically removed by twisted from the watchlist because it's deleted, avoiding orphaned filedescriptors. (#9777)
  • DelayedCall.reset() is now working properly with asyncioreactor (#9780)
  • AsyncioSelectorReactor.seconds() now correctly returns an epoch time. (#9787)
  • The _connDone parameter has been removed from twisted.internet.abstract.FileDescriptor.loseConnection()'s signature in order to match the signature in the base class twisted.internet._newtls.ConnectionMixin loseConnection(). (#9849)
  • The Gtk3 reactor now runs on Wayland-only sessions (#9904)
  • Descriptive error messages from twisted.internet.error are now present when running with 'python -OO'. (#9918)
  • Comparator methods such as eq() now always return NotImplemented for uncomparable types. (#9919)
  • When installing Twisted it now requires a minimum Python 3.5.4 version to match the version used with automated testing. This is the minimum Python version that we know that Twisted works with. (#10098)

Improved Documentation

  • The narrative docs now contains the associated Twisted version and the date when they were generated. (#3945)

... (truncated)

Changelog

Sourced from twisted's changelog.

Twisted 21.2.0 (2021-02-28)

Features

  • The enableSessions argument to twisted.internet.ssl.CertificateOptions now actually enables/disables OpenSSL's session cache. Also, due to session-related bugs, it defaults to False. (#9583)
  • twisted.internet.defer.inlineCallbacks and ensureDeferred will now associate a contextvars.Context with the coroutines they run, meaning that ContextVar objects will maintain their value within the same coroutine, similarly to asyncio Tasks. This functionality requires Python 3.7+, or the contextvars PyPI backport to be installed for Python 3.5-3.6. (#9719, #9826)
  • twisted.internet.defer.Deferred.fromCoroutine has been added. This is similar to the existing ensureDeferred function, but is named more consistently inside Twisted and does not pass through Deferreds. (#9825)
  • trial now allows the @​unittest.skipIf decorator to specify that an entire test class should be skipped. (#9829)
  • The twisted.python.deprecate.deprecatedKeywordParameter decorator can be used to mark a keyword paramater of a function or method as deprecated. (#9844)
  • Projects using Twisted can now perform type checking against a Twisted installation, for example using mypy. (#9908)
  • twisted.python.util.InsensitiveDict now fully implements MutableMapping. (#9919)
  • Python 3.8 is now tested and supported. (#9955)
  • Support a coroutine function in twisted.internet.task.react (#9974)
  • PyPy 3.7 is now tested and supported. (#10093)

Bugfixes

  • twisted.web.twcgi.CGIProcessProtocol.processEnded(...) now handles an already-finished request, for example when request.connectionLost(...) was called previously. (#9468)
  • Twisted's dependency on PyHamcrest has been moved from the base package to the new "test" extra. Consequently the test extra must be installed for Twisted's test suite to pass. (#9509)
  • Fixed serialization of timedelta, date, and time objects in twisted.spread. (#9716)
  • twisted.internet.asyncioreactor.AsyncioSelectorReactor now raises an exception if instantiated with an event loop which is not compatible with asyncio.SelectorEventLoop. This fixes the AsyncioSelectorReactor in Python 3.8+ on Windows, where in bp-34687 the default Windows asyncio event loop was changed to ProactorEventLoop. Applications that use AsyncioSelectorReactor on Windows with Python 3.8+ must call asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) before instantiating and running AsyncioSelectorReactor. (#9766)
  • twisted.internet.process.registerReapProcessHandler and ._BaseProcess.reapProcess will no longer raise a TypeError when processing a None PID (#9775)
  • INotify will close its file descriptor if a directory is automatically removed by twisted from the watchlist because it's deleted, avoiding orphaned filedescriptors. (#9777)
  • DelayedCall.reset() is now working properly with asyncioreactor (#9780)
  • AsyncioSelectorReactor.seconds() now correctly returns an epoch time. (#9787)
  • The _connDone parameter has been removed from twisted.internet.abstract.FileDescriptor.loseConnection()'s signature in order to match the signature in the base class twisted.internet._newtls.ConnectionMixin loseConnection(). (#9849)
  • The Gtk3 reactor now runs on Wayland-only sessions (#9904)
  • Descriptive error messages from twisted.internet.error are now present when running with 'python -OO'. (#9918)
  • Comparator methods such as eq() now always return NotImplemented for uncomparable types. (#9919)
  • When installing Twisted it now requires a minimum Python 3.5.4 version to match the version used with automated testing. This is the minimum Python version that we know that Twisted works with. (#10098)

Improved Documentation

  • The narrative docs now contains the associated Twisted version and the date when they were generated. (#3945)
  • The "Writing a twistd plugin" howto now explains how to deploy twistd plugins using Python packaging and pip (#9243)
  • (#9868, #9873, #9874)
  • Fix a typo in "Introduction to Deferreds" document. (#9948)
  • The Twisted Coding Standard has been changed to refer to The Black code style for guidelines regarding whitespace and line lengths. (#9957)
  • Exempt __repr__, __slots__ and other @attrs.define related changes from compatibility policy. (#9982)
  • Fix many docstring mistakes flagged by new sanity checks in pydoctor. (#10021)

... (truncated)

Commits
  • f1daeee Update steps
  • a15162e Update text
  • 1b79c41 Run towncrier
  • d444640 Update
  • 695a228 Bump python_requires to 3.5.4 for the lowest avaiable python on Github Actions
  • cf193f9 Update version to 21.2.0
  • 3dea5e9 Bump python_requires to 3.5.3 for typing.Type
  • 30ec938 Revert "Run towncrier 21.2.0-rc1"
  • 865fe65 Merge branch 'trunk' into release-21.2.0-10091
  • a72db25 Merge pull request #1516 from altendky/altendky-10093-returnValue_Deprecation...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [twisted](https://github.com/twisted/twisted) from 17.1.0 to 21.2.0.
- [Release notes](https://github.com/twisted/twisted/releases)
- [Changelog](https://github.com/twisted/twisted/blob/trunk/NEWS.rst)
- [Commits](twisted/twisted@twisted-17.1.0...twisted-21.2.0)

---
updated-dependencies:
- dependency-name: twisted
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Apr 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants