Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/incremental/
Date: Fri, 11 Jun 2021 21:09:24
Message-Id: 1623445756.a4b6a63eed6c602bff6c84b5cf9b1270e88415c8.mgorny@gentoo
1 commit: a4b6a63eed6c602bff6c84b5cf9b1270e88415c8
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 11 21:07:38 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 11 21:09:16 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4b6a63e
7
8 dev-python/incremental: Enable testing
9
10 Closes: https://bugs.gentoo.org/795450
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 dev-python/incremental/incremental-21.3.0.ebuild | 11 +++++++++--
14 1 file changed, 9 insertions(+), 2 deletions(-)
15
16 diff --git a/dev-python/incremental/incremental-21.3.0.ebuild b/dev-python/incremental/incremental-21.3.0.ebuild
17 index 4ac1a7c7552..c4e047f7338 100644
18 --- a/dev-python/incremental/incremental-21.3.0.ebuild
19 +++ b/dev-python/incremental/incremental-21.3.0.ebuild
20 @@ -16,7 +16,14 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
21 LICENSE="MIT"
22 SLOT="0"
23 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
24 -IUSE=""
25 +IUSE="test"
26 +RESTRICT="!test? ( test )"
27
28 RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
29 -BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
30 +BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
31 + test? ( dev-python/twisted[${PYTHON_USEDEP}] )"
32 +
33 +python_test() {
34 + distutils_install_for_testing
35 + trial incremental || die "Tests failed on ${EPYTHON}"
36 +}