From: Michał Górny Date: Sun, 24 Nov 2019 19:18:36 +0000 (+0100) Subject: dev-python/qrcode: Enable py3.8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e6bbedddaef5121063d059c351310f42d20a9839;p=gentoo.git dev-python/qrcode: Enable py3.8 Signed-off-by: Michał Górny --- diff --git a/dev-python/qrcode/qrcode-6.1.ebuild b/dev-python/qrcode/qrcode-6.1.ebuild index b59ee7e4b562..f73d0b581265 100644 --- a/dev-python/qrcode/qrcode-6.1.ebuild +++ b/dev-python/qrcode/qrcode-6.1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) +PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} ) inherit distutils-r1 @@ -14,8 +14,6 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~arm ~arm64 ~x86" -IUSE="test" -RESTRICT="!test? ( test )" # optional deps: # - pillow and lxml for svg backend, set as hard deps @@ -25,12 +23,9 @@ RDEPEND=" dev-python/pillow[${PYTHON_USEDEP}]" DEPEND=" dev-python/setuptools[${PYTHON_USEDEP}] - test? ( ${RDEPEND} - $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' -2) )" + test? ( $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' -2) )" -python_test() { - "${EPYTHON}" -m unittest discover -v || die "Testing failed with ${EPYTHON}" -} +distutils_enable_tests unittest src_install() { distutils-r1_src_install