1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy )
8 inherit distutils-r1 versionator
13 DESCRIPTION="WSGI request and response object"
14 HOMEPAGE="https://webob.org/ https://pypi.python.org/pypi/WebOb"
15 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
19 KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
22 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
23 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
24 test? ( dev-python/nose[${PYTHON_USEDEP}]
25 dev-python/coverage[${PYTHON_USEDEP}] )"
30 python_compile_all() {
32 esetup.py build_sphinx
37 nosetests --verbose -w tests || die "Tests fail with ${EPYTHON}"
40 python_install_all() {
41 use doc && local HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. )
42 distutils-r1_python_install_all