commit: 49ccca2a739be57a1e74a8218c9834750b06bd22
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 5 13:44:11 2021 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jun 5 13:44:11 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49ccca2a
dev-python/fudge: Enable py3.10
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/fudge/fudge-1.1.1.ebuild | 19 +++----------------
1 file changed, 3 insertions(+), 16 deletions(-)
diff --git a/dev-python/fudge/fudge-1.1.1.ebuild
b/dev-python/fudge/fudge-1.1.1.ebuild
index a68ebe7de1d..f35325a1338 100644
--- a/dev-python/fudge/fudge-1.1.1.ebuild
+++ b/dev-python/fudge/fudge-1.1.1.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-PYTHON_COMPAT=( python3_{7..9} )
+PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
@@ -13,23 +13,10 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
-IUSE="doc test"
-RESTRICT="!test? ( test )"
-BDEPEND="
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
- test? ( dev-python/nose[${PYTHON_USEDEP}] )
-"
-
-python_compile_all() {
- use doc && emake -C docs html
-}
+distutils_enable_sphinx docs
+distutils_enable_tests nose
python_test() {
nosetests -w "${BUILD_DIR}"/lib || die "Tests fail with ${EPYTHON}"
}
-
-python_install_all() {
- use doc && local HTML_DOCS=( docs/_build/html/. )
- distutils-r1_python_install_all
-}