pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-test-cov py-test-cov: updated to 4.0.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9bb9f9024ded
branches:  trunk
changeset: 387840:9bb9f9024ded
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Nov 08 13:50:05 2022 +0000

description:
py-test-cov: updated to 4.0.0

4.0.0 (2022-09-28)
------------------

**Note that this release drops support for multiprocessing.**

* `--cov-fail-under` no longer causes `pytest --collect-only` to fail
* Dropped support for multiprocessing (mostly because `issue 82408 <https://github.com/python/cpython/issues/82408>`_). This feature was
  mostly working but very broken in certain scenarios and made the test suite very flaky and slow.

  There is builtin multiprocessing support in coverage and you can migrate to that. All you need is this in your
  ``.coveragerc``::

    [run]
    concurrency = multiprocessing
    parallel = true
    sigterm = true
* Fixed deprecation in ``setup.py`` by trying to import setuptools before distutils.
* Removed undesirable new lines that were displayed while reporting was disabled.
* Documentation fixes.
* Added support for LCOV output format via `--cov-report=lcov`. Only works with coverage 6.3+.
* Modernized pytest hook implementation.

diffstat:

 devel/py-test-cov/Makefile |  11 +++++------
 devel/py-test-cov/distinfo |   8 ++++----
 2 files changed, 9 insertions(+), 10 deletions(-)

diffs (46 lines):

diff -r dc76ac73baa7 -r 9bb9f9024ded devel/py-test-cov/Makefile
--- a/devel/py-test-cov/Makefile        Tue Nov 08 13:39:17 2022 +0000
+++ b/devel/py-test-cov/Makefile        Tue Nov 08 13:50:05 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.20 2022/08/24 10:08:54 wiz Exp $
+# $NetBSD: Makefile,v 1.21 2022/11/08 13:50:05 adam Exp $
 
-DISTNAME=      pytest-cov-3.0.0
+DISTNAME=      pytest-cov-4.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest-cov/}
@@ -11,8 +11,7 @@
 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
+DEPENDS+=      ${PYPKGPREFIX}-test>=4.6:../../devel/py-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
@@ -23,8 +22,8 @@
 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
+# as of 4.0.0:
+# 3 failed, 115 passed, 6 skipped, 4 xpassed, 1 warning
 TEST_ENV+=     PYTHONPATH=${WRKSRC}/build/lib
 
 do-test:
diff -r dc76ac73baa7 -r 9bb9f9024ded devel/py-test-cov/distinfo
--- a/devel/py-test-cov/distinfo        Tue Nov 08 13:39:17 2022 +0000
+++ b/devel/py-test-cov/distinfo        Tue Nov 08 13:50:05 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.18 2022/08/24 10:08:54 wiz Exp $
+$NetBSD: distinfo,v 1.19 2022/11/08 13:50:05 adam Exp $
 
-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
+BLAKE2s (pytest-cov-4.0.0.tar.gz) = 3435207604ac6c361db8a58afd38567a9a8ef9e0dcf62eeefe0ce325e19cfb8e
+SHA512 (pytest-cov-4.0.0.tar.gz) = fb993be4d86b29a44e4f2ccd2309d99ab9fe8e6b291abbc2a8a3fc8b36479491165a242a20bfa9886dfd296fcc827da9984b556fdbe9a3ac496ac5b6ba379012
+Size (pytest-cov-4.0.0.tar.gz) = 62013 bytes



Home | Main Index | Thread Index | Old Index