summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-06-05 15:44:11 +0200
committerMichał Górny <mgorny@gentoo.org>2021-06-05 15:44:11 +0200
commit49ccca2a739be57a1e74a8218c9834750b06bd22 (patch)
tree691ea2678494c4e0741e59137961fb370ebbd56b
parentdev-python/flexmock: Enable py3.10 (diff)
downloadgentoo-49ccca2a739be57a1e74a8218c9834750b06bd22.tar.gz
gentoo-49ccca2a739be57a1e74a8218c9834750b06bd22.tar.bz2
gentoo-49ccca2a739be57a1e74a8218c9834750b06bd22.zip
dev-python/fudge: Enable py3.10
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--dev-python/fudge/fudge-1.1.1.ebuild19
1 files 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
-}