pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-anyio



Module Name:    pkgsrc
Committed By:   adam
Date:           Mon Jun 22 15:43:40 UTC 2026

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

Log Message:
py-anyio: updated to 4.14.0

4.14.0

- Added support for Python 3.15
- Added an asynchronous implementation of the ``itertools`` module

- Added the ``local_port`` parameter to ``connect_tcp()`` to allow binding to a
  specific local port before connecting

- Added support for custom capacity limiters in async path and file I/O
  functions and classes
- Added the ``create_task()`` task group method for easier asyncio migration (returns a
  ``TaskHandle``)

- Changed ``TaskGroup.start_soon()`` to return a ``TaskHandle``
- Added an option for ``TaskGroup.start()`` to return a ``TaskHandle`` (which then
  contains the start value in the ``start_value`` property)
- Added the ``cancel()`` convenience method to ``TaskGroup`` as a shortcut for
  cancelling the task group's cancel scope
- Improved the error message when a known backend is not installed to suggest the
  install command

- Improved ``anyio.Path`` to preserve subclass types by returning ``Self`` in methods
  that return path objects

- Changed the parameter type annotation in ``anyio.Path.write_bytes()`` to accept
  any ``ReadableBuffer``, thus allowing it to accept ``bytearray`` and ``memoryview`` to
  match ``pathlib.Path.write_bytes()``

- Changed several type annotations to only accept callables returning coroutine-like
  objects instead of arbitrary awaitables:

  - ``TaskGroup.start_soon()``
  - ``TaskGroup.start()``
  - ``anyio.from_thread.run()``

  This reverts an earlier change from v3.7.0 which was made in error.

- Changed ``anyio.run`` to support callables returning arbitrary awaitables at runtime
  on all backends. Previously, this only worked on asyncio
- Changed several classes (and their subclasses) to have ``__slots__`` (with
  ``__weakref__``):

  * ``anyio.CancelScope``
  * ``anyio.CapacityLimiter``
  * ``anyio.Condition``
  * ``anyio.Event``
  * ``anyio.Lock``
  * ``anyio.ResourceGuard``
  * ``anyio.Semaphore``
- Fixed cancellation exception escaping a cancel scope when triggered via
  ``check_cancelled()`` in a worker thread

- Fixed ``TaskGroup`` raising ``AttributeError`` instead of a clear error when entered
  more than once

- Fixed lost type information when passing arguments to ``lru_cache``

- Fixed test resumption after ``KeyboardInterrupt`` in async generator fixtures on the
  asyncio backend

- Fixed import of ``__main__`` in ``to_process`` workers when entrypoint script
  doesn't end in ``.py``, such as when using ``console_script`` entrypoints.

- Fixed ``SocketListener.from_socket()`` returning a TCP listener for ``AF_UNIX``
  listening sockets, causing ``accept()`` to fail with ``ENOTSUP``

- Fixed ``UDPSocket.aclose()`` and ``ConnectedUDPSocket.aclose()`` on asyncio returning
  before the underlying socket FD was actually released

- Fixed trio backend test runner hanging indefinitely instead of raising an error
  when dynamically accessing an async fixture via ``request.getfixturevalue``

- Fixed cancelling tasks started through a ``BlockingPortal`` after the portal has been
  stopped

- Fixed ``backend_options`` being ignored when running the Trio backend via
  ``anyio.run()``; the options are now passed as keyword arguments to ``trio.run()``
  again, as documented (a regression from AnyIO 3)

- Fixed asyncio ``Lock`` and ``Semaphore`` deadlocks caused by cancelled waiters
  left queued during release


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 pkgsrc/devel/py-anyio/Makefile
cvs rdiff -u -r1.9 -r1.10 pkgsrc/devel/py-anyio/PLIST
cvs rdiff -u -r1.30 -r1.31 pkgsrc/devel/py-anyio/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-anyio/Makefile
diff -u pkgsrc/devel/py-anyio/Makefile:1.34 pkgsrc/devel/py-anyio/Makefile:1.35
--- pkgsrc/devel/py-anyio/Makefile:1.34 Thu Mar 26 10:58:23 2026
+++ pkgsrc/devel/py-anyio/Makefile      Mon Jun 22 15:43:40 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.34 2026/03/26 10:58:23 adam Exp $
+# $NetBSD: Makefile,v 1.35 2026/06/22 15:43:40 adam Exp $
 
-DISTNAME=      anyio-4.13.0
+DISTNAME=      anyio-4.14.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=a/anyio/}

Index: pkgsrc/devel/py-anyio/PLIST
diff -u pkgsrc/devel/py-anyio/PLIST:1.9 pkgsrc/devel/py-anyio/PLIST:1.10
--- pkgsrc/devel/py-anyio/PLIST:1.9     Sat Nov 29 17:47:22 2025
+++ pkgsrc/devel/py-anyio/PLIST Mon Jun 22 15:43:40 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.9 2025/11/29 17:47:22 adam Exp $
+@comment $NetBSD: PLIST,v 1.10 2026/06/22 15:43:40 adam Exp $
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
 ${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
@@ -95,6 +95,9 @@ ${PYSITELIB}/anyio/from_thread.pyo
 ${PYSITELIB}/anyio/functools.py
 ${PYSITELIB}/anyio/functools.pyc
 ${PYSITELIB}/anyio/functools.pyo
+${PYSITELIB}/anyio/itertools.py
+${PYSITELIB}/anyio/itertools.pyc
+${PYSITELIB}/anyio/itertools.pyo
 ${PYSITELIB}/anyio/lowlevel.py
 ${PYSITELIB}/anyio/lowlevel.pyc
 ${PYSITELIB}/anyio/lowlevel.pyo

Index: pkgsrc/devel/py-anyio/distinfo
diff -u pkgsrc/devel/py-anyio/distinfo:1.30 pkgsrc/devel/py-anyio/distinfo:1.31
--- pkgsrc/devel/py-anyio/distinfo:1.30 Thu Mar 26 10:58:23 2026
+++ pkgsrc/devel/py-anyio/distinfo      Mon Jun 22 15:43:40 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.30 2026/03/26 10:58:23 adam Exp $
+$NetBSD: distinfo,v 1.31 2026/06/22 15:43:40 adam Exp $
 
-BLAKE2s (anyio-4.13.0.tar.gz) = b314136e620ffd6ba34457d4860153a13211e384f5746fdab164e35d2f4a93ef
-SHA512 (anyio-4.13.0.tar.gz) = 3961bcc1d0d60ba78497203e19ee5a1c3bd7a067777f384d3353a4b0e37db7bf7bea364ef505f87575415db4bd2f06996d85913eb4e91e03f56d6b1e2d3a7ccb
-Size (anyio-4.13.0.tar.gz) = 231622 bytes
+BLAKE2s (anyio-4.14.0.tar.gz) = dab4826390e1acf07afc0c366ee39dfe4391854853df5911e38680f1906f5af9
+SHA512 (anyio-4.14.0.tar.gz) = 9d0e786c3bfe61f9001d3eac8e53a7efbc74dac0a61e3c07ce64bd7d090966a960f9f0967a41442b7cf99aa5ff1525d6ad2b73c9bf75da6295c44316f882ce47
+Size (anyio-4.14.0.tar.gz) = 253586 bytes



Home | Main Index | Thread Index | Old Index