commit: 58137db92a132f7c15964b7a0960b499f52446fa Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sun May 23 13:13:35 2021 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sun May 23 13:41:04 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58137db9
dev-python/sphinx-jinja: Enable py3.9 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/sphinx-jinja/sphinx-jinja-0.3.0.ebuild | 27 +++++++++++------------ 1 file 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 70be8884321..5489dcac303 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 }