Skip to content

Commit b3b9dde

Browse files
committed
Run towncrier and bump version to 0.13.0 for release
1 parent 7712c98 commit b3b9dde

File tree

6 files changed

+46
-20
lines changed

6 files changed

+46
-20
lines changed

docs/source/history.rst

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,51 @@ Release history
55

66
.. towncrier release notes start
77
8+
trio-asyncio 0.13.0 (2023-12-01)
9+
--------------------------------
10+
11+
Features
12+
~~~~~~~~
13+
14+
- Exiting an ``async with trio_asyncio.open_loop():`` block now cancels
15+
any asyncio tasks that are still running in the background, like
16+
:func:`asyncio.run` does, so that they have a chance to clean up
17+
resources by running async context managers and ``finally``
18+
blocks. Previously such tasks would simply be abandoned to the garbage
19+
collector, resulting in potential deadlocks and stderr spew. Note that,
20+
like :func:`asyncio.run`, we *do* still abandon any tasks that are
21+
started during this finalization phase and outlive the existing tasks.
22+
(`#91 <https://github.com/python-trio/trio-asyncio/issues/91>`__)
23+
24+
Bugfixes
25+
~~~~~~~~
26+
27+
- A deadlock will no longer occur if :func:`trio_asyncio.open_loop`
28+
is cancelled before its first checkpoint. We also now cancel and wait on
29+
all asyncio tasks even if :func:`~trio_asyncio.open_loop` terminates due
30+
to an exception that was raised within the ``async with`` block. (`#115 <https://github.com/python-trio/trio-asyncio/issues/115>`__)
31+
- Uncaught exceptions from asyncio tasks will now propagate out of the
32+
:func:`trio_asyncio.open_loop` call. This has always been the
33+
documented behavior, but didn't actually work before.
34+
(`#121 <https://github.com/python-trio/trio-asyncio/issues/121>`__)
35+
- Use of ``loop.add_reader()`` or ``loop.add_writer()`` with a socket object
36+
(rather than a file descriptor) will no longer potentially produce spurious
37+
uncaught exceptions if the socket is closed in the reader/writer callback.
38+
(`#121 <https://github.com/python-trio/trio-asyncio/issues/121>`__)
39+
40+
Miscellaneous
41+
~~~~~~~~~~~~~
42+
43+
- ``trio-asyncio`` now requires Trio 0.22 and does not produce deprecation warnings.
44+
Python 3.12 is now supported. Python 3.6 and 3.7 are no longer supported. (`#121 <https://github.com/python-trio/trio-asyncio/issues/121>`__)
45+
- trio-asyncio now indicates its presence to `sniffio` using the
46+
``sniffio.thread_local`` interface that is preferred since sniffio
47+
v1.3.0. This should be less likely than the previous approach to cause
48+
:func:`sniffio.current_async_library` to return incorrect results due
49+
to unintended inheritance of contextvars.
50+
(`#123 <https://github.com/python-trio/trio-asyncio/issues/123>`__)
51+
52+
853
trio-asyncio 0.12.0 (2021-01-07)
954
--------------------------------
1055

newsfragments/115.bugfix.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.

newsfragments/121.misc.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

newsfragments/123.misc.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.

newsfragments/91.feature.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

trio_asyncio/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# This file is imported from __init__.py and exec'd from setup.py
22

3-
__version__ = "0.12.0+dev"
3+
__version__ = "0.13.0"

0 commit comments

Comments
 (0)