From 2bc4461da411cbce064a5c87dff142e397e37f75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Fri, 18 Apr 2025 17:53:51 -0300 Subject: [PATCH] python3-pytest-cov: update to 6.1.1. --- srcpkgs/python3-pytest-cov/template | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/srcpkgs/python3-pytest-cov/template b/srcpkgs/python3-pytest-cov/template index cbf51bbbf4a..5b6f92d7e21 100644 --- a/srcpkgs/python3-pytest-cov/template +++ b/srcpkgs/python3-pytest-cov/template @@ -1,11 +1,8 @@ # Template file for 'python3-pytest-cov' pkgname=python3-pytest-cov -version=5.0.0 -revision=2 +version=6.1.1 +revision=1 build_style=python3-pep517 -# 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 @@ -15,8 +12,8 @@ maintainer="Piotr Wójcik " 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=5837b58e9f6ebd335b0f8060eecce69b662415b16dc503883a02f45dfeb14857 +distfiles="${PYPI_SITE}/p/pytest-cov/pytest_cov-${version}.tar.gz" +checksum=46935f7aaefba760e716c2ebfbe1c216240b9592966e7da99ea8292d4d3e2a0a do_check() { # Running via PYTHONPATH breaks a few tests so we use a venv @@ -25,9 +22,8 @@ do_check() { local testpy="${testdir}/bin/python3" "${testpy}" -m installer dist/*.whl - # 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} + PYTHONPATH="/${py3_sitelib}" PYTHONUSERBASE=/usr \ PATH="${testdir}/bin:${PATH}" "${testpy}" -m pytest -n ${XBPS_MAKEJOBS} \ ${make_check_args} ${make_check_target} }