1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DISTUTILS_USE_SETUPTOOLS=rdepend
7 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 )
14 DESCRIPTION="Load, configure, and compose WSGI applications and servers"
15 HOMEPAGE="https://pypi.org/project/PasteDeploy/"
16 # pypi tarball does not include tests
17 SRC_URI="https://github.com/Pylons/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
21 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~x86-solaris"
24 RDEPEND="dev-python/namespace-paste[${PYTHON_USEDEP}]"
27 distutils_enable_tests pytest
29 python_prepare_all() {
30 sed -i 's:"pytest-runner"::' setup.py || die
32 distutils-r1_python_prepare_all
35 python_install_all() {
36 distutils-r1_python_install_all
38 use doc && dodoc docs/*.txt
39 find "${D}" -name '*.pth' -delete || die