summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@riseup.net>2020-02-09 15:57:31 +0100
committerBenda Xu <heroxbd@gentoo.org>2020-02-12 09:55:47 +0800
commit4d89b88862a71b6113cf286d729c3a6811fbf14f (patch)
treee723ad286f2d4224acaa850bea772ace7b6ed50f /dev-python
parentdev-python/onkyo-eiscp: add py38 compat (diff)
downloadgentoo-4d89b88862a71b6113cf286d729c3a6811fbf14f.tar.gz
gentoo-4d89b88862a71b6113cf286d729c3a6811fbf14f.tar.bz2
gentoo-4d89b88862a71b6113cf286d729c3a6811fbf14f.zip
dev-python/line_profiler: 3.0.2 fix test and manifest.
Closes: https://github.com/gentoo/gentoo/pull/14604 Bug: https://bugs.gentoo.org/708948 Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/line_profiler/Manifest2
-rw-r--r--dev-python/line_profiler/line_profiler-3.0.2.ebuild17
2 files changed, 17 insertions, 2 deletions
diff --git a/dev-python/line_profiler/Manifest b/dev-python/line_profiler/Manifest
index 43809df6ec19..26d2eb4d4966 100644
--- a/dev-python/line_profiler/Manifest
+++ b/dev-python/line_profiler/Manifest
@@ -1,3 +1,3 @@
DIST line_profiler-2.0.tar.gz 68478 BLAKE2B fb814b251e8f18a51e65297e57523b85c55b4060444c42d99801aa88c8ee0279abf14def6ecd5a9b09550e46e2d27b3ec809b1333725b00de64b58f117c76ed7 SHA512 c0335fc69fb47c150fa5555af4f7fdf4b172ca12ee6512e04ba854c4a81f3e6ee5594e484d11c8ea7e9e8048e3f3b8661db52332d4ac645195a0e050acea4ecb
DIST line_profiler-2.1.2.tar.gz 83131 BLAKE2B 0f61d7dbab24988a50c1c0a9dce528cf792ca53b5f4c60f00fd9dabfd3d3e109f2d245867bc1ebb8294fb84343907e3593c416341ea1b0d7ae626cda8a3218d3 SHA512 625a585915d338fe8ef2f37c5b5bc024f769a623380b85725bcf33686e4cc62a211c2e91552e093dee940367b0d2ad306c5cbe7f1e8f1574eb731d128b8e22bd
-DIST line_profiler-3.0.2.tar.gz 44005 BLAKE2B 2237eb5fc26d673eb0b7c1970b7f04ba7df1c5ebe5f1605a818dba218f9b134ddc3647ae91b10b42ad551cc8e4638d39723ac9d62f75ea705bc7ca1ddc41c99b SHA512 db6cd96c7dbab9b0d4844a3283c65dc56724d50ebe1ce439f6a2b3410e96209d812c2baf2795e2c8d78af23e3cd01c67a92aa0aca4533e8e4b661bf2e63f63c1
+DIST line_profiler-3.0.2.tar.gz 45185 BLAKE2B 04e617cc7b6c9686192281ab1cdfdef2cfc6ce3c7aa6b9962ed2369620618af8835b93bafe89f8d1288b45d4120d71f728ec577d5c5d035699c2d7a49d6be7c1 SHA512 9a5d1821c02fc063081854ba98a17eca21af65d5aecf4ce32c67806d31bf0c936291a30409845ce6f94211cdaaaf0859ab5e2b437e1a086fd4f60fc2a0fd2742
diff --git a/dev-python/line_profiler/line_profiler-3.0.2.ebuild b/dev-python/line_profiler/line_profiler-3.0.2.ebuild
index e7db155b3e30..4c08a5c1f82d 100644
--- a/dev-python/line_profiler/line_profiler-3.0.2.ebuild
+++ b/dev-python/line_profiler/line_profiler-3.0.2.ebuild
@@ -22,7 +22,22 @@ BDEPEND="dev-python/cython[${PYTHON_USEDEP}]
RDEPEND="dev-python/ipython[${PYTHON_USEDEP}]"
-DEPEND="test? ( dev-python/coverage[${PYTHON_USEDEP}]
+DEPEND="test? (
+ dev-python/coverage[${PYTHON_USEDEP}]
dev-python/ubelt[${PYTHON_USEDEP}] )"
distutils_enable_tests pytest
+
+python_test() {
+ # tests fail if not already installed
+ # to fix this, source files should be in PYTHONPATH
+ # also, tests call kernprof, so we have to move that
+ # back to the source files and make it executable
+ cp "${BUILD_DIR}/lib/kernprof.py" "${WORKDIR}/${P}/kernprof" || die
+ chmod +x "${WORKDIR}/${P}/kernprof" || die
+ cp "${BUILD_DIR}/lib/${PN}" -r "${WORKDIR}/${P}" || die
+ PYTHONPATH="${WORKDIR}/${P}"
+ PATH="${PATH}:${WORKDIR}/${P}"
+
+ pytest -vv || die "Tests fail with ${EPYTHON}"
+}