dev-python/coverage: Bump to 7.11.2

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-11-09 04:15:33 +01:00
parent ebceef5a32
commit 35b0a00e11
2 changed files with 112 additions and 0 deletions

View File

@@ -4,3 +4,5 @@ DIST coverage-7.11.0.tar.gz 811905 BLAKE2B 58ddf4598171d25363fbef08b19dfbb101d77
DIST coverage-7.11.0.tar.gz.provenance 9413 BLAKE2B 8a864e66d1ec7e96b334264bcc93a394ab44c33d192b4feab14126007425793c1e3c6c018f07026604ab135422aa372c581b1672e71ba38182a1da81a8403a97 SHA512 c01b2a2fdca8ce56e0f69eaf412a006a08f22c227abf74f1c30eab8ae1d33e2cf88df63abacb44fee3cc3d4e00247e7c78814b09cfacd3b747e762e65a3288b2
DIST coverage-7.11.1.tar.gz 814037 BLAKE2B 2abc22dbc488f9beeffa2b8dcbf83636af2fba8e274e77628e277cfc4b84074646b516e2439cb271c0e0b4e7116b4c59d222ab646cd22c6b5d064a2cdf0ee4e0 SHA512 bdedbc612faac63dbe9e0921617f512fc44a9c15c5b25b35ac0ad6efc0815096298d77e1bf5dc785c1d1fe29f2c09a206af797c3853015ef2046d7e1256b1db5
DIST coverage-7.11.1.tar.gz.provenance 9366 BLAKE2B 0ca719dbb11fae1ce5f390aa759e465eebcbbe08837526c307b4fc01e132fec07bd6014dc9441e0002d5d1640df426c01220ea44bdf927e66acc9d269a3cd60a SHA512 84ac1dfb79c5045f0dd785e3bf0fa49205f7f0fb121e5c4ca25341badf0f997c23f18ef8194c17351797d951ad3eb08d1e7af48b0280c7ee5b1921423714180c
DIST coverage-7.11.2.tar.gz 814849 BLAKE2B 9fa71ef6c78b4dd6ea7ef15e8aad439336dde33679b5f76429b790faf45017a779a5247c1768570fb95142237b2fb23feee13814b56e2257f3665798ff05551a SHA512 32894fd17790701d038174f90b5ed9f6cd01a0a78b4d7eb1cfe2f038707614801ed827603f05595f287c2edbab872ad2113d22a7901826ba481eeeffb5b46529
DIST coverage-7.11.2.tar.gz.provenance 9323 BLAKE2B cd397ac0163d1a60fb4b246b98565f70083320b09dffbd6a23228fe66066810cf295cb87d476ec3fa612dcece0ccec0e9dc0e8e93529a7feef363f008a611100 SHA512 4abf5e01f0f9b2f3c20d92a384f9173361ffddfb5993ab77adcf8c96fd8aa052c1c4702b680f4531ebb9cd66c553b79a1e640e87424c771e1d434325825dc6fc

View File

@@ -0,0 +1,110 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYPI_VERIFY_REPO=https://github.com/nedbat/coveragepy
PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
PYTHON_REQ_USE="threads(+),sqlite(+)"
inherit distutils-r1 multiprocessing pypi
DESCRIPTION="Code coverage measurement for Python"
HOMEPAGE="
https://coverage.readthedocs.io/en/latest/
https://github.com/nedbat/coveragepy/
https://pypi.org/project/coverage/
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
IUSE="+native-extensions"
BDEPEND="
test? (
>=dev-python/unittest-mixins-1.4[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=( hypothesis pytest-{rerunfailures,xdist} )
EPYTEST_XDIST=1
distutils_enable_tests pytest
python_compile() {
if ! use native-extensions; then
local -x COVERAGE_DISABLE_EXTENSION=1
fi
distutils-r1_python_compile
}
test_tracer() {
local -x COVERAGE_CORE=${1}
einfo " Testing with the ${COVERAGE_CORE} core ..."
epytest -o addopts= "${@:2}" tests
}
python_test() {
local EPYTEST_DESELECT=(
# broken because of pytest plugins explicity loaded
tests/test_debug.py::ShortStackTest::test_short_stack{,_skip}
# these expect specific availability of C extension matching
# COVERAGE_CORE (which breaks testing pytracer on CPython)
tests/test_cmdline.py::CmdLineStdoutTest::test_version
tests/test_debug.py::DebugTraceTest::test_debug_sys_ctracer
# mismatch of expected concurrency in error message
# TODO: report upstream?
tests/test_concurrency.py::ConcurrencyTest::test_greenlet
tests/test_concurrency.py::ConcurrencyTest::test_greenlet_simple_code
# packaging tests, fragile to setuptools version
tests/test_setup.py
# looks like a difference in exit status reporting?
# https://github.com/nedbat/coveragepy/issues/2008
tests/test_process.py::ProcessTest::test_save_signal_usr1
)
local EPYTEST_IGNORE=(
# pip these days insists on fetching build deps from Internet
tests/test_venv.py
)
"${EPYTHON}" igor.py zip_mods || die
local -x COVERAGE_TESTING=True
# TODO: figure out why they can't be imported inside test env
local -x COVERAGE_NO_CONTRACTS=1
local jobs=${EPYTEST_JOBS:-$(makeopts_jobs)}
local xdist_args=()
if [[ ${jobs} -gt 1 ]]; then
# required upstream to avoid cross-test conflicts
xdist_args+=( --dist=loadgroup )
fi
local prev_opt=$(shopt -p nullglob)
shopt -s nullglob
local c_ext=( "${BUILD_DIR}/install$(python_get_sitedir)"/coverage/*.so )
${prev_opt}
if [[ -n ${c_ext} ]]; then
cp "${c_ext}" coverage/ || die
test_tracer ctrace "${xdist_args[@]}"
fi
test_tracer pytrace "${xdist_args[@]}"
case ${EPYTHON} in
*3.11)
;;
*)
# available since Python 3.12
test_tracer sysmon "${xdist_args[@]}"
;;
esac
if [[ -n ${c_ext} ]]; then
rm coverage/*.so || die
fi
}