summaryrefslogtreecommitdiff
path: root/dev-python/coverage
diff options
context:
space:
mode:
authorCrucible <crucible@localhost>2026-09-30 19:07:39 -0500
committerCrucible <crucible@localhost>2026-09-30 19:07:39 -0500
commit9ac03f0d5a1a2f7a9a0656fe7cd27ef2588da784 (patch)
tree5f38413a80b9e584e9f6c579b013e8abd6ae2702 /dev-python/coverage
parent9c4e6e8fed8999df35813182c3b9577d541394e0 (diff)
downloadsrcux-9ac03f0d5a1a2f7a9a0656fe7cd27ef2588da784.tar.gz
srcux-9ac03f0d5a1a2f7a9a0656fe7cd27ef2588da784.tar.xz
srcux-9ac03f0d5a1a2f7a9a0656fe7cd27ef2588da784.zip
Publish srcux candidate 0000000528-20260930-190542
Diffstat (limited to 'dev-python/coverage')
-rw-r--r--dev-python/coverage/coverage-7.16.2.ebuild17
1 files changed, 14 insertions, 3 deletions
diff --git a/dev-python/coverage/coverage-7.16.2.ebuild b/dev-python/coverage/coverage-7.16.2.ebuild
index bb83b5e46e2e..e06d7b973915 100644
--- a/dev-python/coverage/coverage-7.16.2.ebuild
+++ b/dev-python/coverage/coverage-7.16.2.ebuild
@@ -6,6 +6,7 @@ EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYPI_VERIFY_REPO=https://github.com/coveragepy/coveragepy
+PYTHON_FULLY_TESTED=( python3_{12..15} python3_{14,15}t )
PYTHON_COMPAT=( python3_{13..14} )
PYTHON_REQ_USE="threads(+),sqlite(+)"
@@ -26,10 +27,13 @@ IUSE="+native-extensions"
BDEPEND="
test? (
>=dev-python/unittest-mixins-1.4[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '
+ dev-python/hypothesis[${PYTHON_USEDEP}]
+ ' "${PYTHON_FULLY_TESTED[@]}")
)
"
-EPYTEST_PLUGINS=( hypothesis pytest-{rerunfailures,xdist} )
+EPYTEST_PLUGINS=( pytest-{rerunfailures,xdist} )
EPYTEST_XDIST=1
distutils_enable_tests pytest
@@ -59,6 +63,11 @@ test_tracer() {
}
python_test() {
+ local EPYTEST_PLUGINS=( "${EPYTEST_PLUGINS[@]}" )
+ if has_version "dev-python/hypothesis[${PYTHON_USEDEP}]"; then
+ EPYTEST_PLUGINS+=( hypothesis )
+ fi
+
local EPYTEST_DESELECT=(
# broken because of pytest plugins explicity loaded
tests/test_debug.py::ShortStackTest::test_short_stack{,_skip}
@@ -99,8 +108,10 @@ python_test() {
test_tracer pytrace "${xdist_args[@]}"
- # available since Python 3.12
- test_tracer sysmon "${xdist_args[@]}"
+ # available since CPython 3.12
+ if [[ ${EPYTHON} == python* ]]; then
+ test_tracer sysmon "${xdist_args[@]}"
+ fi
if [[ -n ${c_ext} ]]; then
rm coverage/*.so || die