1 |
commit: a4b3497010cc10341ef83083db2423d0b6039479 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 1 13:31:01 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 1 14:56:16 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4b34970 |
7 |
|
8 |
dev-python/atomicwrites: Enable tests |
9 |
|
10 |
dev-python/atomicwrites/atomicwrites-1.1.5-r2.ebuild | 9 +++++++-- |
11 |
1 file changed, 7 insertions(+), 2 deletions(-) |
12 |
|
13 |
diff --git a/dev-python/atomicwrites/atomicwrites-1.1.5-r2.ebuild b/dev-python/atomicwrites/atomicwrites-1.1.5-r2.ebuild |
14 |
index 71e648359d6..d916b495da1 100644 |
15 |
--- a/dev-python/atomicwrites/atomicwrites-1.1.5-r2.ebuild |
16 |
+++ b/dev-python/atomicwrites/atomicwrites-1.1.5-r2.ebuild |
17 |
@@ -13,8 +13,13 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
18 |
LICENSE="MIT" |
19 |
SLOT="0" |
20 |
KEYWORDS="~amd64 ~x86" |
21 |
-IUSE="" |
22 |
+IUSE="test" |
23 |
|
24 |
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
25 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
26 |
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )" |
27 |
|
28 |
DOCS=( README.rst ) |
29 |
+ |
30 |
+python_test() { |
31 |
+ py.test -v || die "Tests fail with ${EPYTHON}" |
32 |
+} |