1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7} )
10 DESCRIPTION="Logging framework handler"
11 HOMEPAGE="https://pypi.org/project/errorhandler/"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
14 KEYWORDS="~amd64 ~x86"
16 RESTRICT="!test? ( test )"
23 dev-python/pkginfo[${PYTHON_USEDEP}]
24 dev-python/setuptools[${PYTHON_USEDEP}]
25 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
26 test? ( dev-python/nose[${PYTHON_USEDEP}] )"
29 "${FILESDIR}"/${PN}-2.0.1-no-intersphinx.patch
32 python_compile_all() {
33 use doc && emake -C docs html
37 nosetests -v || die "Tests fail with ${EPYTHON}"
40 python_install_all() {
41 use doc && local HTML_DOCS=( docs/_build/html/. )
42 distutils-r1_python_install_all