summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2026-02-04 04:25:35 +0100
committerMichał Górny <mgorny@gentoo.org>2026-02-04 04:45:48 +0100
commit0919848e6ece33c9d708bf8e6128bb41e26fdd93 (patch)
tree9b3c129b854247d2e92a145acb7976b3f31b0c18 /dev-python
parenta05b4300aa58ebae68aa147eb0bead27ee610057 (diff)
downloadgentoo-0919848e6ece33c9d708bf8e6128bb41e26fdd93.tar.gz
gentoo-0919848e6ece33c9d708bf8e6128bb41e26fdd93.tar.bz2
gentoo-0919848e6ece33c9d708bf8e6128bb41e26fdd93.zip
dev-python/coverage: Bump to 7.13.3
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/coverage/Manifest2
-rw-r--r--dev-python/coverage/coverage-7.13.3.ebuild110
2 files changed, 112 insertions, 0 deletions
diff --git a/dev-python/coverage/Manifest b/dev-python/coverage/Manifest
index 08b15faedecb..0b61f567552c 100644
--- a/dev-python/coverage/Manifest
+++ b/dev-python/coverage/Manifest
@@ -4,3 +4,5 @@ DIST coverage-7.13.1.tar.gz 825862 BLAKE2B 0de47e845fcbe28441dbd7f21a59b859c8ab3
DIST coverage-7.13.1.tar.gz.provenance 9346 BLAKE2B 1a1718983aaf6598f6d41377d2f493b8a6dcbcfe7528b7cd72c66db3c04f4a45bc74a292a902237411c46b3ab5df369e357d441071a2330356602ec7babd4bdf SHA512 b05c028dc60a267ead4fe9ee28266589ccbfaab1b5d5d22ad727d6f2381f7e496c2d84253d65b2a902243c1d14cadcc258725ffc71e2f5925b28ca989f166d1d
DIST coverage-7.13.2.tar.gz 826523 BLAKE2B cad41c9c1b10bdd65d7ea640f14df81a9d1963da387021d529ca548f99db27af120f7590bf0212643ef6bb36a4a653ffc6d3765ab86173c2ffcb65347a7f3354 SHA512 07eca78eebee1aaba9cdd1e64e5d0b17a3c9622ed03decea95850ea16a4cc2d6b4ba838171a64622ed26311beba32d97f62f5b60b048f877c799270bb2739c6d
DIST coverage-7.13.2.tar.gz.provenance 9820 BLAKE2B 5da8bbf1e916389b9482bc4eabdb1637a96b66aaee0cdea1d8e7c11bcec99adb746ec4500dc877fed18649834a0bc6c4346ce5757cd83b58c7a17eb4ebf7212e SHA512 47824e52ad5f2a3a76000e6a284847b53eab94115c4c2875137920c061ff9909cb97145775ecf37963212cf53e9ebddd66ca2bdd87631e05ca4c3832dbc63e12
+DIST coverage-7.13.3.tar.gz 826832 BLAKE2B 59b4923ea16ad2634adf6dcf3e4b7fb3a41937a9c22e0a91f7581c44f6eb9239b22d131b7bd8d92f23f683ff954e8c8f406075a2ac42484a7300c273889ca0ff SHA512 34a29ef7220700f280b0eba08e3ef5ee821b6a42fec277782ed665c20304739844e2a387f13d7e3b13db3d31f342ae56293fd624e9762a1bcf0d3d67308ee442
+DIST coverage-7.13.3.tar.gz.provenance 9585 BLAKE2B 541bca8acbebf7874d2f50e6bddbe790b28f71840efc3be8a9051570ff5b4fb814f78094b9eb1d701d380320aa8f166b75242a54f282078503b27189914505fa SHA512 b3a6dac06a684c3c38636b5e05e54f0ddcea56374f64aadbbe95c6a95ac67cf382e80f3420acdc5b735573d6e62ce902b6f69b42340db0215d81981292d090d7
diff --git a/dev-python/coverage/coverage-7.13.3.ebuild b/dev-python/coverage/coverage-7.13.3.ebuild
new file mode 100644
index 000000000000..a2d424b64107
--- /dev/null
+++ b/dev-python/coverage/coverage-7.13.3.ebuild
@@ -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
+}