pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-trio



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Dec 25 21:57:13 UTC 2024

Modified Files:
        pkgsrc/devel/py-trio: Makefile PLIST distinfo

Log Message:
py-trio: updated to 0.28.0

Trio 0.28.0 (2024-12-25)

Bugfixes

- :func:`inspect.iscoroutinefunction` and the like now give correct answers when
  called on KI-protected functions.
- Rework KeyboardInterrupt protection to track code objects, rather than frames,
  as protected or not. The new implementation no longer needs to access
  ``frame.f_locals`` dictionaries, so it won't artificially extend the lifetime of
  local variables. Since KeyboardInterrupt protection is now imposed statically
  (when a protected function is defined) rather than each time the function runs,
  its previously-noticeable performance overhead should now be near zero.
  The lack of a call-time wrapper has some other benefits as well:

  * :func:`inspect.iscoroutinefunction` and the like now give correct answers when
    called on KI-protected functions.

  * Calling a synchronous KI-protected function no longer pushes an additional stack
    frame, so tracebacks are clearer.

  * A synchronous KI-protected function invoked from C code (such as a weakref
    finalizer) is now guaranteed to start executing; previously there would be a brief
    window in which KeyboardInterrupt could be raised before the protection was
    established.

  One minor drawback of the new approach is that multiple instances of the same
  closure share a single KeyboardInterrupt protection state (because they share a
  single code object). That means that if you apply
  `@enable_ki_protection <trio.lowlevel.enable_ki_protection>` to some of them
  and not others, you won't get the protection semantics you asked for. See the
  documentation of `@enable_ki_protection <trio.lowlevel.enable_ki_protection>`
  for more details and a workaround.
- Rework foreign async generator finalization to track async generator
  ids rather than mutating ``ag_frame.f_locals``. This fixes an issue
  with the previous implementation: locals' lifetimes will no longer be
  extended by materialization in the ``ag_frame.f_locals`` dictionary that
  the previous finalization dispatcher logic needed to access to do its work.
- Ensure that Pyright recognizes our underscore prefixed attributes for attrs classes.
- Fix `trio.testing.RaisesGroup`'s typing.

Improved documentation

- Improve error message when run after gevent's monkey patching.
- Document that :func:`trio.sleep_forever` is guaranteed to raise an exception now.

Removals without deprecations

- Remove workaround for OpenSSL 1.1.1 DTLS ClientHello bug.
- Drop support for Python 3.8.

Miscellaneous internal changes

- Switch to using PEP570 for positional-only arguments for `~trio.socket.SocketType`'s methods.
- Improve type annotations in several places by removing `Any` usage.
- Get and enforce 100% coverage


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 pkgsrc/devel/py-trio/Makefile
cvs rdiff -u -r1.11 -r1.12 pkgsrc/devel/py-trio/PLIST
cvs rdiff -u -r1.15 -r1.16 pkgsrc/devel/py-trio/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-trio/Makefile
diff -u pkgsrc/devel/py-trio/Makefile:1.21 pkgsrc/devel/py-trio/Makefile:1.22
--- pkgsrc/devel/py-trio/Makefile:1.21  Mon Nov 11 07:28:28 2024
+++ pkgsrc/devel/py-trio/Makefile       Wed Dec 25 21:57:13 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.21 2024/11/11 07:28:28 wiz Exp $
+# $NetBSD: Makefile,v 1.22 2024/12/25 21:57:13 adam Exp $
 
-DISTNAME=      trio-0.27.0
+DISTNAME=      trio-0.28.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=t/trio/}
@@ -21,6 +21,7 @@ TEST_DEPENDS+=        ${PYPKGPREFIX}-async_gene
 TEST_DEPENDS+= ${PYPKGPREFIX}-black-[0-9]*:../../textproc/py-black
 TEST_DEPENDS+= ${PYPKGPREFIX}-jedi-[0-9]*:../../editors/py-jedi
 TEST_DEPENDS+= ${PYPKGPREFIX}-pylint-[0-9]*:../../devel/py-pylint
+# circular dependency
 #TEST_DEPENDS+=        ${PYPKGPREFIX}-test-trio-[0-9]*:../../devel/py-test-trio
 TEST_DEPENDS+= ${PYPKGPREFIX}-trustme-[0-9]*:../../security/py-trustme
 

Index: pkgsrc/devel/py-trio/PLIST
diff -u pkgsrc/devel/py-trio/PLIST:1.11 pkgsrc/devel/py-trio/PLIST:1.12
--- pkgsrc/devel/py-trio/PLIST:1.11     Thu Aug  8 05:16:50 2024
+++ pkgsrc/devel/py-trio/PLIST  Wed Dec 25 21:57:13 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.11 2024/08/08 05:16:50 adam Exp $
+@comment $NetBSD: PLIST,v 1.12 2024/12/25 21:57:13 adam Exp $
 ${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
 ${PYSITELIB}/${WHEEL_INFODIR}/LICENSE.APACHE2
 ${PYSITELIB}/${WHEEL_INFODIR}/LICENSE.MIT
@@ -79,6 +79,9 @@ ${PYSITELIB}/trio/_core/_parking_lot.pyo
 ${PYSITELIB}/trio/_core/_run.py
 ${PYSITELIB}/trio/_core/_run.pyc
 ${PYSITELIB}/trio/_core/_run.pyo
+${PYSITELIB}/trio/_core/_run_context.py
+${PYSITELIB}/trio/_core/_run_context.pyc
+${PYSITELIB}/trio/_core/_run_context.pyo
 ${PYSITELIB}/trio/_core/_tests/__init__.py
 ${PYSITELIB}/trio/_core/_tests/__init__.pyc
 ${PYSITELIB}/trio/_core/_tests/__init__.pyo
@@ -214,6 +217,7 @@ ${PYSITELIB}/trio/_sync.pyo
 ${PYSITELIB}/trio/_tests/__init__.py
 ${PYSITELIB}/trio/_tests/__init__.pyc
 ${PYSITELIB}/trio/_tests/__init__.pyo
+${PYSITELIB}/trio/_tests/astrill-codesigning-cert.cer
 ${PYSITELIB}/trio/_tests/check_type_completeness.py
 ${PYSITELIB}/trio/_tests/check_type_completeness.pyc
 ${PYSITELIB}/trio/_tests/check_type_completeness.pyo

Index: pkgsrc/devel/py-trio/distinfo
diff -u pkgsrc/devel/py-trio/distinfo:1.15 pkgsrc/devel/py-trio/distinfo:1.16
--- pkgsrc/devel/py-trio/distinfo:1.15  Sun Oct 20 08:23:04 2024
+++ pkgsrc/devel/py-trio/distinfo       Wed Dec 25 21:57:13 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.15 2024/10/20 08:23:04 adam Exp $
+$NetBSD: distinfo,v 1.16 2024/12/25 21:57:13 adam Exp $
 
-BLAKE2s (trio-0.27.0.tar.gz) = d063a13d8dd4575723311d00b45e6bfb48b26dc4707f12b007d68dfb03c75f5a
-SHA512 (trio-0.27.0.tar.gz) = 62598de84dcdfee4cb0c1bf388900b3a8acbb7006a2254650119c8d99d027b466c9005c3e1751207f3383451dca618fd917afc34e29474f13fd27aa613e75927
-Size (trio-0.27.0.tar.gz) = 568064 bytes
+BLAKE2s (trio-0.28.0.tar.gz) = b9f596db96331e026924029d98932b0fc105fdbb2eb48aa380bf0e5a9e917071
+SHA512 (trio-0.28.0.tar.gz) = ad6b3ce46ab9b10d58dc11e376751710d7b580175f3e2c0d48817e447e501f3d9780973647b7b46fecf6a9dc9a19965378315666b6b27440d19ed21efbf27dfa
+Size (trio-0.28.0.tar.gz) = 580318 bytes



Home | Main Index | Thread Index | Old Index