commit:     3526ec7c90064d85e83f378c6cb00d96fd8c9170
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Aug  9 12:48:52 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Aug  9 13:08:13 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3526ec7c

dev-python/deprecation: Port to py3.9

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/deprecation/deprecation-2.0.7.ebuild | 24 +++---------------------
 1 file changed, 3 insertions(+), 21 deletions(-)

diff --git a/dev-python/deprecation/deprecation-2.0.7.ebuild 
b/dev-python/deprecation/deprecation-2.0.7.ebuild
index 112502583e0..e60bd893598 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

Reply via email to