summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-06-03 07:40:03 +0200
committerMichał Górny <mgorny@gentoo.org>2020-06-03 08:41:30 +0200
commit47220f984bcd6a63191483aad4a1aab690139d8b (patch)
treea15e87e38bb6a5ad607428eb13cae1ca8a5352fd /dev-python/argh
parentdev-python/iocapture: Port to py39 (diff)
downloadgentoo-47220f984bcd6a63191483aad4a1aab690139d8b.tar.gz
gentoo-47220f984bcd6a63191483aad4a1aab690139d8b.tar.bz2
gentoo-47220f984bcd6a63191483aad4a1aab690139d8b.zip
dev-python/argh: Port to py39
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/argh')
-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