pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-test-asyncio py-test-asyncio: updated to 0.17.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dcd265e958d1
branches:  trunk
changeset: 372947:dcd265e958d1
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Feb 02 19:04:57 2022 +0000

description:
py-test-asyncio: updated to 0.17.2

0.17.2 (22-01-17)

Require typing-extensions on Python<3.8 only.
Fix a regression in tests collection introduced by 0.17.1, the
plugin works fine with non-python tests again.


0.17.1 (22-01-16)

Fixes a bug that prevents async Hypothesis tests from working
without explicit asyncio marker when --asyncio-mode=auto is set.
Fixed a bug that closes the default event loop if the loop doesn't
exist
Added type annotations.
Show asyncio mode in pytest report headers.
Relax asyncio_mode type definition; it allows to support pytest
6.1+.


0.17.0 (22-01-13)
[pytest-asyncio]{.title-ref} no longer alters existing event loop
policies.
Drop support for Python 3.6
Fixed an issue when pytest-asyncio was used in combination with
[flaky]{.title-ref} or inherited asynchronous Hypothesis tests.
Added flaky to test dependencies
Added unused_udp_port and unused_udp_port_factory fixtures
(similar to unused_tcp_port and unused_tcp_port_factory
counterparts.
Added the plugin modes: strict, auto, and legacy. See
documentation
for details.
Correctly process KeyboardInterrupt during async fixture setup
phase

diffstat:

 devel/py-test-asyncio/Makefile |  18 ++++++++++++++----
 devel/py-test-asyncio/PLIST    |   6 +++++-
 devel/py-test-asyncio/distinfo |   8 ++++----
 3 files changed, 23 insertions(+), 9 deletions(-)

diffs (71 lines):

diff -r 1ad67f9997e8 -r dcd265e958d1 devel/py-test-asyncio/Makefile
--- a/devel/py-test-asyncio/Makefile    Wed Feb 02 18:55:46 2022 +0000
+++ b/devel/py-test-asyncio/Makefile    Wed Feb 02 19:04:57 2022 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.10 2022/01/04 20:53:40 wiz Exp $
+# $NetBSD: Makefile,v 1.11 2022/02/02 19:04:57 adam Exp $
 
-DISTNAME=      pytest-asyncio-0.16.0
+DISTNAME=      pytest-asyncio-0.17.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
-PKGREVISION=   1
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest-asyncio/}
 
@@ -11,11 +10,22 @@
 COMMENT=       Pytest support for asyncio
 LICENSE=       apache-2.0
 
-DEPENDS+=      ${PYPKGPREFIX}-test>=5.4.0:../../devel/py-test
+DEPENDS+=      ${PYPKGPREFIX}-test>=6.1.0:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-coverage>0:../../devel/py-coverage
+TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis>=5.7.1:../../devel/py-hypothesis
+TEST_DEPENDS+= ${PYPKGPREFIX}-flaky>=3.5.0:../../devel/py-flaky
+TEST_DEPENDS+= ${PYPKGPREFIX}-mypy>=0.931:../../lang/py-mypy
 
 USE_LANGUAGES= # none
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
+.include "../../lang/python/pyversion.mk"
+.if ${_PYTHON_VERSION} < 38
+DEPENDS+=      ${PYPKGPREFIX}-typing-extensions>0:../../devel/py-typing-extensions
+.endif
+
+do-test:
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 1ad67f9997e8 -r dcd265e958d1 devel/py-test-asyncio/PLIST
--- a/devel/py-test-asyncio/PLIST       Wed Feb 02 18:55:46 2022 +0000
+++ b/devel/py-test-asyncio/PLIST       Wed Feb 02 19:04:57 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2018/02/05 16:28:49 adam Exp $
+@comment $NetBSD: PLIST,v 1.2 2022/02/02 19:04:57 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -8,6 +8,10 @@
 ${PYSITELIB}/pytest_asyncio/__init__.py
 ${PYSITELIB}/pytest_asyncio/__init__.pyc
 ${PYSITELIB}/pytest_asyncio/__init__.pyo
+${PYSITELIB}/pytest_asyncio/_version.py
+${PYSITELIB}/pytest_asyncio/_version.pyc
+${PYSITELIB}/pytest_asyncio/_version.pyo
 ${PYSITELIB}/pytest_asyncio/plugin.py
 ${PYSITELIB}/pytest_asyncio/plugin.pyc
 ${PYSITELIB}/pytest_asyncio/plugin.pyo
+${PYSITELIB}/pytest_asyncio/py.typed
diff -r 1ad67f9997e8 -r dcd265e958d1 devel/py-test-asyncio/distinfo
--- a/devel/py-test-asyncio/distinfo    Wed Feb 02 18:55:46 2022 +0000
+++ b/devel/py-test-asyncio/distinfo    Wed Feb 02 19:04:57 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.9 2021/10/26 17:24:44 adam Exp $
+$NetBSD: distinfo,v 1.10 2022/02/02 19:04:57 adam Exp $
 
-BLAKE2s (pytest-asyncio-0.16.0.tar.gz) = 0c6d3440408ab207267d0fff2678db401a7ba0fd54acab921a311dcf4fe4e46e
-SHA512 (pytest-asyncio-0.16.0.tar.gz) = 0ac5fe36ecf15525fbc271c27d591481447c077f0b135d1020bf33bbe4f60b4bc95c5e0fb19108c664f3e33d796f1ea59b1670be294a1d662154d83a1aa51b42
-Size (pytest-asyncio-0.16.0.tar.gz) = 12095 bytes
+BLAKE2s (pytest-asyncio-0.17.2.tar.gz) = 0fb723a8f5d2d83fc509451868f77a851643975e9599d5b59cda3754d12edaf8
+SHA512 (pytest-asyncio-0.17.2.tar.gz) = 5a18d1920cf7ef727d01070d0c4ace190ff80fd2a79eca3fe142e3f01d396fea2ca51e7823e91e9ab5c474510e5cd00aa7f058fb4d26290cca0a4cd51e4589f3
+Size (pytest-asyncio-0.17.2.tar.gz) = 31194 bytes



Home | Main Index | Thread Index | Old Index