mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
dev-python/coverage: Bump to 7.14.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -2,3 +2,5 @@ DIST coverage-7.13.5.tar.gz 915967 BLAKE2B e31e8855746c255db960c20b8cef10c3ef9e8
|
||||
DIST coverage-7.13.5.tar.gz.provenance 9680 BLAKE2B 2d4f7742ba5dcaed044b75fde5951d0dd27898c3279f3484edca7b336b9b1cb8c1270acaff8101e0d1a8c3fad75e3b545bb4d9448629dffee7bc516251710ea2 SHA512 538158dac92b66c524d60c76939052b71cd347716e55658638eaaf7d4630b86a0bb5e12f198187700dc72c6e5d4cf41b44b4f293a2091ededa39352d8ceb8bf8
|
||||
DIST coverage-7.14.0.tar.gz 919489 BLAKE2B a1fe1a1cc1fac2d3bf0a16b7ec1cd4a2ebfed67186c3c3e27fb2de3adfb34262a8409f3c6ae976d20419735e2ac679dfc7f849828224ed0ca50fa1be6a8d47c3 SHA512 1679a464806b87d513a3636c47f1feee09064186b29c32fb5b8abc33f184cc52c9f8532c2cbde834ac121d9e2e6cb5bc499cd6b73f1bda3de230b7c76caa1ebe
|
||||
DIST coverage-7.14.0.tar.gz.provenance 9679 BLAKE2B 1e2e0b897ec7e44b7b920d9a1cb48e0870fee9675707659e88f18b909d51db2a2365d778d8cb5c4a5c48fe293a2ea7dad006db43a3a04a8640695694ca56a678 SHA512 5254b710838b56cccb384c5d0a02da2309f6086b27902c1cc480471dee42854ecb22b9e210f9cade22120c000968d17e7824f3314ec52b75622ffdd33fab4385
|
||||
DIST coverage-7.14.1.tar.gz 920132 BLAKE2B 750273d47ab8e1cde73ea740c52caf95711ab01820a3491d18e40a0484a890da5375dd842f04131962faa8d34d112e822f7922804d34950c3209b29e3143bfbd SHA512 a2a76bc8ff85ca816754e4e319bbb04a9d05a5b2c1d5ff3c6085c2dc374a7fbf484c8d43528e094189dfdd90af8aea2e877a05d7485b881150c98681e7acddfe
|
||||
DIST coverage-7.14.1.tar.gz.provenance 9683 BLAKE2B 017b735d60156a743b21bf4e499f26d2e273a389aa5be687957388a110c820a1a9d6c9b35f580070f8f19cd704b04cfba19df95fe3c027a80178de877abd8a00 SHA512 5fb0062c12768f7f2db1daef0b202b346a9f52ced971605382069d0cc6749c798879080a126f60e7c1ca25ae9845010bbfe22fbc86ee1599254ac4642beb151b
|
||||
|
||||
110
dev-python/coverage/coverage-7.14.1.ebuild
Normal file
110
dev-python/coverage/coverage-7.14.1.ebuild
Normal file
@@ -0,0 +1,110 @@
|
||||
# Copyright 1999-2026 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/coveragepy/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/coveragepy/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
|
||||
}
|
||||
Reference in New Issue
Block a user