From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pymacaroons/
Date: Fri, 15 Jul 2022 01:26:28 +0000 (UTC) [thread overview]
Message-ID: <1657848210.f536fcfc362a5836176ea90e81d1ca4c76e517e5.sam@gentoo> (raw)
commit: f536fcfc362a5836176ea90e81d1ca4c76e517e5
Author: Petr Vaněk <arkamar <AT> atlas <DOT> cz>
AuthorDate: Tue Jul 12 20:07:13 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jul 15 01:23:30 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f536fcfc
dev-python/pymacaroons: enable tests
This enables majority of available tests except of those depending on
too old dev-python/hypothesis version.
Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz>
Closes: https://github.com/gentoo/gentoo/pull/26375
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-python/pymacaroons/pymacaroons-0.13.0.ebuild | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/dev-python/pymacaroons/pymacaroons-0.13.0.ebuild b/dev-python/pymacaroons/pymacaroons-0.13.0.ebuild
index 24e60796d20c..fc5b6826c9b4 100644
--- a/dev-python/pymacaroons/pymacaroons-0.13.0.ebuild
+++ b/dev-python/pymacaroons/pymacaroons-0.13.0.ebuild
@@ -18,12 +18,22 @@ SRC_URI="https://github.com/ecordell/pymacaroons/archive/v${PV}.tar.gz -> ${P}.g
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
+IUSE="test"
-# tests are incompatible with dev-python/hypothesis::gentoo. This package needs
-# <2.0.0, because needed hypothesis.specifiers module was removed in 2.0.0.
-RESTRICT="test"
+RESTRICT="!test? ( test )"
RDEPEND="
dev-python/pynacl[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
"
+BDEPEND="test? (
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/nose[${PYTHON_USEDEP}]
+ )
+"
+
+python_test() {
+ # The package also contains property_tests, however, they are incompatible
+ # with dev-python/hypothesis in gentoo. The package requires too old version.
+ "${EPYTHON}" -m nose -v tests/functional_tests || die "Tests failed with ${EPYTHON}"
+}
next reply other threads:[~2022-07-15 1:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-15 1:26 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-05-22 8:54 [gentoo-commits] repo/gentoo:master commit in: dev-python/pymacaroons/ Petr Vaněk
2023-05-28 11:36 Sam James
2022-11-30 13:22 Michał Górny
2022-11-30 6:04 Jakov Smolić
2022-10-29 21:01 Michał Górny
2022-09-27 21:44 Sam James
2022-09-22 7:42 Agostino Sarubbo
2022-07-20 17:01 Sam James
2022-07-09 8:16 Sam James
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=1657848210.f536fcfc362a5836176ea90e81d1ca4c76e517e5.sam@gentoo \
--to=sam@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