commit:     eaae155631c9ab8c35561aae519a169b68e92dd1
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jun  2 11:41:05 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jun  2 12:01:08 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eaae1556

dev-python/blessings: Port to py39

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

 dev-python/blessings/blessings-1.7-r1.ebuild | 21 ++++-----------------
 1 file changed, 4 insertions(+), 17 deletions(-)

diff --git a/dev-python/blessings/blessings-1.7-r1.ebuild 
b/dev-python/blessings/blessings-1.7-r1.ebuild
index d9b166b70bc..5685726fc78 100644
--- a/dev-python/blessings/blessings-1.7-r1.ebuild
+++ b/dev-python/blessings/blessings-1.7-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( pypy3 python3_{6,7,8} )
+PYTHON_COMPAT=( pypy3 python3_{6..9} )
 
 inherit distutils-r1
 
@@ -15,24 +15,11 @@ 
SRC_URI="https://github.com/erikrose/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
 SLOT="0"
 LICENSE="MIT"
 KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
-IUSE="doc test"
-RESTRICT="!test? ( test )"
 
 RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
-BDEPEND="
-       doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
-       test? (
-               ${RDEPEND}
-               dev-python/nose[${PYTHON_USEDEP}]
-       )
-"
-
-python_compile_all() {
-       if use doc; then
-               sphinx-build docs/ docs/_build/html || die
-               HTML_DOCS=( docs/_build/html/. )
-       fi
-}
+
+distutils_enable_sphinx docs
+distutils_enable_tests nose
 
 python_test() {
        # The tests need an interactive terminal

Reply via email to