Skip to content

Commit b12dbb1

Browse files
author
adam
committed
py-anyio: updated to 4.10.0
4.10.0 - Added the ``feed_data()`` method to the ``BufferedByteReceiveStream`` class, allowing users to inject data directly into the buffer - Added various class methods to wrap existing sockets as listeners or socket streams: * ``SocketListener.from_socket()`` * ``SocketStream.from_socket()`` * ``UNIXSocketStream.from_socket()`` * ``UDPSocket.from_socket()`` * ``ConnectedUDPSocket.from_socket()`` * ``UNIXDatagramSocket.from_socket()`` * ``ConnectedUNIXDatagramSocket.from_socket()`` - Added a hierarchy of connectable stream classes for transparently connecting to various remote or local endpoints for exchanging bytes or objects - Added context manager mix-in classes (``anyio.ContextManagerMixin`` and ``anyio.AsyncContextManagerMixin``) to help write classes that embed other context managers, particularly cancel scopes or task groups - Added the ability to specify the thread name in ``start_blocking_portal()`` - Added ``anyio.notify_closing`` to allow waking ``anyio.wait_readable`` and ``anyio.wait_writable`` before closing a socket. Among other things, this prevents an OSError on the ``ProactorEventLoop``. - Incorporated several documentation improvements from the EuroPython 2025 sprint (special thanks to the sprinters: Emmanuel Okedele, Jan Murre, Euxenia Miruna Goia and Christoffer Fjord) - Added a documentation page explaining why one might want to use AnyIO's APIs instead of asyncio's - Updated the ``to_interpreters`` module to use the public ``concurrent.interpreters`` API on Python 3.14 or later - Fixed ``anyio.Path.copy()`` and ``anyio.Path.copy_into()`` failing on Python 3.14.0a7 - Fixed return annotation of ``__aexit__`` on async context managers. CMs which can suppress exceptions should return ``bool``, or ``None`` otherwise. - Fixed rollover boundary check in ``SpooledTemporaryFile`` so that rollover only occurs when the buffer size exceeds ``max_size`` - Migrated testing and documentation dependencies from extras to dependency groups - Fixed compatibility of ``anyio.to_interpreter`` with Python 3.14.0b2 - Fixed ``SyntaxWarning`` on Python 3.14 about ``return`` in ``finally`` - Fixed RunVar name conflicts. RunVar instances with the same name should not share storage - Renamed the ``BrokenWorkerIntepreter`` exception to ``BrokenWorkerInterpreter``. The old name is available as a deprecated alias. - Fixed an edge case in ``CapacityLimiter`` on asyncio where a task, waiting to acquire a limiter gets cancelled and is subsequently granted a token from the limiter, but before the cancellation is delivered, and then fails to notify the next waiting task
1 parent 6814259 commit b12dbb1

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

devel/py-anyio/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# $NetBSD: Makefile,v 1.28 2025/04/12 08:05:04 adam Exp $
1+
# $NetBSD: Makefile,v 1.29 2025/08/05 05:53:28 adam Exp $
22

3-
DISTNAME= anyio-4.9.0
3+
DISTNAME= anyio-4.10.0
44
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
55
CATEGORIES= devel python
66
MASTER_SITES= ${MASTER_SITE_PYPI:=a/anyio/}
@@ -34,6 +34,8 @@ USE_LANGUAGES= # none
3434
.include "../../lang/python/pyversion.mk"
3535
.if ${PYTHON_VERSION} < 311
3636
DEPENDS+= ${PYPKGPREFIX}-exceptiongroup>=1.0.2:../../devel/py-exceptiongroup
37+
.endif
38+
.if ${PYTHON_VERSION} < 313
3739
DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=4.5:../../devel/py-typing-extensions
3840
.endif
3941
.if ${PYTHON_VERSION} >= 310

devel/py-anyio/PLIST

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@comment $NetBSD: PLIST,v 1.7 2025/04/12 08:05:04 adam Exp $
1+
@comment $NetBSD: PLIST,v 1.8 2025/08/05 05:53:28 adam Exp $
22
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
33
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
44
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
@@ -23,6 +23,9 @@ ${PYSITELIB}/anyio/_core/__init__.pyo
2323
${PYSITELIB}/anyio/_core/_asyncio_selector_thread.py
2424
${PYSITELIB}/anyio/_core/_asyncio_selector_thread.pyc
2525
${PYSITELIB}/anyio/_core/_asyncio_selector_thread.pyo
26+
${PYSITELIB}/anyio/_core/_contextmanagers.py
27+
${PYSITELIB}/anyio/_core/_contextmanagers.pyc
28+
${PYSITELIB}/anyio/_core/_contextmanagers.pyo
2629
${PYSITELIB}/anyio/_core/_eventloop.py
2730
${PYSITELIB}/anyio/_core/_eventloop.pyc
2831
${PYSITELIB}/anyio/_core/_eventloop.pyo

devel/py-anyio/distinfo

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
$NetBSD: distinfo,v 1.25 2025/04/12 08:05:04 adam Exp $
1+
$NetBSD: distinfo,v 1.26 2025/08/05 05:53:28 adam Exp $
22

3-
BLAKE2s (anyio-4.9.0.tar.gz) = 874bff65c9316b1d14d0e400e8d73db7435679cea5305b53a34675b1b86dffb6
4-
SHA512 (anyio-4.9.0.tar.gz) = 73ff6dfada89fc3869f59b13847b350acecf178a0ab3cec9ae55ce3cffda9ea56f6adbd291682ee064a773c6dd5372e2f6693b43fb14b0d19bbaaf69e24ceeed
5-
Size (anyio-4.9.0.tar.gz) = 190949 bytes
3+
BLAKE2s (anyio-4.10.0.tar.gz) = 58f90465dccd00ca831b68df8c78174495add9fa8aada5fb0370c939752e0c22
4+
SHA512 (anyio-4.10.0.tar.gz) = c696ce5216ff3b93114a53a938461c63df402ea099528e876d31af71c46242ed2b488819accb073c1e312dcad023b5836e5d462992ea01bf7d87b0b9ef3186ed
5+
Size (anyio-4.10.0.tar.gz) = 213252 bytes

0 commit comments

Comments
 (0)