dev-python/coverage: add 7.6.8

Closes: #4323
Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
2025-02-21 12:09:53 +01:00
parent 55f488b121
commit 2033a68d23
3 changed files with 106 additions and 2 deletions
+2
View File
@@ -1,5 +1,7 @@
DIST coverage-7.5.0.tar.gz 798314 BLAKE2B 6f7b80d1a46fb88f92571bc23fa2e061680e4e72e6339332f135ace6072570776abbfdce7654d34599ccd1dff920fb1d7cbdc7039a341d10e130408d554e6f83 SHA512 1332f630e6f6ed9a2445f93a3826f22151cf4eff2491163a6d01ef1ce468928a52871ee71aeeb716e8e4f04542524ae25213a37bdb874c4a663cbc581482530d
DIST coverage-7.6.1.tar.gz 798791 BLAKE2B d4af7893e8b79703757ba14b1f01d998334f602901915b9380948bbfcaabaafee2754c803123441dd4fbbb5c0af89e2d90e0d5ae67ae0afcf160580e7acd201f SHA512 ff09783b3433ea72fc3cbc133a8c76236309c68ccd768cc3a849a5cc1215fe6db22d1e619a4062abc3c4f145ec93fd16ed5405b13960485628b1624e6b8adb16
DIST coverage-7.6.8.tar.gz 801425 BLAKE2B a1bfb660a0e079411c13d4fca28863085c6010cb696b4e0dd7d06686313baea1bb25c91373b095630854d737fdf003fd8ced67e91e356d807e2b9b4fc903398c SHA512 1d1aea6fba8511ebd0db1a5f528dccf79d40280b8f8a0531dfca293611346df2f82dba974a351a3ea1a17e648b30ea7ea6689cb646c56de84ac33778362b4b4c
EBUILD coverage-7.5.0.ebuild 2385 BLAKE2B 8a4aff91244840975775b36420f24e51aa4ff972d4ca7cae9347710991f313213296fa3ad049e5273c4edd0e2a5ce0b076f2cdd43a1c08897ffaf51c5e59dc28 SHA512 feeb431ee71ce682611f6feb2fe7aaaead043b52a4a772ad830ed4814d75dbc26ae7cd8e30fc115a14d24f1af3ef657f5fdd740356b5062f9be016076f4ed5f9
EBUILD coverage-7.6.1.ebuild 2380 BLAKE2B 20d816782b00014608e04785ddcf57e2a3df44ca8b1345ef1f7432a434e8e948d9de6655d9ce9c100d5ce4e7da0e8d77beed49512d62c5c1b9b6db9bb567adf5 SHA512 217615c8764e6740e98f9cc56e304e804da17de94e5eafa2df3c1dafbec62e55892d67e46d50ef173915c829695f131774b7cfd6972594f8944a62c7bbd22cde
EBUILD coverage-7.6.8.ebuild 2593 BLAKE2B d51653c7959bae0478bb4eb149eb03aa6434d375f2c1fc9177bfdf05cc3a96d102ca41856fa44f9c6b614041b4189e7d9257941bcdc9b51b39d08c9d38f38d0f SHA512 a7eeda2e9c7f0887c2d7afe916d1ccd218c5ce826e2d6753d5f138650675bf7e612a5455fdac72550d90b00e6e1f0565df1ce3347e85faceea81a7e225ebba1d
MISC metadata.xml 530 BLAKE2B 97ee7aff55910b2be221f1294c796c5bd261cc5d5eeeeb18bd1d434e3b9aa8ebe0fe5d62967095fe011426bf33db4ab331fe690ec1112da93f2f38de702e363a SHA512 5d9dfed8a5b698e615c316f2fafbe3fc46a48bfd79678c3f3d343b84ca125cb3bef6eae78b15728aa05a0693c3231edf23f15999b4ebef09a4efa31eb011a3a2
+102
View File
@@ -0,0 +1,102 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..13} )
PYTHON_REQ_USE="threads(+),sqlite(+)"
inherit distutils-r1 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="amd64 arm arm64 x86"
RDEPEND="
$(python_gen_cond_dep '
dev-python/tomli[${PYTHON_USEDEP}]
' 3.10)
"
BDEPEND="
test? (
dev-python/flaky[${PYTHON_USEDEP}]
dev-python/hypothesis[${PYTHON_USEDEP}]
dev-python/pytest-xdist[${PYTHON_USEDEP}]
>=dev-python/unittest-mixins-1.4[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
src_prepare() {
sed -i -e '/addopts/s:-q -n auto::' pyproject.toml || die
distutils-r1_src_prepare
}
test_tracer() {
local -x COVERAGE_CORE=${1}
einfo " Testing with the ${COVERAGE_CORE} core ..."
epytest -p flaky -p hypothesis -p xdist tests
}
python_test() {
local EPYTEST_DESELECT=(
# TODO: fails because of additional "Terminated" print on SIGTERM
tests/test_concurrency.py::SigtermTest::test_sigterm_threading_saves_data
# 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
)
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 -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
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
fi
test_tracer pytrace
case ${EPYTHON} in
python3.1[01]|pypy3)
;;
*)
# available since Python 3.12
test_tracer sysmon
;;
esac
if [[ -n ${c_ext} ]]; then
rm coverage/*.so || die
fi
}