From ce8748a96589ddcd49e6a25482478408ad4d4ffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sat, 3 Aug 2024 14:15:09 -0300 Subject: [PATCH] python3-pytest-cov: update to 5.0.0. --- srcpkgs/python3-pytest-cov/template | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/srcpkgs/python3-pytest-cov/template b/srcpkgs/python3-pytest-cov/template index be7596827a2..18a6e041206 100644 --- a/srcpkgs/python3-pytest-cov/template +++ b/srcpkgs/python3-pytest-cov/template @@ -1,9 +1,12 @@ # Template file for 'python3-pytest-cov' pkgname=python3-pytest-cov -version=4.1.0 -revision=2 +version=5.0.0 +revision=1 build_style=python3-pep517 -hostmakedepends="python3-setuptools python3-wheel" +# this test fails with python3-coverage >= 7.6 +make_check_args=" + --deselect tests/test_pytest_cov.py::test_term_report_does_not_interact_with_html_output" +hostmakedepends="python3-setuptools" depends="python3-pytest python3-coverage" checkdepends="$depends python3-fields python3-process-tests python3-pytest-xdist python3-virtualenv" @@ -13,7 +16,7 @@ license="MIT" homepage="https://pytest-cov.readthedocs.io/en/latest/" changelog="https://raw.githubusercontent.com/pytest-dev/pytest-cov/master/CHANGELOG.rst" distfiles="${PYPI_SITE}/p/pytest-cov/pytest-cov-${version}.tar.gz" -checksum=3904b13dfbfec47f003b8e77fd5b589cd11904a21ddf1ab38a64f204d6a10ef6 +checksum=5837b58e9f6ebd335b0f8060eecce69b662415b16dc503883a02f45dfeb14857 do_check() { # Running via PYTHONPATH breaks a few tests so we use a venv @@ -25,7 +28,8 @@ do_check() { # coverage needs to be installed inside venv # see: https://github.com/pytest-dev/pytest-cov/issues/517 ln -s /${py3_sitelib}/coverage ${testdir}${py3_sitelib#usr} - PATH="${testdir}/bin:${PATH}" "${testpy}" -m pytest -n ${XBPS_MAKEJOBS} + PATH="${testdir}/bin:${PATH}" "${testpy}" -m pytest -n ${XBPS_MAKEJOBS} \ + ${make_check_args} ${make_check_target} } post_install() {