1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( pypy3 python{2_7,3_{6,7}} )
10 DESCRIPTION="Common humanization utilities"
11 HOMEPAGE="https://github.com/jmoiron/humanize/"
12 # Tests are not included in PyPI tarballs
13 # https://github.com/jmoiron/humanize/issues/33
14 SRC_URI="https://github.com/jmoiron/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
20 RESTRICT="!test? ( test )"
23 dev-python/setuptools[${PYTHON_USEDEP}]
24 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
25 test? ( dev-python/mock[${PYTHON_USEDEP}] )
28 python_compile_all() {
31 sphinx-build . _build/html || die
32 HTML_DOCS=( docs/_build/html/. )
37 esetup.py test || die "tests failed with ${EPYTHON}"