summaryrefslogtreecommitdiff
path: root/dev-python/pytest-cov
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pytest-cov')
-rw-r--r--dev-python/pytest-cov/Manifest2
-rw-r--r--dev-python/pytest-cov/pytest-cov-6.1.1.ebuild56
2 files changed, 58 insertions, 0 deletions
diff --git a/dev-python/pytest-cov/Manifest b/dev-python/pytest-cov/Manifest
index 2563ae217642..3c94db9f5e47 100644
--- a/dev-python/pytest-cov/Manifest
+++ b/dev-python/pytest-cov/Manifest
@@ -1,5 +1,7 @@
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
EBUILD pytest-cov-6.0.0.ebuild 1580 BLAKE2B 4d3d9aedff68c5fed98136661e93dc43da19139008e9f69c50990993ec73858a3569f16951072a34c64439711ba4eda10818f657bc0f2a53282443157e92027e SHA512 4e293727d857173b0e9cdf1673a9a5bca1969c9efec6dba4f9b0e460cb4df94bd19e9ad1f86ff723ce7e99649d74116eed3afa4074bd609d718ddcef4c91817a
EBUILD pytest-cov-6.1.0.ebuild 1567 BLAKE2B 45dbef727f75af88980d64115fdb8b62c8d5b2f65576a2af1e9c76dd99bd276bc9d35a72e709dbc4de8e15b5055dd5fba506bd2a2b2e5b66017c9065a31ee4e6 SHA512 81d1da67ed4bf41f0d77f4923a6ebe10989c796a284feb8f494d05817b36a1be9cceab736e211b81461d7b7d29e9a28b97e7f5a881c712b019faa5aca0032736
+EBUILD pytest-cov-6.1.1.ebuild 1567 BLAKE2B 45dbef727f75af88980d64115fdb8b62c8d5b2f65576a2af1e9c76dd99bd276bc9d35a72e709dbc4de8e15b5055dd5fba506bd2a2b2e5b66017c9065a31ee4e6 SHA512 81d1da67ed4bf41f0d77f4923a6ebe10989c796a284feb8f494d05817b36a1be9cceab736e211b81461d7b7d29e9a28b97e7f5a881c712b019faa5aca0032736
MISC metadata.xml 412 BLAKE2B 0d79131c6fd8adf72493a7c333959e065cf4f2231f6c770800b6d05ff9afcc246cd202406bea6e28f6b0fd23ee6197aa8dac2dd59d0a89d9b07741f57e8fa5e8 SHA512 d1aab9ea8042bf810398a4195fd3595a8abbeb060ab38fd7b7e40085c8d5f22ecb78bab02e2331d4588199d88e0d3848413d75a18fe4373ecd9940a3c990c604
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
+}