:arrow_up: Bump trio from 0.22.0 to 0.25.0
Bumps trio from 0.22.0 to 0.25.0.
Release notes
Sourced from trio's releases.
v0.25.0
Full Changelog: https://github.com/python-trio/trio/compare/v0.24.0...v0.25.0
Breaking changes
The
strict_exception_groupsparameter now defaults toTrueintrio.runandtrio.lowlevel.start_guest_run.trio.open_nurserystill defaults to the same value as was specified intrio.run/trio.lowlevel.start_guest_run, but if you didn't specify it there then all subsequent calls totrio.open_nurserywill change. This is unfortunately very tricky to change with a deprecation period, as raising aDeprecationWarningwheneverstrict_exception_groupsis not specified would raise a lot of unnecessary warnings.Notable side effects of changing code to run with
strict_exception_groups==True
If an iterator raises
StopAsyncIterationorStopIterationinside a nursery, then python will not recognize wrapped instances of those for stopping iteration.
trio.run_processis now documented that it can raise anExceptionGroup. It previously could do this in very rare circumstances, but withstrict_exception_groupsset toTrueit will now do so whenever exceptions occur indeliver_cancelor with problems communicating with the subprocess.
- Errors in opening the process is now done outside the internal nursery, so if code previously ran with
strict_exception_groups=Truethere are cases now where anExceptionGroupis no longer added.
trio.TrioInternalError.__cause__might be wrapped in one or moreExceptionGroups <ExceptionGroup>(python-trio/trio#2786)Features
Add
trio.testing.wait_all_threads_completed, which blocks until no threads are running tasks. This is intended to be used in the same way astrio.testing.wait_all_tasks_blocked. (python-trio/trio#2937)
Pathis now a subclass ofpathlib.PurePath, allowing it to interoperate with other standardpathlibtypes.Instantiating
Pathnow returns a concrete platform-specific subclass, one ofPosixPathorWindowsPath, matching the behavior ofpathlib.Path. (python-trio/trio#2959)Bugfixes
- The pthread functions are now correctly found on systems using vanilla versions of musl libc. (python-trio/trio#2939)
Miscellaneous internal changes
- use the regular readme for the PyPI long_description (python-trio/trio#2866)
v0.24.0
Full Changelog: https://github.com/python-trio/trio/compare/v0.23.2...v0.24.0
Features
New helper classes:
testing.RaisesGroupandtesting.Matcher.In preparation for changing the default of
strict_exception_groupstoTrue, we're introducing a set of helper classes that can be used in place ofpytest.raisesin tests, to check for an expectedExceptionGroup. These are provisional, and only planned to be supplied until there's a good solution inpytest. See pytest-dev/pytest#11538 (python-trio/trio#2785)
... (truncated)
Commits
0b8d3e2Bump version to 0.25.0e3fd384[pre-commit.ci] pre-commit autoupdate ruff-pre-commit: v0.3.0 → v0.3.2f890f8fPathrefactor (#2959)379d99bAdd pre-commit autoupdate to autodeps (#2970)b541b8bbump pyright, introducing warnings for tons of missing docstrings (#2910)9dcf733fix: updated the google docstring url (#2967)48f8293Bump dependencies from commit 13ee1b (#2966)13ee1b0Remove incorrectstrpossibility from HostnameResolver.getaddrinfo (#2964)accaae4use the regular readme for the long description (#2866)78c55aa[pre-commit.ci] pre-commit autoupdate (#2962)- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)