Subject: CVS commit: pkgsrc/devel/py-trio
From: Thomas Klausner
Date: 2024-07-07 16:50:16
Message id: 20240707145016.282F2FC74@cvs.NetBSD.org

Log Message:
py-trio: update to 0.26.0.

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()

$ python -m trio
Trio 0.26.0, 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 interactive debugging for further detail. (#2972)

    trio.testing.RaisesGroup can now catch an unwrapped exception with \ 
unwrapped=True. This means that the behaviour of except* can be fully replicated \ 
in combination with flatten_subgroups=True (formerly strict=False). (#2989)

Bugfixes

    Fixed a bug where 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 trio.testing.RaisesGroup, previous \ 
functionality of strict=False is now in flatten_subgroups=True. (#2989)

Files:
RevisionActionfile
1.17modifypkgsrc/devel/py-trio/Makefile
1.10modifypkgsrc/devel/py-trio/PLIST
1.12modifypkgsrc/devel/py-trio/distinfo