summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-02-27 20:33:15 +0000
committerSam James <sam@gentoo.org>2021-02-27 20:57:47 +0000
commit37d381f2e0e93d556da4ce7f4b212feb77be083d (patch)
treee8022ec63f9430b2792e1a077771846aa0186a7b
parentmail-filter/afew: add Python 3.9 (diff)
downloadgentoo-37d381f2e0e93d556da4ce7f4b212feb77be083d.tar.gz
gentoo-37d381f2e0e93d556da4ce7f4b212feb77be083d.tar.bz2
gentoo-37d381f2e0e93d556da4ce7f4b212feb77be083d.zip
mail-filter/afew: add tests
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--mail-filter/afew/afew-3.0.1.ebuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/mail-filter/afew/afew-3.0.1.ebuild b/mail-filter/afew/afew-3.0.1.ebuild
index 1fd37640802..96767c744cd 100644
--- a/mail-filter/afew/afew-3.0.1.ebuild
+++ b/mail-filter/afew/afew-3.0.1.ebuild
@@ -27,10 +27,17 @@ RDEPEND="
BDEPEND="
$(python_gen_cond_dep '
dev-python/sphinx[${PYTHON_USEDEP}]
- ')"
+ ')
+ test? (
+ $(python_gen_cond_dep '
+ dev-python/freezegun[${PYTHON_USEDEP}]
+ ')
+ )"
DOCS=( "README.rst" )
+distutils_enable_tests pytest
+
python_prepare_all() {
sed -r \
-e "s/^([[:space:]]+)use_scm_version=.*,$/\1version='${PV}',/" \