public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Benda XU" <heroxbd@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/line_profiler/
Date: Wed, 12 Feb 2020 01:55:58 +0000 (UTC)	[thread overview]
Message-ID: <1581472547.4d89b88862a71b6113cf286d729c3a6811fbf14f.heroxbd@gentoo> (raw)

commit:     4d89b88862a71b6113cf286d729c3a6811fbf14f
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Sun Feb  9 14:57:31 2020 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> 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 <andrewammerlaan <AT> riseup.net>
Signed-off-by: Benda Xu <heroxbd <AT> 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}"
+}


             reply	other threads:[~2020-02-12  1:56 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-12  1:55 Benda XU [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-08-22 18:29 [gentoo-commits] repo/gentoo:master commit in: dev-python/line_profiler/ Michał Górny
2023-08-22 18:29 Michał Górny
2023-08-17  7:46 Michał Górny
2023-08-06 12:30 Michał Górny
2023-05-04 16:17 Michał Górny
2023-03-04  4:50 Michał Górny
2022-12-10  6:37 Michał Górny
2022-11-16 17:21 Michał Górny
2022-11-14  4:44 Michał Górny
2022-11-13 18:57 Michał Górny
2022-05-16 13:20 Michał Górny
2022-05-16 13:20 Michał Górny
2022-04-01 12:27 Michał Górny
2022-03-23  8:58 Michał Górny
2021-12-30  8:57 Michał Górny
2021-10-17  9:00 Michał Górny
2021-09-24 20:05 Michał Górny
2021-07-01 18:39 Michał Górny
2021-06-05  8:28 Michał Górny
2021-05-01  7:45 Michał Górny
2021-04-30 15:50 Michał Górny
2021-04-23  7:25 Michał Górny
2021-04-23  7:25 Michał Górny
2020-09-15  8:09 Joonas Niilola
2020-03-27 21:06 Michał Górny
2020-02-09 12:46 Benda XU
2020-02-09 12:46 Benda XU
2018-06-24 15:24 Pacho Ramos
2018-02-16 18:56 Michał Górny
2018-02-16 18:56 Michał Górny
2017-12-02 20:51 Justin Lecher
2017-02-06  8:09 David Seifert
2016-08-30 19:07 David Seifert
2015-11-17 15:53 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1581472547.4d89b88862a71b6113cf286d729c3a6811fbf14f.heroxbd@gentoo \
    --to=heroxbd@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox