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: Sun Oct 20 08:23:04 UTC 2024
Modified Files:
pkgsrc/devel/py-trio: Makefile distinfo
Log Message:
py-trio: update to 0.27.0
Trio 0.27.0 (2024-10-17)
Breaking changes
- :func:`trio.move_on_after` and :func:`trio.fail_after` previously set the deadline relative to initialization time, instead of more intuitively upon entering the context manager. This might change
timeouts if a program relied on this behavior. If you want to restore previous behavior you should instead use ``trio.move_on_at(trio.current_time() + ...)``.
flake8-async has a new rule to catch this, in case you're supporting older trio versions. See :ref:`ASYNC122`.
Features
- :meth:`CancelScope.relative_deadline` and :meth:`CancelScope.is_relative` added, as well as a ``relative_deadline`` parameter to ``__init__``. This allows initializing scopes ahead of time, but
where the specified relative deadline doesn't count down until the scope is entered.
- :class:`trio.Lock` and :class:`trio.StrictFIFOLock` will now raise :exc:`trio.BrokenResourceError` when :meth:`trio.Lock.acquire` would previously stall due to the owner of the lock exiting without
releasing the lock.
- `trio.move_on_at`, `trio.move_on_after`, `trio.fail_at` and `trio.fail_after` now accept *shield* as a keyword argument. If specified, it provides an initial value for the
`~trio.CancelScope.shield` attribute of the `trio.CancelScope` object created by the context manager.
- Added :func:`trio.lowlevel.add_parking_lot_breaker` and :func:`trio.lowlevel.remove_parking_lot_breaker` to allow creating custom lock/semaphore implementations that will break their underlying
parking lot if a task exits unexpectedly. :meth:`trio.lowlevel.ParkingLot.break_lot` is also added, to allow breaking a parking lot intentionally.
Bugfixes
- Allow sockets to bind any ``os.PathLike`` object.
- Update ``trio.lowlevel.open_process``'s documentation to allow bytes.
- Update :func:`trio.sleep_forever` to be `NoReturn`.
Improved documentation
- Add docstrings for memory channels' ``statistics()`` and ``aclose`` methods.
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 pkgsrc/devel/py-trio/Makefile
cvs rdiff -u -r1.14 -r1.15 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.19 pkgsrc/devel/py-trio/Makefile:1.20
--- pkgsrc/devel/py-trio/Makefile:1.19 Thu Aug 8 05:16:49 2024
+++ pkgsrc/devel/py-trio/Makefile Sun Oct 20 08:23:04 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.19 2024/08/08 05:16:49 adam Exp $
+# $NetBSD: Makefile,v 1.20 2024/10/20 08:23:04 adam Exp $
-DISTNAME= trio-0.26.2
+DISTNAME= trio-0.27.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=t/trio/}
@@ -28,8 +28,6 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-trustme-[0
# for tests
USE_LANGUAGES= c
-PYTHON_VERSIONS_INCOMPATIBLE= 27
-
.include "../../lang/python/pyversion.mk"
.if ${PYTHON_VERSION} < 311
DEPENDS+= ${PYPKGPREFIX}-exceptiongroup>=1.0.0:../../devel/py-exceptiongroup
Index: pkgsrc/devel/py-trio/distinfo
diff -u pkgsrc/devel/py-trio/distinfo:1.14 pkgsrc/devel/py-trio/distinfo:1.15
--- pkgsrc/devel/py-trio/distinfo:1.14 Thu Aug 8 05:16:50 2024
+++ pkgsrc/devel/py-trio/distinfo Sun Oct 20 08:23:04 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.14 2024/08/08 05:16:50 adam Exp $
+$NetBSD: distinfo,v 1.15 2024/10/20 08:23:04 adam Exp $
-BLAKE2s (trio-0.26.2.tar.gz) = 4d27cf1343bf78e01bf39bacebf962cabbe08662b4e4d23dfafe7eb982281e7a
-SHA512 (trio-0.26.2.tar.gz) = 97df55a83b85a1c72440f13633ce80ec3e6ba59ec70f76335ad142bcefdae4b97ebdbec5d3f19592a08959a70ef91865632ea2eda1dddeb902adfd8eeca54ff5
-Size (trio-0.26.2.tar.gz) = 561156 bytes
+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
Home |
Main Index |
Thread Index |
Old Index