1 |
commit: 832c7985ef42dd4c2c4301f1296b5600c7b460f1 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 12 05:44:09 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 12 06:18:02 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=832c7985 |
7 |
|
8 |
dev-python/coverage: Bump to 6.0.2 |
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.0.2.ebuild | 54 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 55 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/coverage/Manifest b/dev-python/coverage/Manifest |
17 |
index e533bb47596..c0b2ce702cd 100644 |
18 |
--- a/dev-python/coverage/Manifest |
19 |
+++ b/dev-python/coverage/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST coverage-4.5.4.tar.gz 385185 BLAKE2B 9d040bff13cebd1cb7147f15c3ec03bb08648cf801b5b2bb046a6b5bcadb3d3886be8bf0a624d225f25d10a5ca82fe5fb88f55e44e92a0a3285836b837972970 SHA512 ba534e04fe35cbadc4b16735f25c08f579a49a6677ec106680f222f2dfb3d0f1e011d0962f1c2108c375173ac4588bea1619ecda05ff9ba6fd888daddfd27b0e |
22 |
DIST coverage-5.5.tar.gz 691258 BLAKE2B 66bf340956b760d996ce424f977b407eb74062db56108e4910459dbcb7c271820ca655a648021763aede1c4d87c44524cea0cb34f969f203f630d48cf15b05b4 SHA512 fb78b4920a2f18afb9545a6f13910f491708443965881954fff6ee8553ab3d6bd898f7a95df1091435e8d5627ac850b880a6233e716a6acb934ecc195ec2ee52 |
23 |
+DIST coverage-6.0.2.tar.gz 722511 BLAKE2B 43a860610921fd0df106cbe26ba094e5a11bf1137a795a15bc22d82d0f813e8dc67bfe660757d325f15f719429b480ca625ebe66569489ed8c4c477bac23c393 SHA512 a43a312d4668846b6f72eebac1a289d0a603303cd32624c3308cce8934f693c7d3786b36da5cea3ff1cce60f93110a2ded168304e1ca9a79053f0886b7f1bf17 |
24 |
DIST coverage-6.0.tar.gz 719495 BLAKE2B fa2768cc34f5c8e5e1b0bd328dda4b83bccae4bcb37b1e2ea8ff9a7fad973239a264f12cea7fae7ed129abe1a7aa86b43e2e32fcfd5c4de2077c8b32f405cd3a SHA512 b9a5dcb2aeb8517a9a52feadfd817727086d88682d9d93d65d9f4d7b6116d8eca1ecceaccc98ff34ca2fb1c2d4dc457d0d58d387465e67970ae4df0f4c9f7ca5 |
25 |
|
26 |
diff --git a/dev-python/coverage/coverage-6.0.2.ebuild b/dev-python/coverage/coverage-6.0.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..4581809c8ea |
29 |
--- /dev/null |
30 |
+++ b/dev-python/coverage/coverage-6.0.2.ebuild |
31 |
@@ -0,0 +1,54 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
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, run tests verbosely |
67 |
+ sed -i -e '/^addopts/s:-n3:-v:' setup.cfg || die |
68 |
+ distutils-r1_src_prepare |
69 |
+} |
70 |
+ |
71 |
+python_test() { |
72 |
+ distutils_install_for_testing |
73 |
+ |
74 |
+ "${EPYTHON}" igor.py zip_mods || die |
75 |
+ "${EPYTHON}" igor.py test_with_tracer py || die |
76 |
+ |
77 |
+ # No C extensions under pypy |
78 |
+ if [[ ${EPYTHON} != pypy* ]]; then |
79 |
+ cp -l -- "${TEST_DIR}"/lib/*/coverage/*.so coverage/ || die |
80 |
+ "${EPYTHON}" igor.py test_with_tracer c || die |
81 |
+ fi |
82 |
+ |
83 |
+ # clean up leftover "egg1" directory |
84 |
+ rm -rf build/lib/egg1 || die |
85 |
+} |