From 3526ec7c90064d85e83f378c6cb00d96fd8c9170 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sun, 9 Aug 2020 14:48:52 +0200 Subject: dev-python/deprecation: Port to py3.9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/deprecation/deprecation-2.0.7.ebuild | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) (limited to 'dev-python/deprecation') diff --git a/dev-python/deprecation/deprecation-2.0.7.ebuild b/dev-python/deprecation/deprecation-2.0.7.ebuild index 112502583e07..e60bd8935988 100644 --- a/dev-python/deprecation/deprecation-2.0.7.ebuild +++ b/dev-python/deprecation/deprecation-2.0.7.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( pypy3 python3_{6,7} ) +PYTHON_COMPAT=( pypy3 python3_{6..9} ) inherit distutils-r1 @@ -14,31 +14,13 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="amd64 ~arm64 x86" -IUSE="doc test" -RESTRICT="!test? ( test )" RDEPEND="dev-python/packaging[${PYTHON_USEDEP}]" BDEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) test? ( dev-python/unittest2[${PYTHON_USEDEP}] - ${RDEPEND} ) " -python_prepare_all() { - sed -i "s/, 'sphinx.ext.intersphinx'//" docs/conf.py || die - distutils-r1_python_prepare_all -} - -python_compile_all() { - if use doc; then - sphinx-build docs docs/_build/html || die - HTML_DOCS=( docs/_build/html/. ) - fi -} - -python_test() { - "${EPYTHON}" -m unittest discover -v || die "tests failed with ${EPYTHON}" -} +distutils_enable_sphinx docs +distutils_enable_tests unittest -- cgit v1.2.3-65-gdbad