commit: 22da68b19a71bd09ba895252b3ab4709ba285277
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 6 05:29:07 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Apr 6 05:30:30 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22da68b1
dev-python/pytest-cov: Bump to 6.1.1
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pytest-cov/Manifest | 1 +
dev-python/pytest-cov/pytest-cov-6.1.1.ebuild | 56 +++++++++++++++++++++++++++
2 files changed, 57 insertions(+)
diff --git a/dev-python/pytest-cov/Manifest b/dev-python/pytest-cov/Manifest
index 9bac094dbdf6..1aa7b0fb2fa4 100644
--- a/dev-python/pytest-cov/Manifest
+++ b/dev-python/pytest-cov/Manifest
@@ -1,2 +1,3 @@
DIST pytest-cov-6.0.0.tar.gz 66945 BLAKE2B
8746915eb23b7d524e15ece1a05d5a1c8de6e8e08b807142e9a03f48605d54f715396d73cdb4ee5004dc5703ac0f68309e700d783ebb2037fc861e00033c35f3
SHA512
2947a032417d60867595bb65630942ff5d8a61523af5298e3f169420b28882f9b4256d89980a9cbe88c34f9b7fa759f44fd64d391ad86c1491a55f9a70282bf0
DIST pytest_cov-6.1.0.tar.gz 66651 BLAKE2B
b71fc2da69cdc2c3370cbefb8921b861888ee4e0a93871ad5c7b94ae9f0b9ee6e48bf622e33f28980a2cd26efdfad60c4098dbde703706e49aec88acd09349d6
SHA512
0d1aa8f1ba1aa06a16f86f80d73b96143b845734a84205f35201a6b0d24913c61f1459ac0ff2a149c36eb273873a24cce94ea92e6aa2c876689fb77f52575eb5
+DIST pytest_cov-6.1.1.tar.gz 66857 BLAKE2B
078102351afd498c50f4ea2bc5fc0ee438b5025e6dbf2174aaadb2fc85b4c25c695774b92f805e86a25249c207a1a566e86b64c372349e9142649f600b5a0011
SHA512
4716f00895916f989fb339a814173175f78af7aff20ef253708f9b7715535895ae06c9a130cfa13733a0bc7699baa4ac65df71f7f68866e34a34f1888f3e8859
diff --git a/dev-python/pytest-cov/pytest-cov-6.1.1.ebuild
b/dev-python/pytest-cov/pytest-cov-6.1.1.ebuild
new file mode 100644
index 000000000000..1c7751e80607
--- /dev/null
+++ b/dev-python/pytest-cov/pytest-cov-6.1.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} pypy3 pypy3_11 )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="pytest plugin for coverage reporting"
+HOMEPAGE="
+ https://github.com/pytest-dev/pytest-cov
+ https://pypi.org/project/pytest-cov/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv
~s390 ~sparc ~x86"
+
+RDEPEND="
+ >=dev-python/py-1.4.22[${PYTHON_USEDEP}]
+ >=dev-python/pytest-3.6[${PYTHON_USEDEP}]
+ >=dev-python/coverage-6.4.4-r1[${PYTHON_USEDEP}]
+"
+# NB: xdist is also used directly in the test suite
+BDEPEND="
+ test? (
+ dev-python/fields[${PYTHON_USEDEP}]
+ >=dev-python/process-tests-2.0.2[${PYTHON_USEDEP}]
+ dev-python/pytest-xdist[${PYTHON_USEDEP}]
+ dev-python/virtualenv[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_sphinx docs \
+ dev-python/furo
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+python_test() {
+ # NB: disabling all plugins speeds tests up a lot
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ local -x PYTEST_PLUGINS=pytest_cov.plugin,xdist.plugin,xdist.looponfail
+
+ # https://github.com/pytest-dev/pytest-cov/issues/517
+ local -x PYTHONPATH=$(python_get_sitedir):${PYTHONPATH}
+ local EPYTEST_DESELECT=(
+ # this one's broken by the PYTHONPATH hack
+ # the alternative is to symlink coverage and pytest into venv,
+ # but that's ugly and likely to break again in the future
+
tests/test_pytest_cov.py::test_central_subprocess_change_cwd_with_pythonpath
+ )
+
+ epytest
+}