Tue Nov 23 21:07:18 2021 UTC ()
py-aiorpcX: updated to 0.22.1

Version 0.22.1 (25 May 2021)
release tasks as they complete in the task group; this might appear as a memory-leak for long-standing sessions

Version 0.22.0 (25 Apr 2021)
join() waits for all cancelled tasks to finish, including daemonic ones

Version 0.21.1 (24 Apr 2021)
handle peername of None in network code
strip redundant whitespace from JSON (SomberNight)

Version 0.21.0 (11 Mar 2021)
There have been significant semantic and API changes for TaskGroups. Their behaviour is now consistent, reliable and they have the same semantics as curio. As such I consider their API finalized and stable. In addition to the notes below for 0.20.x:
closed() became the attribute joined.
cancel_remaining() does not cancel daemonic tasks. As before it waits for the cancelled tasks to complete.
On return from join() all tasks including deamonic ones have been cancelled, but nothing is waited for. If leaving a TaskGroup context because of an exception, cancel_remaining() - which can block - is called before join().

Version 0.20.2 (10 Mar 2021)
result, exception, results and exceptions are now attributes. They raise a RuntimeError if called before a TaskGroup窶冱 join() operation has returned.

Version 0.20.1 (06 Mar 2021)
this release contains some significant API changes which users will need to carefully check their code for.
the report_crash argument to spawn() is removed; instead a new one is named daemon. A daemon task窶冱 exception (if any) is ignored by a TaskGroup.
the join() method of TaskGroup (and so also when TaskGroup is used as a context manager) does not raise the exception of failed tasks. The full semantics are precisely described in the TaskGroup() docstring. Briefly: any task being cancelled or raising an exception causes join() to finish and all remaining tasks, including daemon tasks, to be cancelled. join() does not propagate task exceptions.
the cancel_remaining() method of TaskGroup does not propagate any task exceptions
TaskGroup supports the additional attributes 窶�tasks窶� and 窶賄aemons窶�. Also, after join() has completed, result() returns the result (or raises the exception) of the first completed task. exception() returns the exception (if any) of the first completed task. results() returns the results of all tasks and exceptions() returns the exceptions raised by all tasks. daemon tasks are ignored.
The above changes bring the implementation in line with curio proper and the semantic changes it made over a year ago, and ensure that join() behaves consistently when called more than once.


(adam)
diff -r1.3 -r1.4 pkgsrc/net/py-aiorpcX/Makefile
diff -r1.4 -r1.5 pkgsrc/net/py-aiorpcX/distinfo

cvs diff -r1.3 -r1.4 pkgsrc/net/py-aiorpcX/Makefile (expand / switch to unified diff)

--- pkgsrc/net/py-aiorpcX/Makefile 2021/11/08 16:33:15 1.3
+++ pkgsrc/net/py-aiorpcX/Makefile 2021/11/23 21:07:18 1.4
@@ -1,19 +1,20 @@ @@ -1,19 +1,20 @@
1# $NetBSD: Makefile,v 1.3 2021/11/08 16:33:15 cirnatdan Exp $ 1# $NetBSD: Makefile,v 1.4 2021/11/23 21:07:18 adam Exp $
2 2
3DISTNAME= aiorpcX-0.18.7 3DISTNAME= aiorpcX-0.22.1
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= net devel 5CATEGORIES= net python
6MASTER_SITES= ${MASTER_SITE_PYPI:=a/aiorpcX/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=a/aiorpcX/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://github.com/kyuupichan/aiorpcX 9HOMEPAGE= https://github.com/kyuupichan/aiorpcX
10COMMENT= Generic async RPC implementation, including JSON-RPC 10COMMENT= Generic async RPC implementation, including JSON-RPC
11LICENSE= mit 11LICENSE= mit
12 12
 13DEPENDS+= ${PYPKGPREFIX}-websockets-[0-9]*:../../www/py-websockets
 14
13USE_LANGUAGES= # none 15USE_LANGUAGES= # none
14PYTHON_VERSIONS_INCOMPATIBLE= 27 
15 16
16DEPENDS+= ${PYPKGPREFIX}-websockets-[0-9]*:../../www/py-websockets 17PYTHON_VERSIONS_INCOMPATIBLE= 27 36
17 18
18.include "../../lang/python/distutils.mk" 19.include "../../lang/python/distutils.mk"
19.include "../../mk/bsd.pkg.mk" 20.include "../../mk/bsd.pkg.mk"

cvs diff -r1.4 -r1.5 pkgsrc/net/py-aiorpcX/distinfo (expand / switch to unified diff)

--- pkgsrc/net/py-aiorpcX/distinfo 2021/11/08 16:33:15 1.4
+++ pkgsrc/net/py-aiorpcX/distinfo 2021/11/23 21:07:18 1.5
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.4 2021/11/08 16:33:15 cirnatdan Exp $ 1$NetBSD: distinfo,v 1.5 2021/11/23 21:07:18 adam Exp $
2 2
3BLAKE2s (aiorpcX-0.18.7.tar.gz) = 272b6070773a6f782de41aa89008c2360d328333cdd1375cf72a066298448495 3BLAKE2s (aiorpcX-0.22.1.tar.gz) = e16f29c303bf6e9dcf00c42eff71ab2585e3827697fbae278c0a77d4321e4157
4SHA512 (aiorpcX-0.18.7.tar.gz) = 7d2c3495a4b4cdd1bd91478324685ee8b131a6e3f5f6665324f508e9b211c0ffb6d5590e7fb603f0919724a1983586aeaffd024f95880026baf43d70167a8bf1 4SHA512 (aiorpcX-0.22.1.tar.gz) = 0372c725d80dbaa7ea869957dfeeac522f9f0995b6ac5bb8a9f20ae768dc86d9fdaf831a54611ff09f459fa47c04e9f8f867374b17a485bfe92beb40108a5a11
5Size (aiorpcX-0.18.7.tar.gz) = 28206 bytes 5Size (aiorpcX-0.22.1.tar.gz) = 28803 bytes