Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/afew/
Date: Sat, 27 Feb 2021 20:57:57
Message-Id: 1614459467.37d381f2e0e93d556da4ce7f4b212feb77be083d.sam@gentoo
1 commit: 37d381f2e0e93d556da4ce7f4b212feb77be083d
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 27 20:33:15 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 27 20:57:47 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37d381f2
7
8 mail-filter/afew: add tests
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 mail-filter/afew/afew-3.0.1.ebuild | 9 ++++++++-
13 1 file changed, 8 insertions(+), 1 deletion(-)
14
15 diff --git a/mail-filter/afew/afew-3.0.1.ebuild b/mail-filter/afew/afew-3.0.1.ebuild
16 index 1fd37640802..96767c744cd 100644
17 --- a/mail-filter/afew/afew-3.0.1.ebuild
18 +++ b/mail-filter/afew/afew-3.0.1.ebuild
19 @@ -27,10 +27,17 @@ RDEPEND="
20 BDEPEND="
21 $(python_gen_cond_dep '
22 dev-python/sphinx[${PYTHON_USEDEP}]
23 - ')"
24 + ')
25 + test? (
26 + $(python_gen_cond_dep '
27 + dev-python/freezegun[${PYTHON_USEDEP}]
28 + ')
29 + )"
30
31 DOCS=( "README.rst" )
32
33 +distutils_enable_tests pytest
34 +
35 python_prepare_all() {
36 sed -r \
37 -e "s/^([[:space:]]+)use_scm_version=.*,$/\1version='${PV}',/" \