summaryrefslogtreecommitdiff
path: root/dev-python/coverage
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-08-09 03:04:49 -0500
committerroot <root@alpha.trunkmasters.com>2026-08-09 03:04:49 -0500
commit92f6d12bf21434879bac739a9c4c7d9924ce3bad (patch)
tree9a92a97abce6dfa06d4b8bbf4be3083e1bc36207 /dev-python/coverage
parent09db256d16c907238beb9d50761d320ac661c08e (diff)
downloadbaldeagleos-repo-92f6d12bf21434879bac739a9c4c7d9924ce3bad.tar.gz
baldeagleos-repo-92f6d12bf21434879bac739a9c4c7d9924ce3bad.tar.xz
baldeagleos-repo-92f6d12bf21434879bac739a9c4c7d9924ce3bad.zip
Adding metadata
Diffstat (limited to 'dev-python/coverage')
-rw-r--r--dev-python/coverage/Manifest2
-rw-r--r--dev-python/coverage/coverage-7.15.4.ebuild98
2 files changed, 100 insertions, 0 deletions
diff --git a/dev-python/coverage/Manifest b/dev-python/coverage/Manifest
index 9705c4b65b44..f96b47df1334 100644
--- a/dev-python/coverage/Manifest
+++ b/dev-python/coverage/Manifest
@@ -4,3 +4,5 @@ DIST coverage-7.15.2.tar.gz 927741 BLAKE2B 61b652d900901b1e2cb2b192ba95f757e5d9d
DIST coverage-7.15.2.tar.gz.provenance 10044 BLAKE2B b4b740dad204628ab76ca8697ad816a60dd7bf73ebbc8a1682575c8dc84240fb1338e85db5a2e2c804c7a7f255188de1b14269b5f72f5024ebd7f8f7b4e1d06b SHA512 5114b7cd42289ebe32923a80f575f3badd881e7b38e17b0a9b99faf60b0aa1048239b852109b39c8435da3016f13c5d01599e18bbd843da54264595242fa7f78
DIST coverage-7.15.3.tar.gz 935592 BLAKE2B 1174736867b69cbaf15b1bb2d67a4b14d6be5261c37cfc7e7215cf906c1aa6ec319e50e615c3fbb5760554de88798e50a672bfd2324a14f363dceeee4bfd70db SHA512 c378ae771b9809f0b4b9ab290eb75879d78eb0f08bdd5a2e20df12b7129922423cc40eeaa66a7542e96b4dc5205b0deaa29ecdc5d3ec0718a7bf249e6019a26a
DIST coverage-7.15.3.tar.gz.provenance 9954 BLAKE2B 00ff30929f7cd75953e954eff9ef23877251d891fbab117d1820cb15e83299013a659ea3364fd0c8d672917908b5bb3d7b71bb68f6d860e04f7fcd21a48dd92e SHA512 9bbbe345954e12c2d9689b4001fed02cb31ec6722e1617bf647e3ccf04109d722a1a7287162dc7b95f0e00f7f84e6a0e1ce02006ad1753122c7c64728def1f97
+DIST coverage-7.15.4.tar.gz 936952 BLAKE2B 524db3ea1117e1d19df9d6fcbee400014f3145dd33f04e583daba49dbc2c1028ce99afdeb5c5630ab8cf344cdee974ef661f7d413a0c7c916917f899e31b376d SHA512 d0a0541e95e9e509aa8cd496a0cf1ae2da820bb3457c684e916bae18c654210d43f4919a4b72a633e48a8d5803c4e4654e2c03d07129bb5026d1ce6cbf1ef44e
+DIST coverage-7.15.4.tar.gz.provenance 9997 BLAKE2B 0c5bb2094a2b276460d6c35e8074aa4a49f4a1b9130c631e5224449bb6e93bf2cccfefe2939d8aa26f9954a51e5671704c9fa3f30354d2c673f344a1d1765199 SHA512 c6599777cfc67cdb601ddda20badf1d78de357bf7235e2ba6bd7f5a2d606694314e7cfb96d3225a1ad47a9667cb7d9047ede6de4c3fc747f5b58e4ccdadb30d5
diff --git a/dev-python/coverage/coverage-7.15.4.ebuild b/dev-python/coverage/coverage-7.15.4.ebuild
new file mode 100644
index 000000000000..9a4bef356a75
--- /dev/null
+++ b/dev-python/coverage/coverage-7.15.4.ebuild
@@ -0,0 +1,98 @@
+# 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_{13..14} )
+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 ..."
+ nonfatal epytest -o addopts= "${@:2}" tests ||
+ die "Tests failed with ${EPYTHON}, ${COVERAGE_CORE} core"
+}
+
+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
+ # packaging tests, fragile to setuptools version
+ tests/test_setup.py
+ )
+ 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[@]}"
+
+ # available since Python 3.12
+ test_tracer sysmon "${xdist_args[@]}"
+
+ if [[ -n ${c_ext} ]]; then
+ rm coverage/*.so || die
+ fi
+}