1 |
commit: 9836fe82c3c937c037bdc3f0d6947892a5dc1d77 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 25 07:06:38 2018 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 25 07:07:00 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9836fe82 |
7 |
|
8 |
dev-python/pbr: fix testing |
9 |
|
10 |
Package-Manager: Portage-2.3.43, Repoman-2.3.10 |
11 |
|
12 |
dev-python/pbr/Manifest | 4 -- |
13 |
dev-python/pbr/pbr-4.0.2.ebuild | 70 ---------------------- |
14 |
dev-python/pbr/pbr-4.0.3.ebuild | 70 ---------------------- |
15 |
dev-python/pbr/pbr-4.0.4.ebuild | 70 ---------------------- |
16 |
.../pbr/{pbr-4.1.1.ebuild => pbr-4.2.0-r1.ebuild} | 8 ++- |
17 |
dev-python/pbr/pbr-4.2.0.ebuild | 70 ---------------------- |
18 |
6 files changed, 5 insertions(+), 287 deletions(-) |
19 |
|
20 |
diff --git a/dev-python/pbr/Manifest b/dev-python/pbr/Manifest |
21 |
index 8d8ba153285..a174ad338be 100644 |
22 |
--- a/dev-python/pbr/Manifest |
23 |
+++ b/dev-python/pbr/Manifest |
24 |
@@ -1,8 +1,4 @@ |
25 |
DIST pbr-0.8.2.tar.gz 77790 BLAKE2B 4b2efa9a06f0e47eac8d2b591d2c10223418c5813a8de83696348d7ec7ddd20f077492e43028994f1a2d1e28856d3d6159e4105174a760211584b026a616da24 SHA512 76d7d4c97660d5a6bbe9a33498a93b32528073024520e570739c511c0138ba1af7e35139bf77ca2a94063e5979baccd6252619449d6aed546fd1331be81ab52a |
26 |
DIST pbr-1.10.0.tar.gz 111425 BLAKE2B 2cef589ada2892dd8357ad3248c4b544d58c699d24b6e299284f49a7f838dcfc846daabc4e40de388848ad415a12c19813e13aab1d3f3bf147e064269e4dd725 SHA512 f7f6ce2f70324e2d287f58c3d12e0be2e33ef9ed32311ad2c56410eb67cda20732adff2058ba2fc244249a17a4c95b0d589ba913db4777e63ff1023ae888c864 |
27 |
DIST pbr-3.1.1.tar.gz 102665 BLAKE2B 301515d50f8550f5553a29faacb1daef589b41b8116320abd4552bb67886498d89eced1f95e1efdd6ac0511a5587eb479dc9d2963a74e92300463c3c53201e7d SHA512 c01fb83678f8fc3acddc153dd341a17ed9d602b6770f0ff244b1c5b54c37d4ddcbd0c3d726f7d7020865819e02797c1c79a0c15e9ee2ae5c1510fce7112b2a3a |
28 |
-DIST pbr-4.0.2.tar.gz 107720 BLAKE2B 346e74414cb77da61be08eee39148991aff7eaea7bab54407ce9dc48f422c576fd2125c11acb31cdf54cecb059281cf540c4ccfa005056c5c3b276ea2161c873 SHA512 d678c933a1d1b0319358b0d067291d29467582e6abb26e21386b9d98092f561e3b76965e0b18e12e88abab790b737606ae2a37cc11cb0a4a34ff6c1ad99cfdb1 |
29 |
-DIST pbr-4.0.3.tar.gz 108684 BLAKE2B e3a9a695b04333a9523c8e749628773cd12f38e87cd6cc670b8ba40b800871004a5cd9d038913e5f483291d180afbeb524535c6c68833ee48adde6ff276783f4 SHA512 9e5c915bd661e3356ad1b92b3d01df3a592a6120c9dc58d3e4bfbc3040f2d69f896244ea8f6c9cffad3e774747d330cd03e928cfc160e5df980c134fe2dee801 |
30 |
-DIST pbr-4.0.4.tar.gz 109077 BLAKE2B efe901b074cd6747fe123b6a325cb45e010d774834a875e86647b6a9c3afbaff9e435087e757ae4276c0b18558faeea57c8dec6b2039ab7b0f70424f64d94f57 SHA512 fc849a27c3b5deb89545dd05eb102a14f2c42a0d617f474df46b3292c14ab7e0a4343cd6e1a38eef77815cca49374d58698cb0c2fdd2aa5f2f47e890939adbb3 |
31 |
-DIST pbr-4.1.1.tar.gz 108683 BLAKE2B 5c0157ff14590113e7baae0bdca1ff46108a7a10d6eae8bd0a2d06bee62b4aa65eed25c900ae1b67324ac6b416641081c63a274c9694db1877b5d9073c1c04d9 SHA512 ed739901b3a2d1eafa1d4d408a39f1e5d967776571efe0913877145aaccee3114558e107a4e5704403288324c63a08cfbca07a3409bd1baafcbc33105abdf3e4 |
32 |
DIST pbr-4.2.0.tar.gz 107958 BLAKE2B 716283ceb7b1a8da41e77441c7526bf8cbdb5be7c710013630d3bbddf7de0ce37f3abd063f6103f3ec27fc5c09796f6452d8117df3b533b3c7377bf6dce7d37f SHA512 d46d93333b4d0d3fd5c14e0a474ca7beceddf794a5dbcf66f810993b8d33b48602518072effcd429566f4eede2a38c4aec289df262c2c0e7ab4b82474e14f14d |
33 |
|
34 |
diff --git a/dev-python/pbr/pbr-4.0.2.ebuild b/dev-python/pbr/pbr-4.0.2.ebuild |
35 |
deleted file mode 100644 |
36 |
index 229da21adf6..00000000000 |
37 |
--- a/dev-python/pbr/pbr-4.0.2.ebuild |
38 |
+++ /dev/null |
39 |
@@ -1,70 +0,0 @@ |
40 |
-# Copyright 1999-2018 Gentoo Foundation |
41 |
-# Distributed under the terms of the GNU General Public License v2 |
42 |
- |
43 |
-EAPI=6 |
44 |
- |
45 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) |
46 |
-PYTHON_REQ_USE="threads(+)" |
47 |
- |
48 |
-inherit distutils-r1 |
49 |
- |
50 |
-DESCRIPTION="Inject some useful and sensible default behaviors into setuptools" |
51 |
-HOMEPAGE="https://github.com/openstack-dev/pbr" |
52 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
53 |
- |
54 |
-LICENSE="Apache-2.0" |
55 |
-SLOT="0" |
56 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux" |
57 |
-#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
58 |
-IUSE="test" |
59 |
- |
60 |
-# git is needed for tests, see https://bugs.launchpad.net/pbr/+bug/1326682 and https://bugs.gentoo.org/show_bug.cgi?id=561038 |
61 |
-# docutils is needed for sphinx exceptions... https://bugs.gentoo.org/show_bug.cgi?id=603848 |
62 |
-DEPEND=" |
63 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
64 |
- test? ( |
65 |
- >=dev-python/coverage-4.0[${PYTHON_USEDEP}] |
66 |
- !~dev-python/coverage-4.4[${PYTHON_USEDEP}] |
67 |
- >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}] |
68 |
- >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] |
69 |
- >=dev-python/subunit-1.0.0[${PYTHON_USEDEP}] |
70 |
- >=dev-python/six-1.10.0[${PYTHON_USEDEP}] |
71 |
- >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] |
72 |
- >=dev-python/testresources-2.0.0[${PYTHON_USEDEP}] |
73 |
- >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}] |
74 |
- >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}] |
75 |
- >=dev-python/virtualenv-14.0.6[${PYTHON_USEDEP}] |
76 |
- dev-python/wheel[${PYTHON_USEDEP}] |
77 |
- dev-vcs/git |
78 |
- )" |
79 |
-PDEPEND="" |
80 |
- |
81 |
-# This normally actually belongs here. |
82 |
-python_prepare_all() { |
83 |
- # This test passes when run within the source and doesn't represent a failure, but rather |
84 |
- # a gentoo sandbox constraint |
85 |
- # Rm tests that rely upon the package being already installed and fail |
86 |
- sed -e s':test_console_script_develop:_&:' \ |
87 |
- -e s':test_console_script_install:_&:' \ |
88 |
- -e s':test_sdist_extra_files:_&:' \ |
89 |
- -e s':test_command_hooks:_&:' \ |
90 |
- -e s':test_sdist_git_extra_files:_&:' \ |
91 |
- -i pbr/tests/test_core.py || die |
92 |
- sed -e s':test_command_hooks:_&:' \ |
93 |
- -e s':test_global_setup_hooks:_&:' \ |
94 |
- -i pbr/tests/test_hooks.py || die |
95 |
- rm pbr/tests/test_wsgi.py || die "couldn't remove wsgi network tests" |
96 |
- einfo "rogue tests disabled" |
97 |
- sed -i '/^hacking/d' test-requirements.txt || die |
98 |
- |
99 |
- distutils-r1_python_prepare_all |
100 |
-} |
101 |
- |
102 |
-python_test() { |
103 |
- distutils_install_for_testing |
104 |
- |
105 |
- rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPTYHON}" |
106 |
- |
107 |
- testr init || die "testr init failed under ${EPYTHON}" |
108 |
- testr run || die "testr run failed under ${EPYTHON}" |
109 |
-} |
110 |
|
111 |
diff --git a/dev-python/pbr/pbr-4.0.3.ebuild b/dev-python/pbr/pbr-4.0.3.ebuild |
112 |
deleted file mode 100644 |
113 |
index 229da21adf6..00000000000 |
114 |
--- a/dev-python/pbr/pbr-4.0.3.ebuild |
115 |
+++ /dev/null |
116 |
@@ -1,70 +0,0 @@ |
117 |
-# Copyright 1999-2018 Gentoo Foundation |
118 |
-# Distributed under the terms of the GNU General Public License v2 |
119 |
- |
120 |
-EAPI=6 |
121 |
- |
122 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) |
123 |
-PYTHON_REQ_USE="threads(+)" |
124 |
- |
125 |
-inherit distutils-r1 |
126 |
- |
127 |
-DESCRIPTION="Inject some useful and sensible default behaviors into setuptools" |
128 |
-HOMEPAGE="https://github.com/openstack-dev/pbr" |
129 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
130 |
- |
131 |
-LICENSE="Apache-2.0" |
132 |
-SLOT="0" |
133 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux" |
134 |
-#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
135 |
-IUSE="test" |
136 |
- |
137 |
-# git is needed for tests, see https://bugs.launchpad.net/pbr/+bug/1326682 and https://bugs.gentoo.org/show_bug.cgi?id=561038 |
138 |
-# docutils is needed for sphinx exceptions... https://bugs.gentoo.org/show_bug.cgi?id=603848 |
139 |
-DEPEND=" |
140 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
141 |
- test? ( |
142 |
- >=dev-python/coverage-4.0[${PYTHON_USEDEP}] |
143 |
- !~dev-python/coverage-4.4[${PYTHON_USEDEP}] |
144 |
- >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}] |
145 |
- >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] |
146 |
- >=dev-python/subunit-1.0.0[${PYTHON_USEDEP}] |
147 |
- >=dev-python/six-1.10.0[${PYTHON_USEDEP}] |
148 |
- >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] |
149 |
- >=dev-python/testresources-2.0.0[${PYTHON_USEDEP}] |
150 |
- >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}] |
151 |
- >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}] |
152 |
- >=dev-python/virtualenv-14.0.6[${PYTHON_USEDEP}] |
153 |
- dev-python/wheel[${PYTHON_USEDEP}] |
154 |
- dev-vcs/git |
155 |
- )" |
156 |
-PDEPEND="" |
157 |
- |
158 |
-# This normally actually belongs here. |
159 |
-python_prepare_all() { |
160 |
- # This test passes when run within the source and doesn't represent a failure, but rather |
161 |
- # a gentoo sandbox constraint |
162 |
- # Rm tests that rely upon the package being already installed and fail |
163 |
- sed -e s':test_console_script_develop:_&:' \ |
164 |
- -e s':test_console_script_install:_&:' \ |
165 |
- -e s':test_sdist_extra_files:_&:' \ |
166 |
- -e s':test_command_hooks:_&:' \ |
167 |
- -e s':test_sdist_git_extra_files:_&:' \ |
168 |
- -i pbr/tests/test_core.py || die |
169 |
- sed -e s':test_command_hooks:_&:' \ |
170 |
- -e s':test_global_setup_hooks:_&:' \ |
171 |
- -i pbr/tests/test_hooks.py || die |
172 |
- rm pbr/tests/test_wsgi.py || die "couldn't remove wsgi network tests" |
173 |
- einfo "rogue tests disabled" |
174 |
- sed -i '/^hacking/d' test-requirements.txt || die |
175 |
- |
176 |
- distutils-r1_python_prepare_all |
177 |
-} |
178 |
- |
179 |
-python_test() { |
180 |
- distutils_install_for_testing |
181 |
- |
182 |
- rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPTYHON}" |
183 |
- |
184 |
- testr init || die "testr init failed under ${EPYTHON}" |
185 |
- testr run || die "testr run failed under ${EPYTHON}" |
186 |
-} |
187 |
|
188 |
diff --git a/dev-python/pbr/pbr-4.0.4.ebuild b/dev-python/pbr/pbr-4.0.4.ebuild |
189 |
deleted file mode 100644 |
190 |
index 229da21adf6..00000000000 |
191 |
--- a/dev-python/pbr/pbr-4.0.4.ebuild |
192 |
+++ /dev/null |
193 |
@@ -1,70 +0,0 @@ |
194 |
-# Copyright 1999-2018 Gentoo Foundation |
195 |
-# Distributed under the terms of the GNU General Public License v2 |
196 |
- |
197 |
-EAPI=6 |
198 |
- |
199 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) |
200 |
-PYTHON_REQ_USE="threads(+)" |
201 |
- |
202 |
-inherit distutils-r1 |
203 |
- |
204 |
-DESCRIPTION="Inject some useful and sensible default behaviors into setuptools" |
205 |
-HOMEPAGE="https://github.com/openstack-dev/pbr" |
206 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
207 |
- |
208 |
-LICENSE="Apache-2.0" |
209 |
-SLOT="0" |
210 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux" |
211 |
-#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
212 |
-IUSE="test" |
213 |
- |
214 |
-# git is needed for tests, see https://bugs.launchpad.net/pbr/+bug/1326682 and https://bugs.gentoo.org/show_bug.cgi?id=561038 |
215 |
-# docutils is needed for sphinx exceptions... https://bugs.gentoo.org/show_bug.cgi?id=603848 |
216 |
-DEPEND=" |
217 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
218 |
- test? ( |
219 |
- >=dev-python/coverage-4.0[${PYTHON_USEDEP}] |
220 |
- !~dev-python/coverage-4.4[${PYTHON_USEDEP}] |
221 |
- >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}] |
222 |
- >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] |
223 |
- >=dev-python/subunit-1.0.0[${PYTHON_USEDEP}] |
224 |
- >=dev-python/six-1.10.0[${PYTHON_USEDEP}] |
225 |
- >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] |
226 |
- >=dev-python/testresources-2.0.0[${PYTHON_USEDEP}] |
227 |
- >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}] |
228 |
- >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}] |
229 |
- >=dev-python/virtualenv-14.0.6[${PYTHON_USEDEP}] |
230 |
- dev-python/wheel[${PYTHON_USEDEP}] |
231 |
- dev-vcs/git |
232 |
- )" |
233 |
-PDEPEND="" |
234 |
- |
235 |
-# This normally actually belongs here. |
236 |
-python_prepare_all() { |
237 |
- # This test passes when run within the source and doesn't represent a failure, but rather |
238 |
- # a gentoo sandbox constraint |
239 |
- # Rm tests that rely upon the package being already installed and fail |
240 |
- sed -e s':test_console_script_develop:_&:' \ |
241 |
- -e s':test_console_script_install:_&:' \ |
242 |
- -e s':test_sdist_extra_files:_&:' \ |
243 |
- -e s':test_command_hooks:_&:' \ |
244 |
- -e s':test_sdist_git_extra_files:_&:' \ |
245 |
- -i pbr/tests/test_core.py || die |
246 |
- sed -e s':test_command_hooks:_&:' \ |
247 |
- -e s':test_global_setup_hooks:_&:' \ |
248 |
- -i pbr/tests/test_hooks.py || die |
249 |
- rm pbr/tests/test_wsgi.py || die "couldn't remove wsgi network tests" |
250 |
- einfo "rogue tests disabled" |
251 |
- sed -i '/^hacking/d' test-requirements.txt || die |
252 |
- |
253 |
- distutils-r1_python_prepare_all |
254 |
-} |
255 |
- |
256 |
-python_test() { |
257 |
- distutils_install_for_testing |
258 |
- |
259 |
- rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPTYHON}" |
260 |
- |
261 |
- testr init || die "testr init failed under ${EPYTHON}" |
262 |
- testr run || die "testr run failed under ${EPYTHON}" |
263 |
-} |
264 |
|
265 |
diff --git a/dev-python/pbr/pbr-4.1.1.ebuild b/dev-python/pbr/pbr-4.2.0-r1.ebuild |
266 |
similarity index 86% |
267 |
rename from dev-python/pbr/pbr-4.1.1.ebuild |
268 |
rename to dev-python/pbr/pbr-4.2.0-r1.ebuild |
269 |
index dfd91eb1302..b000008290f 100644 |
270 |
--- a/dev-python/pbr/pbr-4.1.1.ebuild |
271 |
+++ b/dev-python/pbr/pbr-4.2.0-r1.ebuild |
272 |
@@ -14,7 +14,8 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
273 |
|
274 |
LICENSE="Apache-2.0" |
275 |
SLOT="0" |
276 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux" |
277 |
+KEYWORDS="~amd64 ~arm64 ~hppa ~mips ~s390 ~x86 ~amd64-linux ~x86-linux" |
278 |
+#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux" |
279 |
#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
280 |
IUSE="test" |
281 |
|
282 |
@@ -34,6 +35,7 @@ DEPEND=" |
283 |
>=dev-python/testscenarios-0.4[${PYTHON_USEDEP}] |
284 |
>=dev-python/testtools-2.2.0[${PYTHON_USEDEP}] |
285 |
>=dev-python/virtualenv-14.0.6[${PYTHON_USEDEP}] |
286 |
+ >=dev-python/stestr-2.1.0[$(python_gen_usedep python{2_7,3_4,3_5,3_6})] |
287 |
dev-python/wheel[${PYTHON_USEDEP}] |
288 |
dev-vcs/git |
289 |
)" |
290 |
@@ -65,6 +67,6 @@ python_test() { |
291 |
|
292 |
rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPTYHON}" |
293 |
|
294 |
- testr init || die "testr init failed under ${EPYTHON}" |
295 |
- testr run || die "testr run failed under ${EPYTHON}" |
296 |
+ stestr init || die "stestr init failed under ${EPYTHON}" |
297 |
+ stestr run || die "stestr run failed under ${EPYTHON}" |
298 |
} |
299 |
|
300 |
diff --git a/dev-python/pbr/pbr-4.2.0.ebuild b/dev-python/pbr/pbr-4.2.0.ebuild |
301 |
deleted file mode 100644 |
302 |
index dfd91eb1302..00000000000 |
303 |
--- a/dev-python/pbr/pbr-4.2.0.ebuild |
304 |
+++ /dev/null |
305 |
@@ -1,70 +0,0 @@ |
306 |
-# Copyright 1999-2018 Gentoo Foundation |
307 |
-# Distributed under the terms of the GNU General Public License v2 |
308 |
- |
309 |
-EAPI=6 |
310 |
- |
311 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy pypy3 ) |
312 |
-PYTHON_REQ_USE="threads(+)" |
313 |
- |
314 |
-inherit distutils-r1 |
315 |
- |
316 |
-DESCRIPTION="Inject some useful and sensible default behaviors into setuptools" |
317 |
-HOMEPAGE="https://github.com/openstack-dev/pbr" |
318 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
319 |
- |
320 |
-LICENSE="Apache-2.0" |
321 |
-SLOT="0" |
322 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux" |
323 |
-#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
324 |
-IUSE="test" |
325 |
- |
326 |
-# git is needed for tests, see https://bugs.launchpad.net/pbr/+bug/1326682 and https://bugs.gentoo.org/show_bug.cgi?id=561038 |
327 |
-# docutils is needed for sphinx exceptions... https://bugs.gentoo.org/show_bug.cgi?id=603848 |
328 |
-DEPEND=" |
329 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
330 |
- test? ( |
331 |
- >=dev-python/coverage-4.0[${PYTHON_USEDEP}] |
332 |
- !~dev-python/coverage-4.4[${PYTHON_USEDEP}] |
333 |
- >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}] |
334 |
- >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] |
335 |
- >=dev-python/subunit-1.0.0[${PYTHON_USEDEP}] |
336 |
- >=dev-python/six-1.10.0[${PYTHON_USEDEP}] |
337 |
- >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] |
338 |
- >=dev-python/testresources-2.0.0[${PYTHON_USEDEP}] |
339 |
- >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}] |
340 |
- >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}] |
341 |
- >=dev-python/virtualenv-14.0.6[${PYTHON_USEDEP}] |
342 |
- dev-python/wheel[${PYTHON_USEDEP}] |
343 |
- dev-vcs/git |
344 |
- )" |
345 |
-PDEPEND="" |
346 |
- |
347 |
-# This normally actually belongs here. |
348 |
-python_prepare_all() { |
349 |
- # This test passes when run within the source and doesn't represent a failure, but rather |
350 |
- # a gentoo sandbox constraint |
351 |
- # Rm tests that rely upon the package being already installed and fail |
352 |
- sed -e s':test_console_script_develop:_&:' \ |
353 |
- -e s':test_console_script_install:_&:' \ |
354 |
- -e s':test_sdist_extra_files:_&:' \ |
355 |
- -e s':test_command_hooks:_&:' \ |
356 |
- -e s':test_sdist_git_extra_files:_&:' \ |
357 |
- -i pbr/tests/test_core.py || die |
358 |
- sed -e s':test_command_hooks:_&:' \ |
359 |
- -e s':test_global_setup_hooks:_&:' \ |
360 |
- -i pbr/tests/test_hooks.py || die |
361 |
- rm pbr/tests/test_wsgi.py || die "couldn't remove wsgi network tests" |
362 |
- einfo "rogue tests disabled" |
363 |
- sed -i '/^hacking/d' test-requirements.txt || die |
364 |
- |
365 |
- distutils-r1_python_prepare_all |
366 |
-} |
367 |
- |
368 |
-python_test() { |
369 |
- distutils_install_for_testing |
370 |
- |
371 |
- rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPTYHON}" |
372 |
- |
373 |
- testr init || die "testr init failed under ${EPYTHON}" |
374 |
- testr run || die "testr run failed under ${EPYTHON}" |
375 |
-} |