KEYWORDS="amd64 x86"
IUSE="test doc"
-RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
+RDEPEND=""
DEPEND="${RDEPEND}
- test? ( dev-python/nose[${PYTHON_USEDEP}]
- dev-python/coverage[${PYTHON_USEDEP}] )"
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+ test? (
+ dev-python/nose[${PYTHON_USEDEP}]
+ dev-python/coverage[${PYTHON_USEDEP}]
+ )"
DOCS=( ChangeLog CONTRIBUTORS README.md )
PATCHES=( "${FILESDIR}"/tests-installation.patch )
# https://github.com/cement/cement/issues/185
python_test() {
- nosetests || die "Tests fail with ${EPYTHON}"
+ nosetests --verbose || die "Tests fail with ${EPYTHON}"
}
python_compile_all() {
- if use doc; then
- "${PYTHON}" setup.py build_sphinx || die "couldn't build docs"
- fi
+ use doc && esetup.py build_sphinx
}
python_install_all() {
- use doc && HTML_DOCS=( doc/build/html/* )
+ use doc && HTML_DOCS=( doc/build/html/. )
distutils-r1_python_install_all
}