1 |
commit: a002262d2a5dd6f16c97508c19c73ec2bbf411f5 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 1 17:42:10 2018 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 1 17:42:10 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a002262d |
7 |
|
8 |
dev-python/pbr: add sphinx as missing testdep |
9 |
|
10 |
Fixes: https://bugs.gentoo.org/664964 |
11 |
Package-Manager: Portage-2.3.48, Repoman-2.3.10 |
12 |
|
13 |
dev-python/pbr/pbr-4.2.0-r2.ebuild | 73 ++++++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 73 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pbr/pbr-4.2.0-r2.ebuild b/dev-python/pbr/pbr-4.2.0-r2.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..563dfa50cd3 |
19 |
--- /dev/null |
20 |
+++ b/dev-python/pbr/pbr-4.2.0-r2.ebuild |
21 |
@@ -0,0 +1,73 @@ |
22 |
+# Copyright 1999-2018 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=6 |
26 |
+ |
27 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy pypy3 ) |
28 |
+PYTHON_REQ_USE="threads(+)" |
29 |
+ |
30 |
+inherit distutils-r1 |
31 |
+ |
32 |
+DESCRIPTION="Inject some useful and sensible default behaviors into setuptools" |
33 |
+HOMEPAGE="https://github.com/openstack-dev/pbr" |
34 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="Apache-2.0" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~arm64 ~hppa ~mips ~s390 ~x86 ~amd64-linux ~x86-linux" |
39 |
+#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux" |
40 |
+#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
41 |
+IUSE="test" |
42 |
+ |
43 |
+# git is needed for tests, see https://bugs.launchpad.net/pbr/+bug/1326682 and https://bugs.gentoo.org/show_bug.cgi?id=561038 |
44 |
+# docutils is needed for sphinx exceptions... https://bugs.gentoo.org/show_bug.cgi?id=603848 |
45 |
+DEPEND=" |
46 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
47 |
+ test? ( |
48 |
+ >=dev-python/coverage-4.0[${PYTHON_USEDEP}] |
49 |
+ !~dev-python/coverage-4.4[${PYTHON_USEDEP}] |
50 |
+ >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}] |
51 |
+ >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] |
52 |
+ >=dev-python/subunit-1.0.0[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/six-1.10.0[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/testresources-2.0.0[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/virtualenv-14.0.6[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/stestr-2.1.0[$(python_gen_usedep python{2_7,3_4,3_5,3_6})] |
60 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
61 |
+ dev-python/wheel[${PYTHON_USEDEP}] |
62 |
+ dev-vcs/git |
63 |
+ )" |
64 |
+PDEPEND="" |
65 |
+ |
66 |
+# This normally actually belongs here. |
67 |
+python_prepare_all() { |
68 |
+ # This test passes when run within the source and doesn't represent a failure, but rather |
69 |
+ # a gentoo sandbox constraint |
70 |
+ # Rm tests that rely upon the package being already installed and fail |
71 |
+ sed -e s':test_console_script_develop:_&:' \ |
72 |
+ -e s':test_console_script_install:_&:' \ |
73 |
+ -e s':test_sdist_extra_files:_&:' \ |
74 |
+ -e s':test_command_hooks:_&:' \ |
75 |
+ -e s':test_sdist_git_extra_files:_&:' \ |
76 |
+ -i pbr/tests/test_core.py || die |
77 |
+ sed -e s':test_command_hooks:_&:' \ |
78 |
+ -e s':test_global_setup_hooks:_&:' \ |
79 |
+ -i pbr/tests/test_hooks.py || die |
80 |
+ rm pbr/tests/test_wsgi.py || die "couldn't remove wsgi network tests" |
81 |
+ einfo "rogue tests disabled" |
82 |
+ sed -i '/^hacking/d' test-requirements.txt || die |
83 |
+ |
84 |
+ distutils-r1_python_prepare_all |
85 |
+} |
86 |
+ |
87 |
+python_test() { |
88 |
+ distutils_install_for_testing |
89 |
+ |
90 |
+ rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPTYHON}" |
91 |
+ |
92 |
+ stestr init || die "stestr init failed under ${EPYTHON}" |
93 |
+ stestr run || die "stestr run failed under ${EPYTHON}" |
94 |
+} |