Tue Jan 24 19:50:07 2023 UTC ()
py-asgiref: updated to 3.6.0

3.6.0 (2022-12-20)
------------------

* Two new functions are added to the ``asgiref.sync`` module: ``iscoroutinefunction()``
  and ``markcoroutinefunction()``.

  Python 3.12 deprecates ``asyncio.iscoroutinefunction()`` as an alias for
  ``inspect.iscoroutinefunction()``, whilst also removing the ``_is_coroutine`` marker.
  The latter is replaced with the ``inspect.markcoroutinefunction`` decorator.

  The new ``asgiref.sync`` functions are compatibility shims for these
  functions that can be used until Python 3.12 is the minimum supported
  version.

  **Note** that these functions are considered **beta**, and as such, whilst
  not likely, are subject to change in a point release, until the final release
  of Python 3.12. They are included in ``asgiref`` now so that they can be
  adopted by Django 4.2, in preparation for support of Python 3.12.

* The ``loop`` argument to ``asgiref.timeout.timeout`` is deprecated. As per other
  ``asyncio`` based APIs, the running event loop is used by default. Note that
  ``asyncio`` provides timeout utilities from Python 3.11, and these should be
  preferred where available.

* Support for the ``ASGI_THREADS`` environment variable, used by
  ``SyncToAsync``, is removed. In general, a running event-loop is not
  available to `asgiref` at import time, and so the default thread pool
  executor cannot be configured. Protocol servers, or applications, should set
  the default executor as required when configuring the event loop at
  application startup.


(adam)
diff -r1.31 -r1.32 pkgsrc/www/py-asgiref/Makefile
diff -r1.30 -r1.31 pkgsrc/www/py-asgiref/distinfo

cvs diff -r1.31 -r1.32 pkgsrc/www/py-asgiref/Makefile (expand / switch to unified diff)

--- pkgsrc/www/py-asgiref/Makefile 2022/05/19 13:16:03 1.31
+++ pkgsrc/www/py-asgiref/Makefile 2023/01/24 19:50:07 1.32
@@ -1,29 +1,24 @@ @@ -1,29 +1,24 @@
1# $NetBSD: Makefile,v 1.31 2022/05/19 13:16:03 adam Exp $ 1# $NetBSD: Makefile,v 1.32 2023/01/24 19:50:07 adam Exp $
2 2
3DISTNAME= asgiref-3.5.2 3DISTNAME= asgiref-3.6.0
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= www python 5CATEGORIES= www python
6MASTER_SITES= ${MASTER_SITE_PYPI:=a/asgiref/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=a/asgiref/}
7 7
8MAINTAINER= adam@NetBSD.org 8MAINTAINER= adam@NetBSD.org
9HOMEPAGE= https://github.com/django/asgiref 9HOMEPAGE= https://github.com/django/asgiref
10COMMENT= Contains various reference ASGI implementations 10COMMENT= Contains various reference ASGI implementations
11LICENSE= modified-bsd 11LICENSE= modified-bsd
12 12
13TEST_DEPENDS+= ${PYPKGPREFIX}-test>=4.3.0:../../devel/py-test 13TEST_DEPENDS+= ${PYPKGPREFIX}-test>=4.3.0:../../devel/py-test
14TEST_DEPENDS+= ${PYPKGPREFIX}-test-asyncio>=0.10.0:../../devel/py-test-asyncio 14TEST_DEPENDS+= ${PYPKGPREFIX}-test-asyncio>=0.10.0:../../devel/py-test-asyncio
15TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner 15TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
16 16
17USE_LANGUAGES= # none 17USE_LANGUAGES= # none
18 18
19PYSETUPTESTTARGET= pytest 19PYSETUPTESTTARGET= pytest
20 20
21PYTHON_VERSIONS_INCOMPATIBLE= 27 21PYTHON_VERSIONS_INCOMPATIBLE= 27
22 22
23.include "../../lang/python/pyversion.mk" 
24.if ${_PYTHON_VERSION} < 38 
25DEPENDS+= ${PYPKGPREFIX}-typing-extensions-[0-9]*:../../devel/py-typing-extensions 
26.endif 
27 
28.include "../../lang/python/egg.mk" 23.include "../../lang/python/egg.mk"
29.include "../../mk/bsd.pkg.mk" 24.include "../../mk/bsd.pkg.mk"

cvs diff -r1.30 -r1.31 pkgsrc/www/py-asgiref/distinfo (expand / switch to unified diff)

--- pkgsrc/www/py-asgiref/distinfo 2022/05/19 13:16:03 1.30
+++ pkgsrc/www/py-asgiref/distinfo 2023/01/24 19:50:07 1.31
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.30 2022/05/19 13:16:03 adam Exp $ 1$NetBSD: distinfo,v 1.31 2023/01/24 19:50:07 adam Exp $
2 2
3BLAKE2s (asgiref-3.5.2.tar.gz) = 30ef666e11a657e74bc51c520124b61fa54a12a8dc617256481e2ddf945043df 3BLAKE2s (asgiref-3.6.0.tar.gz) = d6d04570f10588ff252d06d541f38b8a2538b8fe69f3ed5b3cab7120ae1de376
4SHA512 (asgiref-3.5.2.tar.gz) = d5ed0275dc748674018b14d58941113c19e1e30c1fed63c40d3069a4a09d81a6cceb186e7a0ef26912a040df082ae71b2ca9198d67f0b786b53d3d4089530fbb 4SHA512 (asgiref-3.6.0.tar.gz) = b74d71e3a5d129117293512ed93e06a9ac0f681766abfc074be6c8deec7160995dee23947da861715fa47e2b9921669b6b5bf247f8d895ffbea7007ea956b9d6
5Size (asgiref-3.5.2.tar.gz) = 32352 bytes 5Size (asgiref-3.6.0.tar.gz) = 32748 bytes