Skip to content

Commit 41640f5

Browse files
committed
dev-python/coverage: add 7.0.0
Signed-off-by: Andreas Billmeier <[email protected]>
1 parent 8f04a9f commit 41640f5

File tree

2 files changed

+80
-0
lines changed

2 files changed

+80
-0
lines changed

dev-python/coverage/Manifest

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
DIST coverage-6.4.4.tar.gz 772949 BLAKE2B 87b4c51ac43ac3bd2202496f6db6de5c74dd9925521bf3092cd862b86d8d7c0e3d008ee550c90e890febd87cc4d167669e830668f15da94ef4ea72e82154bf26 SHA512 f210f2471b170e05d4dac2cc9a91e3f0d4ba6456cdf91dc1c0ef67a02a11f4279c5beca5df8854c42660346995492b1eff020e1ac578d2a0a129627dadd17114
22
DIST coverage-6.4.tar.gz 715897 BLAKE2B 69fd1979da2c652d5cf8b83adcde4755824faf832867c0181e610ef1369bae217c487b230aa649f03692440efc78628474d72303635568f8e7e5b41f83afc1ed SHA512 e834ff2329eb930ea40a28e8be7f665322558a1f00b5297a2daaaefc986ae451f333ea76bf6e345cad1560d721ebd990cdd5b79b30bddd9e17223acc85508089
3+
DIST coverage-7.0.0.tar.gz 780514 BLAKE2B 2d7e0190bacd5ef6db35e3c6ab5114571ce394a9d6dd5e7d3497e4eff9dc3abee1aa11babc057e6b276133e5e19dd7b2e1d4149f5fb73cdaf8d2a6a7df005d7b SHA512 258c1c2dd8af1e7b64fcce2042594230a245046c73e3e67b0b0b1e82180e200a37983b766bd72fdc23a6e5ff12416541e69a26beec845598c25b293c4ee1cece
34
EBUILD coverage-6.4.4-r1.ebuild 1683 BLAKE2B 316b8764a9d8cad387dc491f46218f172c80b5772477b79a3e0a4255fe2ab722cce14dd10ca8761d725f1c480482f6c502b6ad9380385943159ff723fa0bf1c5 SHA512 3ec120f56f9a1ab41166a3ed5732e9b9d271a48bd73cf8d9f5d416bdf8b58cac9d37053f8398d51d6b6f7f548bb85a5d90083282105a7ee923aef079ab94ac5a
45
EBUILD coverage-6.4.ebuild 1595 BLAKE2B c7418f25d8c7977e8db7d9b3d6b24b8a84ba3c9498a7af3c07e3da2f760bcff91e07ee96f1071cbfb2dc9eb9bb3852332ef86b27cce1a748a766618c50da7d63 SHA512 7bf420d7186990e88b43b7a5529ec4a5594bc94861c638955e4da1900a7e257adf3e79189744350fece520e2e092135c54e810bd36aea6d18de656a4a8f1f430
6+
EBUILD coverage-7.0.0.ebuild 1887 BLAKE2B c4406f2647f98034fa9a3e6551d3154022b4d59d994ce239bd572ff684030af9dc16821ef621d1551d70f8e6bdc5aa688d0bf35d70703d5c545a73dcc9062430 SHA512 a0b57a71d64ad347ad69456a89566759b77d06e691ba73f35eee5d019dfaff03cda676ff332f1ac6455377795ca585070cfdaad6477245ed6d4f3d3aabc739d9
57
MISC metadata.xml 530 BLAKE2B 3e14d7215b1b7d2378f26a970409c4353296f739b6235482180f600dcd2fba23f9c344dac75fd230f373858e5ae51767a399f561088be6616975e0454907f35f SHA512 9beed37da27d4f410267000b535be26c1ed968f43e8427b77f56ac838b25cb68efb43952ab67df647c5aaa4925a227257094b0c1b849e5784c296fcb52096ce2
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Copyright 1999-2023 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
DISTUTILS_USE_PEP517=setuptools
7+
PYTHON_COMPAT=( python3_{9..11} pypy3 )
8+
PYTHON_REQ_USE="threads(+),sqlite(+)"
9+
10+
inherit distutils-r1
11+
12+
DESCRIPTION="Code coverage measurement for Python"
13+
HOMEPAGE="
14+
https://coverage.readthedocs.io/en/latest/
15+
https://github.com/nedbat/coveragepy/
16+
https://pypi.org/project/coverage/
17+
"
18+
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
19+
20+
LICENSE="BSD"
21+
SLOT="0"
22+
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
23+
24+
RDEPEND="
25+
$(python_gen_cond_dep '
26+
dev-python/tomli[${PYTHON_USEDEP}]
27+
' 3.{8..10})
28+
"
29+
BDEPEND="
30+
test? (
31+
dev-python/flaky[${PYTHON_USEDEP}]
32+
dev-python/hypothesis[${PYTHON_USEDEP}]
33+
dev-python/pytest-xdist[${PYTHON_USEDEP}]
34+
>=dev-python/unittest-mixins-1.4[${PYTHON_USEDEP}]
35+
)
36+
"
37+
38+
distutils_enable_tests pytest
39+
40+
src_prepare() {
41+
sed -i -e '/^addopts/s:-q -n auto::' setup.cfg || die
42+
distutils-r1_src_prepare
43+
}
44+
45+
test_tracer() {
46+
local -x COVERAGE_TEST_TRACER=${1}
47+
einfo " Testing with the ${COVERAGE_TEST_TRACER} tracer ..."
48+
epytest tests
49+
}
50+
51+
python_test() {
52+
local EPYTEST_IGNORE=(
53+
# pip these days insists on fetching build deps from Internet
54+
tests/test_venv.py
55+
)
56+
57+
"${EPYTHON}" igor.py zip_mods || die
58+
59+
local -x COVERAGE_TESTING=True
60+
# TODO: figure out why they can't be imported inside test env
61+
local -x COVERAGE_NO_CONTRACTS=1
62+
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
63+
local -x PYTEST_PLUGINS=_hypothesis_pytestplugin,flaky.flaky_pytest_plugin,xdist.plugin
64+
65+
local prev_opt=$(shopt -p nullglob)
66+
shopt -s nullglob
67+
local c_ext=( "${BUILD_DIR}/install$(python_get_sitedir)"/coverage/*.so )
68+
${prev_opt}
69+
70+
if [[ -n ${c_ext} ]]; then
71+
cp "${c_ext}" \
72+
coverage/ || die
73+
test_tracer c
74+
rm coverage/*.so || die
75+
else
76+
test_tracer py
77+
fi
78+
}

0 commit comments

Comments
 (0)