1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_6 )
10 DESCRIPTION="Support library for building plugins sytems in Python"
11 HOMEPAGE="https://github.com/mitsuhiko/pluginbase"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
16 KEYWORDS="~amd64 ~x86"
18 RESTRICT="!test? ( test )"
22 dev-python/setuptools[${PYTHON_USEDEP}]
23 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
24 test? ( dev-python/pytest[${PYTHON_USEDEP}] )
27 python_prepare_all() {
28 sed -e "s/, 'sphinx.ext.intersphinx'//" \
29 -i docs/conf.py || die
30 distutils-r1_python_prepare_all
33 python_compile_all() {
36 HTML_DOCS=( docs/_build/html/. )
41 cd tests && PYTHONPATH=.. py.test --tb=native || die "Tests fail with ${EPYTHON}"