From: "Andrew Ammerlaan" <andrewammerlaan@riseup.net> To: gentoo-commits@lists.gentoo.org Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/ Date: Sun, 29 Mar 2020 13:21:15 +0000 (UTC) [thread overview] Message-ID: <1585483306.57fe81e30629df5f2bee32aa4cf834022fe67fbe.andrewammerlaan@gentoo> (raw) commit: 57fe81e30629df5f2bee32aa4cf834022fe67fbe Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> AuthorDate: Sun Mar 29 12:01:46 2020 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> CommitDate: Sun Mar 29 12:01:46 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=57fe81e3 dev-python/pytest-benchmark: tried and failed to fix tests Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild index 82b9e64..5652413 100644 --- a/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild +++ b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild @@ -3,7 +3,7 @@ EAPI="7" -#DISTUTILS_USE_SETUPTOOLS=rdepend +DISTUTILS_USE_SETUPTOOLS=rdepend PYTHON_COMPAT=( python3_6 ) inherit distutils-r1 @@ -19,6 +19,11 @@ LICENSE="BSD-2" SLOT="0" KEYWORDS="~amd64 ~x86" +# during tests import fails because conflict with the already installed files +# not sure how to fix, it would require setting some python variables but that would +# probably lead to all other packages being unfindable by the tests +RESTRICT="test" + RDEPEND=" dev-python/py-cpuinfo[${PYTHON_USEDEP}] " @@ -39,3 +44,10 @@ BDEPEND=" distutils_enable_tests pytest distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme + +python_test() { + # has to be run in source dir + PYTHONPATH="${S}" + cd "${S}" || die + pytest -vv || die "Tests fail with ${EPYTHON}" +}
WARNING: multiple messages have this Message-ID (diff)
From: "Andrew Ammerlaan" <andrewammerlaan@riseup.net> To: gentoo-commits@lists.gentoo.org Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/pytest-benchmark/ Date: Sun, 29 Mar 2020 13:21:33 +0000 (UTC) [thread overview] Message-ID: <1585483306.57fe81e30629df5f2bee32aa4cf834022fe67fbe.andrewammerlaan@gentoo> (raw) Message-ID: <20200329132133.MhswVZdJswsfKrTJg5ZkOwrraM95V-vBtm44Sg-wmgM@z> (raw) commit: 57fe81e30629df5f2bee32aa4cf834022fe67fbe Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> AuthorDate: Sun Mar 29 12:01:46 2020 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> CommitDate: Sun Mar 29 12:01:46 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=57fe81e3 dev-python/pytest-benchmark: tried and failed to fix tests Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild index 82b9e64..5652413 100644 --- a/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild +++ b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild @@ -3,7 +3,7 @@ EAPI="7" -#DISTUTILS_USE_SETUPTOOLS=rdepend +DISTUTILS_USE_SETUPTOOLS=rdepend PYTHON_COMPAT=( python3_6 ) inherit distutils-r1 @@ -19,6 +19,11 @@ LICENSE="BSD-2" SLOT="0" KEYWORDS="~amd64 ~x86" +# during tests import fails because conflict with the already installed files +# not sure how to fix, it would require setting some python variables but that would +# probably lead to all other packages being unfindable by the tests +RESTRICT="test" + RDEPEND=" dev-python/py-cpuinfo[${PYTHON_USEDEP}] " @@ -39,3 +44,10 @@ BDEPEND=" distutils_enable_tests pytest distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme + +python_test() { + # has to be run in source dir + PYTHONPATH="${S}" + cd "${S}" || die + pytest -vv || die "Tests fail with ${EPYTHON}" +}
next reply other threads:[~2020-03-29 13:21 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-03-29 13:21 Andrew Ammerlaan [this message] 2020-03-29 13:21 ` [gentoo-commits] repo/proj/guru:master commit in: dev-python/pytest-benchmark/ Andrew Ammerlaan -- strict thread matches above, loose matches on Subject: below -- 2024-05-25 13:01 Julien Roy 2024-05-25 12:41 ` [gentoo-commits] repo/proj/guru:dev " Julien Roy 2024-04-15 9:34 [gentoo-commits] repo/proj/guru:master " Julien Roy 2024-04-15 9:26 ` [gentoo-commits] repo/proj/guru:dev " Julien Roy 2024-04-13 12:31 Henri Gasc 2023-07-24 20:26 Anna Vyalkova 2023-07-05 13:59 Anna Vyalkova 2023-05-04 2:02 Anna Vyalkova 2022-11-03 7:37 Anna Vyalkova 2022-06-05 6:16 Anna Vyalkova 2022-06-05 1:09 Alessandro Barbieri 2022-06-01 5:03 Anna Vyalkova 2021-08-14 2:00 Anna Vyalkova 2021-06-14 23:09 Alessandro Barbieri 2021-06-14 2:27 Alessandro Barbieri 2021-05-25 10:37 Anna Vyalkova 2021-05-06 0:22 Alessandro Barbieri 2020-09-24 12:17 Andrew Ammerlaan 2020-06-09 16:37 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan 2020-06-09 14:00 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan 2020-03-29 9:29 Alessandro Barbieri
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=1585483306.57fe81e30629df5f2bee32aa4cf834022fe67fbe.andrewammerlaan@gentoo \ --to=andrewammerlaan@riseup.net \ --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: linkBe 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