1 |
commit: 4d89b88862a71b6113cf286d729c3a6811fbf14f |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Sun Feb 9 14:57:31 2020 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 12 01:55:47 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d89b888 |
7 |
|
8 |
dev-python/line_profiler: 3.0.2 fix test and manifest. |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/14604 |
11 |
Bug: https://bugs.gentoo.org/708948 |
12 |
|
13 |
Package-Manager: Portage-2.3.88, Repoman-2.3.20 |
14 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
15 |
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org> |
16 |
|
17 |
dev-python/line_profiler/Manifest | 2 +- |
18 |
dev-python/line_profiler/line_profiler-3.0.2.ebuild | 17 ++++++++++++++++- |
19 |
2 files changed, 17 insertions(+), 2 deletions(-) |
20 |
|
21 |
diff --git a/dev-python/line_profiler/Manifest b/dev-python/line_profiler/Manifest |
22 |
index 43809df6ec1..26d2eb4d496 100644 |
23 |
--- a/dev-python/line_profiler/Manifest |
24 |
+++ b/dev-python/line_profiler/Manifest |
25 |
@@ -1,3 +1,3 @@ |
26 |
DIST line_profiler-2.0.tar.gz 68478 BLAKE2B fb814b251e8f18a51e65297e57523b85c55b4060444c42d99801aa88c8ee0279abf14def6ecd5a9b09550e46e2d27b3ec809b1333725b00de64b58f117c76ed7 SHA512 c0335fc69fb47c150fa5555af4f7fdf4b172ca12ee6512e04ba854c4a81f3e6ee5594e484d11c8ea7e9e8048e3f3b8661db52332d4ac645195a0e050acea4ecb |
27 |
DIST line_profiler-2.1.2.tar.gz 83131 BLAKE2B 0f61d7dbab24988a50c1c0a9dce528cf792ca53b5f4c60f00fd9dabfd3d3e109f2d245867bc1ebb8294fb84343907e3593c416341ea1b0d7ae626cda8a3218d3 SHA512 625a585915d338fe8ef2f37c5b5bc024f769a623380b85725bcf33686e4cc62a211c2e91552e093dee940367b0d2ad306c5cbe7f1e8f1574eb731d128b8e22bd |
28 |
-DIST line_profiler-3.0.2.tar.gz 44005 BLAKE2B 2237eb5fc26d673eb0b7c1970b7f04ba7df1c5ebe5f1605a818dba218f9b134ddc3647ae91b10b42ad551cc8e4638d39723ac9d62f75ea705bc7ca1ddc41c99b SHA512 db6cd96c7dbab9b0d4844a3283c65dc56724d50ebe1ce439f6a2b3410e96209d812c2baf2795e2c8d78af23e3cd01c67a92aa0aca4533e8e4b661bf2e63f63c1 |
29 |
+DIST line_profiler-3.0.2.tar.gz 45185 BLAKE2B 04e617cc7b6c9686192281ab1cdfdef2cfc6ce3c7aa6b9962ed2369620618af8835b93bafe89f8d1288b45d4120d71f728ec577d5c5d035699c2d7a49d6be7c1 SHA512 9a5d1821c02fc063081854ba98a17eca21af65d5aecf4ce32c67806d31bf0c936291a30409845ce6f94211cdaaaf0859ab5e2b437e1a086fd4f60fc2a0fd2742 |
30 |
|
31 |
diff --git a/dev-python/line_profiler/line_profiler-3.0.2.ebuild b/dev-python/line_profiler/line_profiler-3.0.2.ebuild |
32 |
index e7db155b3e3..4c08a5c1f82 100644 |
33 |
--- a/dev-python/line_profiler/line_profiler-3.0.2.ebuild |
34 |
+++ b/dev-python/line_profiler/line_profiler-3.0.2.ebuild |
35 |
@@ -22,7 +22,22 @@ BDEPEND="dev-python/cython[${PYTHON_USEDEP}] |
36 |
|
37 |
RDEPEND="dev-python/ipython[${PYTHON_USEDEP}]" |
38 |
|
39 |
-DEPEND="test? ( dev-python/coverage[${PYTHON_USEDEP}] |
40 |
+DEPEND="test? ( |
41 |
+ dev-python/coverage[${PYTHON_USEDEP}] |
42 |
dev-python/ubelt[${PYTHON_USEDEP}] )" |
43 |
|
44 |
distutils_enable_tests pytest |
45 |
+ |
46 |
+python_test() { |
47 |
+ # tests fail if not already installed |
48 |
+ # to fix this, source files should be in PYTHONPATH |
49 |
+ # also, tests call kernprof, so we have to move that |
50 |
+ # back to the source files and make it executable |
51 |
+ cp "${BUILD_DIR}/lib/kernprof.py" "${WORKDIR}/${P}/kernprof" || die |
52 |
+ chmod +x "${WORKDIR}/${P}/kernprof" || die |
53 |
+ cp "${BUILD_DIR}/lib/${PN}" -r "${WORKDIR}/${P}" || die |
54 |
+ PYTHONPATH="${WORKDIR}/${P}" |
55 |
+ PATH="${PATH}:${WORKDIR}/${P}" |
56 |
+ |
57 |
+ pytest -vv || die "Tests fail with ${EPYTHON}" |
58 |
+} |