1 |
commit: 948dba875a5a912f463a7396b79c67505031ca36 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 1 08:09:12 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 1 08:13:30 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=948dba87 |
7 |
|
8 |
dev-python/coverage: Bump to 5.5 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/coverage/Manifest | 1 + |
13 |
dev-python/coverage/coverage-5.5.ebuild | 59 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 60 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/coverage/Manifest b/dev-python/coverage/Manifest |
17 |
index c34f8832694..33497c68462 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.3.1.tar.gz 684457 BLAKE2B 82c8e311d85a6f758c46767957199e94099838e3c340f5da1472813a2877293245583cb190acc0139cddf3363ee5f299fb42f955c59912b80d9d1ece8cfb09fa SHA512 981ebc9f9490efe613edd68afdef83cb161b303e6de266335ffd2d1d3634bd5a088cbff249b0243071b55cb4f31b4b0c7537b5764660ccc86a7059307badd571 |
23 |
DIST coverage-5.4.tar.gz 687727 BLAKE2B 54c9e605eaed551aff0c6764bf2747e2ce64a7c0596cb78cb4ad6998c4b7d79fe31bfe98eb240aee4c838dde6a4536f8e84d00c14846bb671b51b28168a96947 SHA512 c682806bce603fff1ff09234c72e17370093192053961656f06ef4bcc7928f052ef4a350e80687c640d7608a22f4f3434e1836d83674eebca53459745838f519 |
24 |
+DIST coverage-5.5.tar.gz 691258 BLAKE2B 66bf340956b760d996ce424f977b407eb74062db56108e4910459dbcb7c271820ca655a648021763aede1c4d87c44524cea0cb34f969f203f630d48cf15b05b4 SHA512 fb78b4920a2f18afb9545a6f13910f491708443965881954fff6ee8553ab3d6bd898f7a95df1091435e8d5627ac850b880a6233e716a6acb934ecc195ec2ee52 |
25 |
|
26 |
diff --git a/dev-python/coverage/coverage-5.5.ebuild b/dev-python/coverage/coverage-5.5.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..6a99cbf4e39 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/coverage/coverage-5.5.ebuild |
31 |
@@ -0,0 +1,59 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+PYTHON_COMPAT=( python3_{7,8,9} pypy3 ) |
37 |
+PYTHON_REQ_USE="threads(+),sqlite(+)" |
38 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
39 |
+ |
40 |
+inherit distutils-r1 |
41 |
+ |
42 |
+DESCRIPTION="Code coverage measurement for Python" |
43 |
+HOMEPAGE="https://coverage.readthedocs.io/en/latest/ https://pypi.org/project/coverage/" |
44 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="BSD" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" |
49 |
+#IUSE="test" |
50 |
+# The tests are impossible to appease. Please run them externally |
51 |
+# via tox. Or fix the ebuild if you have hours of time to spend |
52 |
+# on something utterly useless. |
53 |
+RESTRICT="test" |
54 |
+ |
55 |
+#BDEPEND=" |
56 |
+# test? ( |
57 |
+# dev-python/PyContracts[${PYTHON_USEDEP}] |
58 |
+# dev-python/flaky[${PYTHON_USEDEP}] |
59 |
+# dev-python/hypothesis[${PYTHON_USEDEP}] |
60 |
+# dev-python/mock[${PYTHON_USEDEP}] |
61 |
+# dev-python/pytest[${PYTHON_USEDEP}] |
62 |
+# >=dev-python/unittest-mixins-1.4[${PYTHON_USEDEP}] |
63 |
+# ) |
64 |
+#" |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ # avoid the dep on xdist, run tests verbosely |
68 |
+ sed -i -e '/^addopts/s:-n3:-v:' setup.cfg || die |
69 |
+ distutils-r1_src_prepare |
70 |
+} |
71 |
+ |
72 |
+python_test() { |
73 |
+ distutils_install_for_testing |
74 |
+ |
75 |
+ pushd tests/eggsrc >/dev/null || die |
76 |
+ distutils_install_for_testing |
77 |
+ popd >/dev/null || die |
78 |
+ |
79 |
+ "${EPYTHON}" igor.py zip_mods || die |
80 |
+ "${EPYTHON}" igor.py test_with_tracer py || die |
81 |
+ |
82 |
+ # No C extensions under pypy |
83 |
+ if [[ ${EPYTHON} != pypy* ]]; then |
84 |
+ cp -l -- "${TEST_DIR}"/lib/*/coverage/*.so coverage/ || die |
85 |
+ "${EPYTHON}" igor.py test_with_tracer c || die |
86 |
+ fi |
87 |
+ |
88 |
+ # clean up leftover "egg1" directory |
89 |
+ rm -rf build/lib/egg1 || die |
90 |
+} |