From d45e82f93682918351d18c3fcb73a555bfe022c9 Mon Sep 17 00:00:00 2001 From: wiz Date: Wed, 24 Aug 2022 10:08:54 +0000 Subject: [PATCH] py-test-cov: update to 3.0.0. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 3.0.0 (2021-10-04) ------------------- **Note that this release drops support for Python 2.7 and Python 3.5.** * Added support for Python 3.10 and updated various test dependencies. Contributed by Hugo van Kemenade in `#500 `_. * Switched from Travis CI to GitHub Actions. Contributed by Hugo van Kemenade in `#494 `_ and `#495 `_. * Add a ``--cov-reset`` CLI option. Contributed by Danilo Šegan in `#459 `_. * Improved validation of ``--cov-fail-under`` CLI option. Contributed by ... Ronny Pfannschmidt's desire for skark in `#480 `_. * Dropped Python 2.7 support. Contributed by Thomas Grainger in `#488 `_. * Updated trove classifiers. Contributed by Michał Bielawski in `#481 `_. 2.13.0 (2021-06-01) ------------------- * Changed the `toml` requirement to be always be directly required (instead of being required through a coverage extra). This fixes issues with pip-compile (`pip-tools#1300 `_). Contributed by Sorin Sbarnea in `#472 `_. * Documented ``show_contexts``. Contributed by Brian Rutledge in `#473 `_. --- devel/py-test-cov/Makefile | 23 +++++++++++++++++------ devel/py-test-cov/distinfo | 8 ++++---- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/devel/py-test-cov/Makefile b/devel/py-test-cov/Makefile index 366baee65395..be2879472d99 100644 --- a/devel/py-test-cov/Makefile +++ b/devel/py-test-cov/Makefile @@ -1,8 +1,7 @@ -# $NetBSD: Makefile,v 1.19 2022/01/04 20:53:41 wiz Exp $ +# $NetBSD: Makefile,v 1.20 2022/08/24 10:08:54 wiz Exp $ -DISTNAME= pytest-cov-2.12.1 +DISTNAME= pytest-cov-3.0.0 PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//} -PKGREVISION= 1 CATEGORIES= devel python MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest-cov/} @@ -12,12 +11,24 @@ COMMENT= Pytest plugin for measuring coverage LICENSE= mit DEPENDS+= ${PYPKGPREFIX}-coverage>=5.2.1:../../devel/py-coverage +DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test DEPENDS+= ${PYPKGPREFIX}-toml-[0-9]*:../../textproc/py-toml - -PYTHON_VERSIONED_DEPENDENCIES= test +TEST_DEPENDS+= ${PYPKGPREFIX}-fields-[0-9]*:../../devel/py-fields +TEST_DEPENDS+= ${PYPKGPREFIX}-process-tests-[0-9]*:../../devel/py-process-tests +TEST_DEPENDS+= ${PYPKGPREFIX}-virtualenv-[0-9]*:../../devel/py-virtualenv +TEST_DEPENDS+= ${PYPKGPREFIX}-test-xdist-[0-9]*:../../devel/py-test-xdist USE_LANGUAGES= # none +PYTHON_VERSIONS_INCOMPATIBLE= 27 + +# needs to be installed for testing, this setting is not enoough +# as of 3.0.0: +# 1 failed, 124 passed, 6 skipped, 1 warning +TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib + +do-test: + cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} + .include "../../lang/python/egg.mk" -.include "../../lang/python/versioned_dependencies.mk" .include "../../mk/bsd.pkg.mk" diff --git a/devel/py-test-cov/distinfo b/devel/py-test-cov/distinfo index 076f1af39c79..3e0ccd4b34be 100644 --- a/devel/py-test-cov/distinfo +++ b/devel/py-test-cov/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.17 2021/10/26 10:19:07 nia Exp $ +$NetBSD: distinfo,v 1.18 2022/08/24 10:08:54 wiz Exp $ -BLAKE2s (pytest-cov-2.12.1.tar.gz) = c7e0e492945f85217efa4f91d706edd598e740a49b18a8e07e69c5ebd6c9f8b3 -SHA512 (pytest-cov-2.12.1.tar.gz) = 4c234178febeba1ce93ec0804c3efe181d5d88db9ac02effe14e62eb3b0f7ca1f8757fb4f360551e0d3e35a3b6207892afea85611a49db6c71a2dbaacabc5375 -Size (pytest-cov-2.12.1.tar.gz) = 60395 bytes +BLAKE2s (pytest-cov-3.0.0.tar.gz) = 72e3a77921569945ae7586ff313a49622093d746076eb9947ae5fcaaa53989e4 +SHA512 (pytest-cov-3.0.0.tar.gz) = 289d1b1e29dcc3461276de4c1bbd3884e4ec957efb7dd4c330bc3f25f1b978cbee64c0e2882b419eee5f9ccf44c9d1a23ce47a1b7cc7e436b9ebe894e4c11ae8 +Size (pytest-cov-3.0.0.tar.gz) = 61440 bytes