Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/coverage/
Date: Wed, 02 Feb 2022 07:13:27
Message-Id: 1643785998.64f36b3fb9509daf0174bbb4621e8402602b21ba.mgorny@gentoo
1 commit: 64f36b3fb9509daf0174bbb4621e8402602b21ba
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 2 06:57:01 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 2 07:13:18 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64f36b3f
7
8 dev-python/coverage: Bump to 6.3.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/coverage/Manifest | 1 +
13 dev-python/coverage/coverage-6.3.1.ebuild | 53 +++++++++++++++++++++++++++++++
14 2 files changed, 54 insertions(+)
15
16 diff --git a/dev-python/coverage/Manifest b/dev-python/coverage/Manifest
17 index 7d7768f566d7..cdb48039c1e4 100644
18 --- a/dev-python/coverage/Manifest
19 +++ b/dev-python/coverage/Manifest
20 @@ -1,2 +1,3 @@
21 DIST coverage-6.2.tar.gz 678664 BLAKE2B 98fe2e5d85db042d95a791838b121a4aeb0edc09f15e5454943d6d1ca3cafdbf0127e8683ddcb5c1f6372b18205bf92e24a803533f19d1bdd5e0477b669cf99f SHA512 e8ef5f2483b2e6d12f0f9801d63a0cd0b81395ea0c88b3cdaf6f6758e1fc1b381f803b0f58345c94007de175d0c2a24559dec93f51db8786f801a2a2d48d6b8f
22 +DIST coverage-6.3.1.tar.gz 707088 BLAKE2B 4253f2973fec34dd5737878c6977c4b7cd273d7786f5e34877b2061774a5177cf7905472e6c578f3292120dc9123e74387c2fe71723206efcf9a257563918a28 SHA512 aa91f7f45510ce8120081aef6367bc3f39f56480901b57f8e2c3f26c921b5d2c15c44c1ed628eefdd2f1d2360a2c62063004aeb19d287a50c4b33304f8eae5b7
23 DIST coverage-6.3.tar.gz 705131 BLAKE2B bd2905f2872cd6b691fc1db3852ad84a27613a8a4c28158b7469408e8c38af5f1b8f6362a91d31c7d0ca9a20dbac0b7d1d8646322cd298f0284c6a5c2ab31050 SHA512 d011d479f49fa5e0036ab68d64361c1060468c3b20e791b18277edaf647858138417d35edaf2688232670f446df33d7a28b71f92467c08ae9b8923ef14eb3e7e
24
25 diff --git a/dev-python/coverage/coverage-6.3.1.ebuild b/dev-python/coverage/coverage-6.3.1.ebuild
26 new file mode 100644
27 index 000000000000..47b693e67167
28 --- /dev/null
29 +++ b/dev-python/coverage/coverage-6.3.1.ebuild
30 @@ -0,0 +1,53 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DISTUTILS_USE_PEP517=setuptools
37 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
38 +PYTHON_REQ_USE="threads(+),sqlite(+)"
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Code coverage measurement for Python"
42 +HOMEPAGE="https://coverage.readthedocs.io/en/latest/ https://pypi.org/project/coverage/"
43 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
44 +
45 +LICENSE="BSD"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
48 +#IUSE="test"
49 +# The tests are impossible to appease. Please run them externally
50 +# via tox. Or fix the ebuild if you have hours of time to spend
51 +# on something utterly useless.
52 +RESTRICT="test"
53 +
54 +#BDEPEND="
55 +# test? (
56 +# dev-python/PyContracts[${PYTHON_USEDEP}]
57 +# dev-python/flaky[${PYTHON_USEDEP}]
58 +# dev-python/hypothesis[${PYTHON_USEDEP}]
59 +# dev-python/mock[${PYTHON_USEDEP}]
60 +# dev-python/pytest[${PYTHON_USEDEP}]
61 +# >=dev-python/unittest-mixins-1.4[${PYTHON_USEDEP}]
62 +# )
63 +#"
64 +
65 +src_prepare() {
66 + # avoid the dep on xdist
67 + sed -i -e '/^addopts/s:-q -n auto::' setup.cfg || die
68 + distutils-r1_src_prepare
69 +}
70 +
71 +python_test() {
72 + "${EPYTHON}" igor.py zip_mods || die
73 + "${EPYTHON}" igor.py test_with_tracer py || die
74 +
75 + # No C extensions under pypy
76 + if [[ ${EPYTHON} != pypy* ]]; then
77 + cp -l -- "${TEST_DIR}"/lib/*/coverage/*.so coverage/ || die
78 + "${EPYTHON}" igor.py test_with_tracer c || die
79 + fi
80 +
81 + # clean up leftover "egg1" directory
82 + rm -rf build/lib/egg1 || die
83 +}