Gentoo Archives: gentoo-commits

From: Matt Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pbr/
Date: Tue, 22 Sep 2015 06:38:17
Message-Id: 1442903861.28c1721a745705f3ff2504fcc816afdd839d1c46.prometheanfire@gentoo
1 commit: 28c1721a745705f3ff2504fcc816afdd839d1c46
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 22 06:37:41 2015 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 22 06:37:41 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28c1721a
7
8 dev-python/pbr: adding git dep and changeing test scructure slightly
9
10 Package-Manager: portage-2.2.20.1
11
12 dev-python/pbr/pbr-1.8.0.ebuild | 13 ++++++++-----
13 1 file changed, 8 insertions(+), 5 deletions(-)
14
15 diff --git a/dev-python/pbr/pbr-1.8.0.ebuild b/dev-python/pbr/pbr-1.8.0.ebuild
16 index f42181a..6311750 100644
17 --- a/dev-python/pbr/pbr-1.8.0.ebuild
18 +++ b/dev-python/pbr/pbr-1.8.0.ebuild
19 @@ -17,6 +17,7 @@ SLOT="0"
20 KEYWORDS="~amd64 ~hppa ~mips ~ppc64 ~x86 ~amd64-linux ~x86-linux"
21 IUSE="test"
22
23 +# git is needed for tests, see https://bugs.launchpad.net/pbr/+bug/1326682 and https://bugs.gentoo.org/show_bug.cgi?id=561038
24 DEPEND="
25 dev-python/setuptools[${PYTHON_USEDEP}]
26 test? (
27 @@ -33,12 +34,10 @@ DEPEND="
28 >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
29 >=dev-python/testtools-1.4.0[${PYTHON_USEDEP}]
30 dev-python/virtualenv[${PYTHON_USEDEP}]
31 + dev-vcs/git
32 )"
33 PDEPEND="dev-python/pip[${PYTHON_USEDEP}]"
34
35 -# Requ'd for testsuite
36 -DISTUTILS_IN_SOURCE_BUILD=1
37 -
38 # This normally actually belongs here.
39 python_prepare_all() {
40 # This test passes when run within the source and doesn't represent a failure, but rather
41 @@ -59,6 +58,10 @@ python_prepare_all() {
42 }
43
44 python_test() {
45 - # Note; Tests, that have been removed, pass once package is emerged.
46 - esetup.py testr
47 + distutils_install_for_testing
48 +
49 + rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPTYHON}"
50 +
51 + testr init || die "testr init failed under ${EPYTHON}"
52 + testr run || die "testr run failed under ${EPYTHON}"
53 }