# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
PYTHON_COMPAT=( python3_{6,7,8} )
inherit distutils-r1
IUSE="doc test"
RESTRICT="!test? ( test )"
-RDEPEND=""
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+BDEPEND="
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
- test? ( dev-python/nose[${PYTHON_USEDEP}] )"
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )
+"
python_compile_all() {
use doc && emake -C docs html
}
python_test() {
- nosetests -w "${BUILD_DIR}"/lib \
- || die "Tests fail with ${EPYTHON}"
+ nosetests -w "${BUILD_DIR}"/lib || die "Tests fail with ${EPYTHON}"
}
python_install_all() {