summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-11-17 15:52:16 +0100
committerMichał Górny <mgorny@gentoo.org>2020-11-17 15:52:16 +0100
commitb1a84dd3b9fbfa7abcf628c636d2a0ed948545a9 (patch)
tree0d1a7ba55d7e6151fd3f2ebeaef953dc2c862ae4 /dev-python/genson
parentpackage.mask: Last rite dev-python/funcsigs (diff)
downloadgentoo-b1a84dd3b9fbfa7abcf628c636d2a0ed948545a9.tar.gz
gentoo-b1a84dd3b9fbfa7abcf628c636d2a0ed948545a9.tar.bz2
gentoo-b1a84dd3b9fbfa7abcf628c636d2a0ed948545a9.zip
dev-python/genson: Port up to py3.9
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/genson')
-rw-r--r--dev-python/genson/genson-1.1.0.ebuild19
1 files changed, 4 insertions, 15 deletions
diff --git a/dev-python/genson/genson-1.1.0.ebuild b/dev-python/genson/genson-1.1.0.ebuild
index b4b5bd5e33e8..df79e572b36c 100644
--- a/dev-python/genson/genson-1.1.0.ebuild
+++ b/dev-python/genson/genson-1.1.0.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python3_{5,6,7})
+PYTHON_COMPAT=( python3_{6..9} )
DISTUTILS_USE_SETUPTOOLS=rdepend
@@ -17,19 +17,8 @@ LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
-
-BDEPEND="
- ${PYTHON_DEPS}
- "
-
-RDEPEND="
- ${PYTHON_DEPS}
- "
-DEPEND="${RDEPEND}
- test? ( dev-python/jsonschema[${PYTHON_USEDEP}] )"
-
RESTRICT="!test? ( test )"
-python_test() {
- "${PYTHON}" -m unittest discover || die "Testing failed with ${EPYTHON}"
-}
+BDEPEND="test? ( dev-python/jsonschema[${PYTHON_USEDEP}] )"
+
+distutils_enable_tests unittest