summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-python/argh/argh-0.26.2-r2.ebuild13
1 files changed, 3 insertions, 10 deletions
diff --git a/dev-python/argh/argh-0.26.2-r2.ebuild b/dev-python/argh/argh-0.26.2-r2.ebuild
index e4fc72244a2f..7275fa021aaa 100644
--- a/dev-python/argh/argh-0.26.2-r2.ebuild
+++ b/dev-python/argh/argh-0.26.2-r2.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python{3_6,3_7,3_8} pypy3 )
+PYTHON_COMPAT=( python3_{6..9} pypy3 )
inherit distutils-r1
@@ -14,18 +14,11 @@ SRC_URI="mirror://pypi/a/${PN}/${P}.tar.gz"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64 ~ppc x86"
LICENSE="LGPL-3"
-IUSE="test"
-RESTRICT="!test? ( test )"
-RDEPEND=""
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+BDEPEND="
test? (
- dev-python/pytest[${PYTHON_USEDEP}]
dev-python/iocapture[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]
- ${RDEPEND}
)"
-python_test() {
- pytest -vv || die "Tests fail with ${EPYTHON}"
-}
+distutils_enable_tests pytest