1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python{2_7,3_6} )
12 DESCRIPTION="A Python port of Textile, A humane web text generator"
13 HOMEPAGE="https://github.com/textile/python-textile"
14 SRC_URI="https://github.com/textile/python-textile/archive/${PV}.tar.gz -> ${P}.tar.gz"
18 KEYWORDS="amd64 ppc ppc64 sparc x86"
20 RESTRICT="!test? ( test )"
22 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
23 dev-python/pytest-runner[${PYTHON_USEDEP}]
24 test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
26 dev-python/regex[${PYTHON_USEDEP}]
29 S="${WORKDIR}/${MY_P}"
31 python_prepare_all() {
32 # This resolves a nasty race condition, courtesy of Arfrever
33 sed -e 's:with-id = 1::' -i setup.cfg || die
34 # remove useless --cov arg injection
36 distutils-r1_python_prepare_all
40 py.test || die "Testsuite failed under ${EPYTHON}"