From e2e05210fea0f7db1c0225a3c46a77c58d98e025 Mon Sep 17 00:00:00 2001 From: A5rocks Date: Fri, 5 Jul 2024 13:18:36 +0900 Subject: [PATCH] Bump version to 0.26.0 --- docs/source/history.rst | 38 +++++++++++++++++++++++++++++++ newsfragments/2972.feature.rst | 16 ------------- newsfragments/2989.bugfix.rst | 2 -- newsfragments/2989.deprecated.rst | 1 - newsfragments/2989.feature.rst | 1 - src/trio/_version.py | 2 +- 6 files changed, 39 insertions(+), 21 deletions(-) delete mode 100644 newsfragments/2972.feature.rst delete mode 100644 newsfragments/2989.bugfix.rst delete mode 100644 newsfragments/2989.deprecated.rst delete mode 100644 newsfragments/2989.feature.rst diff --git a/docs/source/history.rst b/docs/source/history.rst index 13bb7e2e48..9cef5191e5 100644 --- a/docs/source/history.rst +++ b/docs/source/history.rst @@ -5,6 +5,44 @@ Release history .. towncrier release notes start +Trio 0.26.0 (2024-07-05) +------------------------ + +Features +~~~~~~~~ + +- Added an interactive interpreter ``python -m trio``. + + This makes it easier to try things and experiment with trio in the a Python repl. + Use the ``await`` keyword without needing to call ``trio.run()`` + + .. code-block:: console + + $ python -m trio + Trio 0.21.0+dev, Python 3.10.6 + Use "await" directly instead of "trio.run()". + Type "help", "copyright", "credits" or "license" for more information. + >>> import trio + >>> await trio.sleep(1); print("hi") # prints after one second + hi + + See :ref:`interactive debugging` for further detail. (`#2972 `__) +- :class:`trio.testing.RaisesGroup` can now catch an unwrapped exception with ``unwrapped=True``. This means that the behaviour of :ref:`except* ` can be fully replicated in combination with ``flatten_subgroups=True`` (formerly ``strict=False``). (`#2989 `__) + + +Bugfixes +~~~~~~~~ + +- Fixed a bug where :class:`trio.testing.RaisesGroup(..., strict=False) ` would check the number of exceptions in the raised `ExceptionGroup` before flattening subgroups, leading to incorrectly failed matches. + It now properly supports end (``$``) regex markers in the ``match`` message, by no longer including " (x sub-exceptions)" in the string it matches against. (`#2989 `__) + + +Deprecations and removals +~~~~~~~~~~~~~~~~~~~~~~~~~ + +- Deprecated ``strict`` parameter from :class:`trio.testing.RaisesGroup`, previous functionality of ``strict=False`` is now in ``flatten_subgroups=True``. (`#2989 `__) + + Trio 0.25.1 (2024-05-16) ------------------------ diff --git a/newsfragments/2972.feature.rst b/newsfragments/2972.feature.rst deleted file mode 100644 index 64557ffdf6..0000000000 --- a/newsfragments/2972.feature.rst +++ /dev/null @@ -1,16 +0,0 @@ -Added an interactive interpreter ``python -m trio``. - -This makes it easier to try things and experiment with trio in the a Python repl. -Use the ``await`` keyword without needing to call ``trio.run()`` - -.. code-block:: console - - $ python -m trio - Trio 0.21.0+dev, Python 3.10.6 - Use "await" directly instead of "trio.run()". - Type "help", "copyright", "credits" or "license" for more information. - >>> import trio - >>> await trio.sleep(1); print("hi") # prints after one second - hi - -See :ref:`interactive debugging` for further detail. diff --git a/newsfragments/2989.bugfix.rst b/newsfragments/2989.bugfix.rst deleted file mode 100644 index 55d97d87c6..0000000000 --- a/newsfragments/2989.bugfix.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fixed a bug where :class:`trio.testing.RaisesGroup(..., strict=False) ` would check the number of exceptions in the raised `ExceptionGroup` before flattening subgroups, leading to incorrectly failed matches. -It now properly supports end (``$``) regex markers in the ``match`` message, by no longer including " (x sub-exceptions)" in the string it matches against. diff --git a/newsfragments/2989.deprecated.rst b/newsfragments/2989.deprecated.rst deleted file mode 100644 index bc91844d53..0000000000 --- a/newsfragments/2989.deprecated.rst +++ /dev/null @@ -1 +0,0 @@ -Deprecated ``strict`` parameter from :class:`trio.testing.RaisesGroup`, previous functionality of ``strict=False`` is now in ``flatten_subgroups=True``. diff --git a/newsfragments/2989.feature.rst b/newsfragments/2989.feature.rst deleted file mode 100644 index c49fdf36f6..0000000000 --- a/newsfragments/2989.feature.rst +++ /dev/null @@ -1 +0,0 @@ -:class:`trio.testing.RaisesGroup` can now catch an unwrapped exception with ``unwrapped=True``. This means that the behaviour of :ref:`except* ` can be fully replicated in combination with ``flatten_subgroups=True`` (formerly ``strict=False``). diff --git a/src/trio/_version.py b/src/trio/_version.py index e3132f95cf..fa2ad8cf6b 100644 --- a/src/trio/_version.py +++ b/src/trio/_version.py @@ -1,3 +1,3 @@ # This file is imported from __init__.py and parsed by setuptools -__version__ = "0.25.1+dev" +__version__ = "0.26.0"