dev-python/speaklater: Port to py3.9

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2020-06-24 08:02:08 +02:00
parent ee2da8c7ae
commit 169c1ed4f7

View File

@@ -3,7 +3,7 @@
EAPI=6
PYTHON_COMPAT=( python{3_6,3_7,3_8} pypy )
PYTHON_COMPAT=( python3_{6..9} pypy )
inherit distutils-r1
DESCRIPTION="Lazy strings for Python"
@@ -13,11 +13,6 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND=""
python_prepare() {
# https://github.com/mitsuhiko/speaklater/issues/2
@@ -30,5 +25,6 @@ python_prepare() {
}
python_test() {
"${PYTHON}" -m doctest -v ${PN}.py || die "tests failed with ${EPYTHON}"
"${EPYTHON}" -m doctest -v speaklater.py ||
die "tests failed with ${EPYTHON}"
}