a27b0768b8
pytest-trio 0.8.0 (2022-11-01) ------------------------------ Features ~~~~~~~~ - If a test raises an ``ExceptionGroup`` (or nested ``ExceptionGroup``\ s) with only a single 'leaf' exception from ``pytest.xfail()`` or ``pytest.skip()``\ , we now unwrap it to have the desired effect on Pytest. ``ExceptionGroup``\ s with two or more leaf exceptions, even of the same type, are not changed and will be treated as ordinary test failures. Bugfixes ~~~~~~~~ - Fix an issue where if two fixtures are being set up concurrently, and one crashes and the other hangs, then the test as a whole would hang, rather than being cancelled and unwound after the crash. Misc ~~~~ - Trio 0.22.0 deprecated ``MultiError`` in favor of the standard-library (or `backported <https://pypi.org/project/exceptiongroup/>`__) ``ExceptionGroup`` type; ``pytest-trio`` now uses ``ExceptionGroup`` exclusively and therefore requires Trio 0.22.0 or later. - Dropped support for end-of-life Python 3.6, and the ``async_generator`` library necessary to support it, and started testing on Python 3.10 and 3.11.
29 lines
987 B
Makefile
29 lines
987 B
Makefile
# $NetBSD: Makefile,v 1.2 2022/11/15 10:01:56 adam Exp $
|
|
|
|
DISTNAME= pytest-trio-0.8.0
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest-trio/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://github.com/python-trio/pytest-trio
|
|
COMMENT= Python testing tool for trio
|
|
LICENSE= mit OR apache-2.0
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-outcome>=1.1.0:../../devel/py-outcome
|
|
DEPENDS+= ${PYPKGPREFIX}-test>=7.2.0:../../devel/py-test
|
|
DEPENDS+= ${PYPKGPREFIX}-trio>=0.22.0:../../devel/py-trio
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis>=6.56.4:../../devel/py-hypothesis
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov>=4.0.0:../../devel/py-test-cov
|
|
|
|
USE_LANGUAGES= # none
|
|
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 27
|
|
|
|
# does not run
|
|
# Defining 'pytest_plugins' in a non-top-level conftest is no longer supported:
|
|
do-test:
|
|
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} pytest_trio
|
|
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|