pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-async-timeout py-async-timeout: updated to 4.0.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/296d5ec8d9ef
branches:  trunk
changeset: 770003:296d5ec8d9ef
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Nov 23 20:45:01 2021 +0000

description:
py-async-timeout: updated to 4.0.1

4.0.1 (2121-11-10)

Fix regression:

Don't raise TimeoutError from timeout object that doesn't enter into async context manager
Use call_soon() for raising TimeoutError if deadline is reached on entering into async context manager

Make Timeout class available in __all__.

4.0.0 (2021-11-01)

Implemented timeout_at(deadline)
Supported timeout.deadline and timeout.expired properties.
Dropped timeout.remaining property: it can be calculated as timeout.deadline - loop.time()
Dropped timeout.timeout property that returns a relative timeout based on the timeout object creation time; the absolute timeout.deadline should be used instead.
Added the deadline modification methods: timeout.reject(), timeout.shift(delay), timeout.update(deadline).
Deprecated synchronous context manager usage

diffstat:

 devel/py-async-timeout/Makefile |  12 +++++++++---
 devel/py-async-timeout/PLIST    |   4 +++-
 devel/py-async-timeout/distinfo |   8 ++++----
 3 files changed, 16 insertions(+), 8 deletions(-)

diffs (59 lines):

diff -r 3891e6ebd38a -r 296d5ec8d9ef devel/py-async-timeout/Makefile
--- a/devel/py-async-timeout/Makefile   Tue Nov 23 20:23:32 2021 +0000
+++ b/devel/py-async-timeout/Makefile   Tue Nov 23 20:45:01 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.10 2019/04/26 13:13:50 maya Exp $
+# $NetBSD: Makefile,v 1.11 2021/11/23 20:45:01 adam Exp $
 
-DISTNAME=      async-timeout-3.0.1
+DISTNAME=      async-timeout-4.0.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=a/async-timeout/}
@@ -10,11 +10,17 @@
 COMMENT=       Timeout context manager for asyncio programs
 LICENSE=       apache-2.0
 
+DEPENDS+=      ${PYPKGPREFIX}-typing-extensions>=3.6.5:../../devel/py-typing-extensions
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-asyncio-[0-9]*:../../devel/py-test-asyncio
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
+
 USE_LANGUAGES= # none
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
-.include "../../lang/python/pyversion.mk"
+do-test:
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 3891e6ebd38a -r 296d5ec8d9ef devel/py-async-timeout/PLIST
--- a/devel/py-async-timeout/PLIST      Tue Nov 23 20:23:32 2021 +0000
+++ b/devel/py-async-timeout/PLIST      Tue Nov 23 20:45:01 2021 +0000
@@ -1,8 +1,10 @@
-@comment $NetBSD: PLIST,v 1.2 2018/05/08 04:48:49 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2021/11/23 20:45:01 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/${EGG_INFODIR}/zip-safe
 ${PYSITELIB}/async_timeout/__init__.py
 ${PYSITELIB}/async_timeout/__init__.pyc
 ${PYSITELIB}/async_timeout/__init__.pyo
diff -r 3891e6ebd38a -r 296d5ec8d9ef devel/py-async-timeout/distinfo
--- a/devel/py-async-timeout/distinfo   Tue Nov 23 20:23:32 2021 +0000
+++ b/devel/py-async-timeout/distinfo   Tue Nov 23 20:45:01 2021 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.9 2021/10/26 10:18:11 nia Exp $
+$NetBSD: distinfo,v 1.10 2021/11/23 20:45:01 adam Exp $
 
-BLAKE2s (async-timeout-3.0.1.tar.gz) = c24b723d407031a6742f7cbd1900c0ddc6a5e952e08cbece8c583dc9e4ebc236
-SHA512 (async-timeout-3.0.1.tar.gz) = fd30842671a79edfd52c7350e7fb2120533a6d97b44975f7b071ce2cbde43443bd5bbe1f2ad0ad3ab2156e1987b9e58e0c149b0ecfea8674eb0cb78eee79c986
-Size (async-timeout-3.0.1.tar.gz) = 9724 bytes
+BLAKE2s (async-timeout-4.0.1.tar.gz) = b8ea97426e8139592c76f1a3f834800b24f2c0152467eb9f37588213440b4d94
+SHA512 (async-timeout-4.0.1.tar.gz) = 24a72daf9e0737d0be351a35ff28242dea735bed33f06d9865a71983b1341693c80856c0668d6a485bccc8cf7b9adde33fa904e94bf4730e4a678216e572d119
+Size (async-timeout-4.0.1.tar.gz) = 8030 bytes



Home | Main Index | Thread Index | Old Index