summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-05-23 15:13:35 +0200
committerMichał Górny <mgorny@gentoo.org>2021-05-23 15:41:04 +0200
commit58137db92a132f7c15964b7a0960b499f52446fa (patch)
tree7405e1ac07fe70109334ed4e7ab3fa33ee8e3360 /dev-python/sphinx-jinja
parentdev-python/snapshottest: Enable py3.9 & py3.10 (diff)
downloadgentoo-58137db92a132f7c15964b7a0960b499f52446fa.tar.gz
gentoo-58137db92a132f7c15964b7a0960b499f52446fa.tar.bz2
gentoo-58137db92a132f7c15964b7a0960b499f52446fa.zip
dev-python/sphinx-jinja: Enable py3.9
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/sphinx-jinja')
-rw-r--r--dev-python/sphinx-jinja/sphinx-jinja-0.3.0.ebuild27
1 files changed, 13 insertions, 14 deletions
diff --git a/dev-python/sphinx-jinja/sphinx-jinja-0.3.0.ebuild b/dev-python/sphinx-jinja/sphinx-jinja-0.3.0.ebuild
index 70be8884321a..5489dcac303d 100644
--- a/dev-python/sphinx-jinja/sphinx-jinja-0.3.0.ebuild
+++ b/dev-python/sphinx-jinja/sphinx-jinja-0.3.0.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-PYTHON_COMPAT=( python3_{7,8} )
+EAPI=7
+PYTHON_COMPAT=( python3_{7..9} )
inherit distutils-r1
@@ -13,23 +13,22 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="test"
-RESTRICT="!test? ( test )"
RDEPEND="
- dev-python/pbr[${PYTHON_USEDEP}]
>=dev-python/sphinx-1.0[${PYTHON_USEDEP}]
"
-DEPEND="${RDEPEND}
- test? ( dev-python/nose[${PYTHON_USEDEP}]
- dev-python/sphinx-testing[${PYTHON_USEDEP}] )"
+BDEPEND="
+ dev-python/pbr[${PYTHON_USEDEP}]
+ test? (
+ dev-python/sphinx-testing[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests nose
-python_prepare() {
+src_prepare() {
sed -e "s/import urllib/import urllib.request as urllib/" \
-i sphinxcontrib/jinja.py || die
-}
-
-python_test() {
- nosetests -v || die
+ distutils-r1_src_prepare
}