2017-02-13 11:20:39 +03:00
|
|
|
# Copyright 1999-2017 Gentoo Foundation
|
2014-06-12 18:03:54 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=5
|
2015-08-24 15:08:46 +03:00
|
|
|
|
2017-02-13 11:20:39 +03:00
|
|
|
PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 )
|
2014-06-12 18:03:54 +04:00
|
|
|
|
|
|
|
inherit distutils-r1
|
|
|
|
|
2015-10-15 00:03:52 +03:00
|
|
|
DESCRIPTION="A pyunit extension for managing expensive test resources"
|
2014-06-12 18:03:54 +04:00
|
|
|
HOMEPAGE="https://launchpad.net/testresources"
|
|
|
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="Apache-2.0"
|
|
|
|
SLOT="0"
|
2017-07-30 11:02:16 +03:00
|
|
|
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux"
|
2014-06-12 18:03:54 +04:00
|
|
|
IUSE="test"
|
|
|
|
|
2015-08-24 15:08:46 +03:00
|
|
|
DEPEND="
|
|
|
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
|
|
test? (
|
|
|
|
dev-python/nose[${PYTHON_USEDEP}]
|
|
|
|
dev-python/testtools[${PYTHON_USEDEP}]
|
|
|
|
dev-python/fixtures[${PYTHON_USEDEP}]
|
|
|
|
)"
|
2014-06-12 18:03:54 +04:00
|
|
|
RDEPEND=""
|
|
|
|
|
2015-11-05 09:33:04 +03:00
|
|
|
python_prepare_all() {
|
|
|
|
sed \
|
|
|
|
-e 's:testBasicSortTests:_&:g' \
|
|
|
|
-i lib/testresources/tests/test_optimising_test_suite.py || die
|
|
|
|
distutils-r1_python_prepare_all
|
|
|
|
}
|
|
|
|
|
2014-06-12 18:03:54 +04:00
|
|
|
python_test() {
|
2015-11-05 09:33:04 +03:00
|
|
|
nosetests --verbose || die "Tests failed under ${EPYTHON}"
|
2014-06-12 18:03:54 +04:00
|
|
|
}
|