1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
14 DESCRIPTION="Helper to test WSGI applications"
15 HOMEPAGE="http://pythonpaste.org/webtest/ http://pypi.python.org/pypi/WebTest"
16 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip"
20 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
23 RDEPEND=">=dev-python/webob-0.9.2[${PYTHON_USEDEP}]"
26 dev-python/setuptools[${PYTHON_USEDEP}]
27 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
28 test? ( dev-python/nose[${PYTHON_USEDEP}]
29 dev-python/pyquery[${PYTHON_USEDEP}] )"
31 S="${WORKDIR}/${MY_P}"
33 python_compile_all() {
35 sphinx-build docs html || die
40 nosetests || die "Tests fail with ${EPYTHON}"
44 distutils-r1_python_install
47 if [[ ${EPYTHON} == python3* ]]; then
48 rm -f "${D}$(python_get_sitedir)"/webtest/lint3.py
52 python_install_all() {
53 use doc && local HTML_DOCS=( html/. )
54 distutils-r1_python_install_all