1 |
commit: 7aa1a121980c28e45c6e28fbe5f734b4c0c5241a |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 19 08:32:16 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 19 08:46:43 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7aa1a121 |
7 |
|
8 |
dev-python/jdcal: Enable tests |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/jdcal/jdcal-1.4.ebuild | 9 ++++++++- |
13 |
1 file changed, 8 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/dev-python/jdcal/jdcal-1.4.ebuild b/dev-python/jdcal/jdcal-1.4.ebuild |
16 |
index 7d5ccbb430d..6e4aa866dc3 100644 |
17 |
--- a/dev-python/jdcal/jdcal-1.4.ebuild |
18 |
+++ b/dev-python/jdcal/jdcal-1.4.ebuild |
19 |
@@ -14,5 +14,12 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
20 |
LICENSE="BSD" |
21 |
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" |
22 |
SLOT="0" |
23 |
+IUSE="test" |
24 |
+RESTRICT="!test? ( test )" |
25 |
|
26 |
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
27 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
28 |
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )" |
29 |
+ |
30 |
+python_test() { |
31 |
+ pytest -vv || die |
32 |
+} |