diff options
| author | root <root@alpha.trunkmasters.com> | 2026-07-03 03:04:38 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-07-03 03:04:38 -0500 |
| commit | 5f7788dcac066b42562f59afc4b79d7ed272bfcc (patch) | |
| tree | 804b97d48d8a72268393597801a4ac780a51eac9 /dev-python/coverage | |
| parent | 42e69f3ef953ee9c23b6aa5ec29c5f73e1e73fc1 (diff) | |
| download | baldeagleos-repo-5f7788dcac066b42562f59afc4b79d7ed272bfcc.tar.gz baldeagleos-repo-5f7788dcac066b42562f59afc4b79d7ed272bfcc.tar.xz baldeagleos-repo-5f7788dcac066b42562f59afc4b79d7ed272bfcc.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.15.0.ebuild | 110 |
2 files changed, 112 insertions, 0 deletions
diff --git a/dev-python/coverage/Manifest b/dev-python/coverage/Manifest index 1d42b7ac0e32..1a2a00e44252 100644 --- a/dev-python/coverage/Manifest +++ b/dev-python/coverage/Manifest @@ -8,3 +8,5 @@ DIST coverage-7.14.2.tar.gz 923982 BLAKE2B 825dab5a7bfdfd751a7e641f3d1e714740231 DIST coverage-7.14.2.tar.gz.provenance 9758 BLAKE2B 92560d10a299b3525aa49a0f976dff01daf04aff635dc8fd825f9447e8cceefc5b864b7509178121c425e2993a84e897d29bd240017d46e71af62b72439636cc SHA512 051b6e23378083641cb1b479071fd32c41b75489e42ec534bffe9a77207326e4a0a94936e65f08b61c8ecd0c224020da37ed450b4f13c3b3fbd3eb18b43615e1 DIST coverage-7.14.3.tar.gz 924398 BLAKE2B 8f1699e1c4b6c93ae22f5799df40843ff9ff35a77a73d2980aa6d76b70005010983aac11bce1cdc02d5edda6f4afddb9dd43117ca12a05e04d4b5782102a2335 SHA512 1a29d6e4824fc472b766476e0940d0d4db0ce4ea33ec4376d7738fb318365da05e33773bd8ca1cad56b7f2471780333b52a53f135bc13414ccf3b3c445e8d2fe DIST coverage-7.14.3.tar.gz.provenance 9907 BLAKE2B c1876fbc3b147afa865812c8f09d1595f317f62b4c07f644f4bacf450d4c21bc45e8de8cdb001d0f497967d7aa77dd4340877457462bed39006ebfd72b856fa6 SHA512 13702b5009e3a416e341bb6db12d9b2251d832650595f6439e2aeaf212994624a37047f1eb34c1473e65c7fac597658e6ada02788fef4526a0b60e410bdedbbd +DIST coverage-7.15.0.tar.gz 925362 BLAKE2B 2ecd07a36f06d9c047733cd89dfd0db412797a251d8ff9becb2b90b69be07f3ebb69dee4dca9cc4ed246850b7f77ccfc1a2799b02b92f591c9683a6f8f44676c SHA512 559aea2ef68f488b3863f9919ee586b011197bb7e91c73cc72e61d4811af0ec7b084dc77752355f661f230147633ea2245e23c3a9a7c081a10872ae77e58dfc5 +DIST coverage-7.15.0.tar.gz.provenance 9903 BLAKE2B 0ac0779725018ed2b284fe0baf8d91076dd02af8263a1955d8688c2bfa8ec3333d0f96004812968d3a02048d22b941367faa59545669396289574314eccb8a27 SHA512 caf9b9f57391720f55bc88148de7b97275f41a0d1ecbbc314ee1adee6ec938949e5616227ba23c27d1f27cbd80b2cefd73eae47151a85719c75957c924dad2ff diff --git a/dev-python/coverage/coverage-7.15.0.ebuild b/dev-python/coverage/coverage-7.15.0.ebuild new file mode 100644 index 000000000000..6aae2bf728ac --- /dev/null +++ b/dev-python/coverage/coverage-7.15.0.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_{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 ..." + 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 +} |
