1 |
commit: 24d61ddedfbb6e332dac12d9307366628d8344cf |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 2 07:55:04 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 2 08:06:59 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24d61dde |
7 |
|
8 |
dev-python/argon2_cffi: Use distutils_enable_tests |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/argon2_cffi/argon2_cffi-19.1.0.ebuild | 12 ++++-------- |
13 |
1 file changed, 4 insertions(+), 8 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/argon2_cffi/argon2_cffi-19.1.0.ebuild b/dev-python/argon2_cffi/argon2_cffi-19.1.0.ebuild |
16 |
index 03a1a577005..da5d18a898c 100644 |
17 |
--- a/dev-python/argon2_cffi/argon2_cffi-19.1.0.ebuild |
18 |
+++ b/dev-python/argon2_cffi/argon2_cffi-19.1.0.ebuild |
19 |
@@ -1,4 +1,4 @@ |
20 |
-# Copyright 1999-2019 Gentoo Authors |
21 |
+# Copyright 1999-2020 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
EAPI=7 |
25 |
@@ -13,8 +13,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
26 |
LICENSE="MIT" |
27 |
SLOT="0" |
28 |
KEYWORDS="~amd64 ~x86" |
29 |
-IUSE="doc test" |
30 |
-RESTRICT="!test? ( test )" |
31 |
+IUSE="doc" |
32 |
|
33 |
COMMON_DEPEND=" |
34 |
~app-crypt/argon2-20171227:= |
35 |
@@ -28,12 +27,13 @@ DEPEND="${COMMON_DEPEND} |
36 |
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
37 |
test? ( |
38 |
dev-python/hypothesis[${PYTHON_USEDEP}] |
39 |
- >=dev-python/pytest-3.0[${PYTHON_USEDEP}] |
40 |
) |
41 |
" |
42 |
|
43 |
DOCS=( AUTHORS.rst CHANGELOG.rst FAQ.rst README.rst ) |
44 |
|
45 |
+distutils_enable_tests pytest |
46 |
+ |
47 |
python_configure_all() { |
48 |
export ARGON2_CFFI_USE_SYSTEM=1 |
49 |
} |
50 |
@@ -42,10 +42,6 @@ python_compile_all() { |
51 |
use doc && emake -C docs html |
52 |
} |
53 |
|
54 |
-python_test() { |
55 |
- pytest -vv || die "Tests failed with ${EPYTHON}" |
56 |
-} |
57 |
- |
58 |
python_install_all() { |
59 |
use doc && local HTML_DOCS=( docs/_build/html/. ) |
60 |
distutils-r1_python_install_all |