1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
8 PYTHON_REQ_USE="threads(+)"
12 DESCRIPTION="A repository of test results"
13 HOMEPAGE="https://launchpad.net/testscenarios"
14 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
18 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
22 >=dev-python/subunit-0.0.18[${PYTHON_USEDEP}]
23 >=dev-python/testtools-0.9.30[${PYTHON_USEDEP}]
24 dev-python/fixtures[${PYTHON_USEDEP}]"
25 #bzr is listed but presumably req'd for a live repo test run
28 dev-python/setuptools[${PYTHON_USEDEP}]
30 dev-python/testresources[${PYTHON_USEDEP}]
31 dev-python/testscenarios[${PYTHON_USEDEP}]
32 dev-python/pytz[${PYTHON_USEDEP}]
35 # Required for test phase
36 DISTUTILS_IN_SOURCE_BUILD=1
39 "${FILESDIR}"/${P}-test-backport.patch
40 "${FILESDIR}"/${P}-test-backport1.patch
44 # some errors appear to have crept in the suite undert py3 since addition.
45 # Python2.7 now passes all.
47 ${PYTHON} testr init || die
48 ${PYTHON} testr run || die