From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C8C71138350 for ; Wed, 12 Feb 2020 01:56:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BE438E08A5; Wed, 12 Feb 2020 01:56:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 93585E08A5 for ; Wed, 12 Feb 2020 01:56:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 046BD34EC1D for ; Wed, 12 Feb 2020 01:56:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A119F7B for ; Wed, 12 Feb 2020 01:55:58 +0000 (UTC) From: "Benda XU" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Benda XU" Message-ID: <1581472547.4d89b88862a71b6113cf286d729c3a6811fbf14f.heroxbd@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/line_profiler/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/line_profiler/Manifest dev-python/line_profiler/line_profiler-3.0.2.ebuild X-VCS-Directories: dev-python/line_profiler/ X-VCS-Committer: heroxbd X-VCS-Committer-Name: Benda XU X-VCS-Revision: 4d89b88862a71b6113cf286d729c3a6811fbf14f X-VCS-Branch: master Date: Wed, 12 Feb 2020 01:55:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 35f31879-045b-49eb-baf8-2af69d031c23 X-Archives-Hash: d2571e28a50bba3da32d632f47a1c2cd commit: 4d89b88862a71b6113cf286d729c3a6811fbf14f Author: Andrew Ammerlaan riseup net> AuthorDate: Sun Feb 9 14:57:31 2020 +0000 Commit: Benda XU gentoo org> CommitDate: Wed Feb 12 01:55:47 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d89b888 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 riseup.net> Signed-off-by: Benda Xu gentoo.org> dev-python/line_profiler/Manifest | 2 +- dev-python/line_profiler/line_profiler-3.0.2.ebuild | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/dev-python/line_profiler/Manifest b/dev-python/line_profiler/Manifest index 43809df6ec1..26d2eb4d496 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 e7db155b3e3..4c08a5c1f82 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}" +}