diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-05-30 00:07:18 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-05-30 00:07:18 +0100 |
commit | 0e2a727aba684f1a44cc0402a3f77d242140681b (patch) | |
tree | ad462b91afc9d7f8d76e3c51331517fddd6b25c2 /dev-python/coverage | |
parent | 5c4786a868bad6e3f46aecf32ad6c6dc5de98408 (diff) |
gentoo auto-resync : 30:05:2024 - 00:07:18
Diffstat (limited to 'dev-python/coverage')
-rw-r--r-- | dev-python/coverage/Manifest | 2 | ||||
-rw-r--r-- | dev-python/coverage/coverage-7.5.3.ebuild | 98 |
2 files changed, 100 insertions, 0 deletions
diff --git a/dev-python/coverage/Manifest b/dev-python/coverage/Manifest index f770f2b0fee6..9b9e3c48bc19 100644 --- a/dev-python/coverage/Manifest +++ b/dev-python/coverage/Manifest @@ -2,8 +2,10 @@ DIST coverage-7.4.4.tar.gz 783727 BLAKE2B e7d7af92ddcb3d7b5857cc83d8e14bb16ea2bd DIST coverage-7.5.0.tar.gz 798314 BLAKE2B 6f7b80d1a46fb88f92571bc23fa2e061680e4e72e6339332f135ace6072570776abbfdce7654d34599ccd1dff920fb1d7cbdc7039a341d10e130408d554e6f83 SHA512 1332f630e6f6ed9a2445f93a3826f22151cf4eff2491163a6d01ef1ce468928a52871ee71aeeb716e8e4f04542524ae25213a37bdb874c4a663cbc581482530d DIST coverage-7.5.1.tar.gz 784825 BLAKE2B 4dd659d170b026aa868a066fedc9ab0cfa16b5ac2cb90a45578528f2733b7a01b7d3546836b908412d81a7ff21645b0ceebcf27d3414a99d474a7fd44d2539f4 SHA512 db9fe405c52e30e2aa673caf0cc8a02b5f62fd53b969003d231b52cf9463afc22924d5c29859447d6139be9c6642036f3cbc690ae4055d250a73c9dcd1f805a2 DIST coverage-7.5.2.tar.gz 786030 BLAKE2B b6b3ce47893db399c6e6e34d78cdf7da5735dce14fef3740098bb41df697770fd8910d2f4df1831a214690024c722808f3684e82f4d27bb08b84eb0c0170ff4f SHA512 14a8b239a71558ae9b11a72e2040979ef3d9d446ccb1339d2858736cf550d7ccacf31ce1288f30cbe064d747f506e3afcb09fe2d9d8a0946aad6e488fb9ea7c2 +DIST coverage-7.5.3.tar.gz 786184 BLAKE2B 014a21273bf302a7e10d3239edda1a95b99674abd0b7b769a688a4e576d0b9e5ce9189ee38e8c53b0cbd5ea7bd2c7f7583704455f6842c9a19e77cc19aae3de1 SHA512 6c72525b19b0efbf6a23b8a2860e056613c8119a5306978a67bc11b8598bac693e7541a9ca206bb9394511c9a84097a7f450ebf38e7c1c40e914fd71cf7546ce EBUILD coverage-7.4.4.ebuild 2468 BLAKE2B 484cf7c4502606a2236cdc5ac9d7b00502db53ca82c83c7042931672e6258c2722779ddb3a9147d797202cdd417c2cf181de0ba9e34920b5aa6cbd2def35b15d SHA512 17fef3b5f71d724182e050fca7d7bbdd868346e9ce8d67beaad1657450cc944dd07a665e88def258143dc9c1010f78fb64d0a9927fbe0ec1a98dbbb852166a29 EBUILD coverage-7.5.0.ebuild 2476 BLAKE2B e931142781ffc76d323da0484dcc3c6c6f23c6658ddc695a04798ec2e6c14e6c2a946fa9efd07b11b7dc4c6a2480c4cd5366fd8a46e0da37aedf1278a2c0a59e SHA512 786206efe2a7e21fe2ed767a1b48e2a3e05d49c94ba8cc83707473384771701ca90c818835b8a773730b11bd6415751868c0ec16f8fce6e7b31311aff930f647 EBUILD coverage-7.5.1.ebuild 2470 BLAKE2B 9a14487f65d8aace1b01319a3121fd2c9fec9102f765ef41645adf0e894fdd190f05aa59b716c804adb018412fb8a8943b20fb2ee16813d9a73db3d233682b02 SHA512 55fca21a9a20b3e867538f5b0bd43ab1efc6ec164685f1d69489675e996c5acafbd19381b09e4d2e28132817f83b2ba465282d8347c66b9184c4c585755c1171 EBUILD coverage-7.5.2.ebuild 2476 BLAKE2B 4a9a08dc69d73d9ffaa0a58ec9027fe4c84e9c82e0710d494e72bceb02f0634dd73a490e4b29c97d17ea81493a59fbb2212ab891575332e00dd3f307093c0736 SHA512 c5ab737e5496b70e7bea34bb3f2244da6b49883c561926ca0b79f948c567e2d8a126fd7e6d00fd4a33312bd0f418278077a1335313854b310147800cf10c1630 +EBUILD coverage-7.5.3.ebuild 2476 BLAKE2B 4a9a08dc69d73d9ffaa0a58ec9027fe4c84e9c82e0710d494e72bceb02f0634dd73a490e4b29c97d17ea81493a59fbb2212ab891575332e00dd3f307093c0736 SHA512 c5ab737e5496b70e7bea34bb3f2244da6b49883c561926ca0b79f948c567e2d8a126fd7e6d00fd4a33312bd0f418278077a1335313854b310147800cf10c1630 MISC metadata.xml 771 BLAKE2B 38e9680d0851f70050aad987714a9dd2f95178b0bc3d794dc08726c0618d1ea98be32a413ac397f4b222e8a5d8fdc747b7f1677bcfe842bac4080537e85a03a9 SHA512 8c44c40348fe5d416d8b4016fe22cc9ae0b94fbaf181deb79aa737f87271992521b710c1208d0eeb7ef92d96fc8a7daac1ec6feb1ae081a80f13327b5b094064 diff --git a/dev-python/coverage/coverage-7.5.3.ebuild b/dev-python/coverage/coverage-7.5.3.ebuild new file mode 100644 index 000000000000..4903c1472391 --- /dev/null +++ b/dev-python/coverage/coverage-7.5.3.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..13} pypy3 ) +PYTHON_REQ_USE="threads(+),sqlite(+)" + +inherit distutils-r1 pypi + +DESCRIPTION="Code coverage measurement for Python" +HOMEPAGE=" + https://coverage.readthedocs.io/en/latest/ + https://github.com/nedbat/coveragepy/ + https://pypi.org/project/coverage/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.{9..10}) +" +BDEPEND=" + test? ( + dev-python/flaky[${PYTHON_USEDEP}] + dev-python/hypothesis[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + >=dev-python/unittest-mixins-1.4[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + sed -i -e '/addopts/s:-q -n auto::' pyproject.toml || die + distutils-r1_src_prepare +} + +test_tracer() { + local -x COVERAGE_CORE=${1} + einfo " Testing with the ${COVERAGE_CORE} core ..." + epytest -p flaky -p hypothesis -p xdist tests +} + +python_test() { + local EPYTEST_DESELECT=( + # TODO: fails because of additional "Terminated" print on SIGTERM + tests/test_concurrency.py::SigtermTest::test_sigterm_threading_saves_data + # 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 + ) + 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 -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + + 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 + fi + + test_tracer pytrace + + case ${EPYTHON} in + python3.1[01]|pypy3) + ;; + *) + # available since Python 3.12 + test_tracer sysmon + ;; + esac + + if [[ -n ${c_ext} ]]; then + rm coverage/*.so || die + fi +} |