1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( pypy{,3} python{2_7,3_{4,5,6}} )
9 DESCRIPTION="A port of Ruby on Rails' inflector to Python"
10 HOMEPAGE="https://github.com/jpvanhal/inflection"
11 # PyPI tarballs don't include doc
12 # https://github.com/jpvanhal/inflection/pull/12
13 SRC_URI="https://github.com/jpvanhal/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
17 KEYWORDS="~amd64 ~x86"
22 dev-python/setuptools[${PYTHON_USEDEP}]
24 dev-python/pytest-runner[${PYTHON_USEDEP}]
25 dev-python/pytest[${PYTHON_USEDEP}]
27 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
30 python_compile_all() {
32 sphinx-build docs docs/_build/html || die
33 HTML_DOCS=( docs/_build/html/. )
38 py.test || die "Tests failed with ${EPYTHON}"