diff options
| author | root <root@alpha.trunkmasters.com> | 2026-08-29 03:04:45 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-08-29 03:04:45 -0500 |
| commit | 675018c33e0383ac7d40ba2922d90d811382accc (patch) | |
| tree | 2e0c0d53fe59a7a9294c59d8d4cf081b76e3ca1b /dev-python/coverage | |
| parent | c21ba35eb4039c697aed1e9e3dcbc6d62763cf37 (diff) | |
| download | baldeagleos-repo-675018c33e0383ac7d40ba2922d90d811382accc.tar.gz baldeagleos-repo-675018c33e0383ac7d40ba2922d90d811382accc.tar.xz baldeagleos-repo-675018c33e0383ac7d40ba2922d90d811382accc.zip | |
Adding metadata
Diffstat (limited to 'dev-python/coverage')
| -rw-r--r-- | dev-python/coverage/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/coverage/coverage-7.16.0.ebuild | 98 |
2 files changed, 100 insertions, 0 deletions
diff --git a/dev-python/coverage/Manifest b/dev-python/coverage/Manifest index f96b47df1334..eaac79d2ebf7 100644 --- a/dev-python/coverage/Manifest +++ b/dev-python/coverage/Manifest @@ -6,3 +6,5 @@ DIST coverage-7.15.3.tar.gz 935592 BLAKE2B 1174736867b69cbaf15b1bb2d67a4b14d6be5 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 +DIST coverage-7.16.0.tar.gz 945620 BLAKE2B 5f93ac8e2a91c354fb7dc57fc710613f639ec485a53c866288fe4a96c262af030d2657974d827ad6929bdf72f261c0937595c73650231a1536f4d36c0d20242f SHA512 2a63023d8ed89537ee20b766f07556979243f5eb72228972ad6b2f4c4cf9f79c85ec69c73fe5f8bc7120f8a358abe60b64281c96c128462b430f7ceb9f1ca83a +DIST coverage-7.16.0.tar.gz.provenance 9905 BLAKE2B 7c9a6480d9295ea7818c83285ae379c29a255b7a8252cfe5b80dbc8cc0af289d15bd6e9306af9e656271e443994a0a867a4ac0a385b75fb612a82e997985848e SHA512 c28195e374aa4330625f979e851b4d54c6040f8a3044059a0d218254b7d66d9087129051f0e4b2a24f39effc13ddd26b76f0baa341ffd803e7d6f3dd206acd33 diff --git a/dev-python/coverage/coverage-7.16.0.ebuild b/dev-python/coverage/coverage-7.16.0.ebuild new file mode 100644 index 000000000000..9a4bef356a75 --- /dev/null +++ b/dev-python/coverage/coverage-7.16.0.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 +} |
