From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: python@gentoo.org, "Michał Górny" <mgorny@gentoo.org>
Subject: [gentoo-dev] [PATCH 4/4] dev-python/trustme: Example use of distutils_enable_tests
Date: Mon, 4 Nov 2019 22:00:13 +0100 [thread overview]
Message-ID: <20191104210013.49303-4-mgorny@gentoo.org> (raw)
In-Reply-To: <20191104210013.49303-1-mgorny@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
dev-python/trustme/trustme-0.5.2.ebuild | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/dev-python/trustme/trustme-0.5.2.ebuild b/dev-python/trustme/trustme-0.5.2.ebuild
index ee3f8b306297..eb4e41b0cf42 100644
--- a/dev-python/trustme/trustme-0.5.2.ebuild
+++ b/dev-python/trustme/trustme-0.5.2.ebuild
@@ -14,20 +14,15 @@ LICENSE="|| ( Apache-2.0 MIT )"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE="test"
-RESTRICT="!test? ( test )"
RDEPEND="dev-python/cryptography[${PYTHON_USEDEP}]
dev-python/idna[${PYTHON_USEDEP}]
$(python_gen_cond_dep '>=dev-python/ipaddress-1.0.16[${PYTHON_USEDEP}]' -2 )"
-DEPEND="${RDEPEND}
- dev-python/setuptools[${PYTHON_USEDEP}]
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
test? (
- dev-python/pytest[${PYTHON_USEDEP}]
dev-python/pyopenssl[${PYTHON_USEDEP}]
dev-python/service_identity[${PYTHON_USEDEP}]
$(python_gen_cond_dep 'dev-python/futures[${PYTHON_USEDEP}]' -2 )
)"
-python_test() {
- pytest -vv || die "Tests failed under ${EPYTHON}"
-}
+distutils_enable_tests pytest
--
2.23.0
next prev parent reply other threads:[~2019-11-04 21:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-04 21:00 [gentoo-dev] [PATCH 1/4] distutils-r1.eclass: Add distutils_enable_tests to ease testing Michał Górny
2019-11-04 21:00 ` [gentoo-dev] [PATCH 2/4] dev-python/cssselect: Example use of distutils_enable_tests Michał Górny
2019-11-04 21:00 ` [gentoo-dev] [PATCH 3/4] dev-python/pyee: " Michał Górny
2019-11-04 21:00 ` Michał Górny [this message]
2019-11-05 5:35 ` [gentoo-dev] [PATCH 1/4] distutils-r1.eclass: Add distutils_enable_tests to ease testing Joonas Niilola
2019-11-05 6:53 ` Michał Górny
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=20191104210013.49303-4-mgorny@gentoo.org \
--to=mgorny@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
--cc=python@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