mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/coverage: Bump to 7.11.3
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -6,3 +6,5 @@ DIST coverage-7.11.1.tar.gz 814037 BLAKE2B 2abc22dbc488f9beeffa2b8dcbf83636af2fb
|
||||
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
|
||||
DIST coverage-7.11.3.tar.gz 815210 BLAKE2B 6d48503efb9717313c3c17f718029642cb24b3cbbb282316b192bae71b2b5ee9ad784c062b484a0b231be2d2ebb82e2f64cd3514f36508c64771ae73c284d661 SHA512 5fb8724f04a212a1a18843e9500487b54dca24aac056817c109a125a149f10c0544e7d7e89dd5d6769641f89a486fed1cc1f6fdfbab103201a58a97350fbac67
|
||||
DIST coverage-7.11.3.tar.gz.provenance 9540 BLAKE2B d963e545e63cd1ff577eebc7dfc00e452b14171988e5bf74a3ffe0fde01a0da0e4857d34e6157b39e4721ac4f7d198eeabe7fb5f28603c0c92294c94c86fd629 SHA512 dad801095cf8058568e66b7a1aa8ccecd8582d4d42281d2251b4c1180b8743751298a8dd8e7108613842ea30de3ee604e5bddf3db304bf587abb8cc35bbe4f76
|
||||
|
||||
110
dev-python/coverage/coverage-7.11.3.ebuild
Normal file
110
dev-python/coverage/coverage-7.11.3.ebuild
Normal 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/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
|
||||
}
|
||||
@@ -15,6 +15,6 @@ Python standard library to determine which lines are executable, and which have
|
||||
been executed.</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="pypi">coverage</remote-id>
|
||||
<remote-id type="github">nedbat/coveragepy</remote-id>
|
||||
<remote-id type="github">coveragepy/coveragepy</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
||||
Reference in New Issue
Block a user