diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-28 17:13:02 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-28 17:13:02 +0100 |
commit | 670fe3b64a21a723fda1e52fe61cad2327f81f67 (patch) | |
tree | e6699a97f6776ef2588129c3ad5b895621d4e4aa /dev-python/coverage | |
parent | 7aa28e7310855bc5ef0d32b22e8b58eec55c28c9 (diff) |
gentoo auto-resync : 28:04:2023 - 17:13:02
Diffstat (limited to 'dev-python/coverage')
-rw-r--r-- | dev-python/coverage/Manifest | 2 | ||||
-rw-r--r-- | dev-python/coverage/coverage-7.2.4.ebuild | 82 |
2 files changed, 84 insertions, 0 deletions
diff --git a/dev-python/coverage/Manifest b/dev-python/coverage/Manifest index d30e9ff81b6f..cf9d643060bb 100644 --- a/dev-python/coverage/Manifest +++ b/dev-python/coverage/Manifest @@ -1,5 +1,7 @@ DIST coverage-7.2.2.tar.gz 812407 BLAKE2B 901ed01eb8411e01c3386dcecccf975f4ac0e46c14fd2c6086bcf83647ff7e26deccb3926f173a207ef2851c0f8c5f99874659a1ba2e16f85b6eb9a1ac23142c SHA512 7d2ba6540ca42c3a72b65343348a64c58156bac915434249fd8740a6727ebf034590f62a5557f6b2f76e67ed1adc2a153ce61eee71f3bc903538c440e080e3e7 DIST coverage-7.2.3.tar.gz 757154 BLAKE2B eb2d7e9e52dd9480f806556fbb73864884365215834640a1458c06d137706d3a5ca818c0418ecc6646b0722fd23a0348eddb97521a7cd024c218b872072661ea SHA512 2710424b04f812299777497e526d259a3ac35205b425a53973954c8e51cd39e75c30f8be9d60656e7369d3fa2decd810a8cb395dd433381495db4f6a7cd9a600 +DIST coverage-7.2.4.tar.gz 759129 BLAKE2B 186f5dcd5abd86634cf6cd3c58be47cc68e8d8417df02b4e55ac3d66703664b2069cb3f94fdff726eca99108fd243f6410b0118cf4a2b21a067653f567f8f013 SHA512 f22d475a64828d0613747cf7315053c4830acb9931acfe58e1c29029028f0a48e9c633649bea92ab6bae3b67daf790eb9cf3d6ea22dec1d1f5dce7df673ff3ae EBUILD coverage-7.2.2.ebuild 1832 BLAKE2B 5a4540dc4b17fe66765bca0408a099d0ca734b625757c70049af7cc2f30d4092b0fc70e161270d6644b776b7c622ee21878bad0d91b96603fab1f8b96b586e7d SHA512 b84e6b6b431d2b3f48ccb28ad2fca97f46eb9f7c5e1427a58d1184c3a185bb1fe92aded01eb7b4180b3726e6a6855d7d595e00ed6f7b058c72b6858cee96fd6d EBUILD coverage-7.2.3.ebuild 2017 BLAKE2B 0a3d2fddc33eced59689210c85871e4f7d0b434d3aa0825ed4be96fa1d1758b5be8d54d63ce4497fdc8c7fb19f3359a11865e5d6a5aec0204b341df460ff5140 SHA512 38735dc1b9c3ddd43acaca3ed1f4539a4dad4ccac41d61efefcb349b846571ee5a6450a7d981cc66e436b4064999f974c7f4af8fe225620da41338dadec9fc52 +EBUILD coverage-7.2.4.ebuild 2033 BLAKE2B 5a3cd36c4aa7988c1be7ba7192a46c272e1445727c005a3f81abeb4fa629f2d2b51ad3afd73bdcc7c854b643f23eaf5c7ae15a07f4e14986b004069a9beea88f SHA512 f4f422d48467591160190d4bbefcdf76a9856bfe1f9c98186fad17f4f8f7c3d030af5bd82e81efcfb49e96986ef1824cf6b9faad0d5cac87651c651a2b80c8c6 MISC metadata.xml 771 BLAKE2B 38e9680d0851f70050aad987714a9dd2f95178b0bc3d794dc08726c0618d1ea98be32a413ac397f4b222e8a5d8fdc747b7f1677bcfe842bac4080537e85a03a9 SHA512 8c44c40348fe5d416d8b4016fe22cc9ae0b94fbaf181deb79aa737f87271992521b710c1208d0eeb7ef92d96fc8a7daac1ec6feb1ae081a80f13327b5b094064 diff --git a/dev-python/coverage/coverage-7.2.4.ebuild b/dev-python/coverage/coverage-7.2.4.ebuild new file mode 100644 index 000000000000..89226568addc --- /dev/null +++ b/dev-python/coverage/coverage-7.2.4.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2023 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_{9..11} 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.{8..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_TEST_TRACER=${1} + einfo " Testing with the ${COVERAGE_TEST_TRACER} tracer ..." + epytest 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 + ) + 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 -x PYTEST_PLUGINS=_hypothesis_pytestplugin,flaky.flaky_pytest_plugin,xdist.plugin + + 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 c + rm coverage/*.so || die + else + test_tracer py + fi +} |