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, 03 Jan 2017 16:37:59
Message-Id: 1483461449.34af332af0b816cc22f4f922462153bd4c55cc1a.prometheanfire@gentoo
1 commit: 34af332af0b816cc22f4f922462153bd4c55cc1a
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 3 16:37:29 2017 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 3 16:37:29 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34af332a
7
8 dev-python/pbr: fix bug 603848, missed import
9
10 Package-Manager: portage-2.3.0
11
12 dev-python/pbr/pbr-1.10.0-r1.ebuild | 76 +++++++++++++++++++++++++++++++++++++
13 1 file changed, 76 insertions(+)
14
15 diff --git a/dev-python/pbr/pbr-1.10.0-r1.ebuild b/dev-python/pbr/pbr-1.10.0-r1.ebuild
16 new file mode 100644
17 index 00000000..bbd33b5
18 --- /dev/null
19 +++ b/dev-python/pbr/pbr-1.10.0-r1.ebuild
20 @@ -0,0 +1,76 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=5
26 +
27 +PYTHON_COMPAT=( python2_7 python3_{4,5} 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="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
39 +IUSE="test"
40 +
41 +# git is needed for tests, see https://bugs.launchpad.net/pbr/+bug/1326682 and https://bugs.gentoo.org/show_bug.cgi?id=561038
42 +# docutils is needed for sphinx exceptions... https://bugs.gentoo.org/show_bug.cgi?id=603848
43 +DEPEND="
44 + dev-python/setuptools[${PYTHON_USEDEP}]
45 + test? (
46 + >=dev-python/coverage-3.6[${PYTHON_USEDEP}]
47 + >=dev-python/fixtures-1.3.1[${PYTHON_USEDEP}]
48 + <dev-python/fixtures-2.0[${PYTHON_USEDEP}]
49 + >=dev-python/mock-1.2[${PYTHON_USEDEP}]
50 + >=dev-python/subunit-0.0.18[${PYTHON_USEDEP}]
51 + >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
52 + !~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}]
53 + <dev-python/sphinx-1.3[${PYTHON_USEDEP}]
54 + >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
55 + >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
56 + >=dev-python/testresources-0.2.4[${PYTHON_USEDEP}]
57 + >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
58 + >=dev-python/testtools-1.4.0[${PYTHON_USEDEP}]
59 + dev-python/virtualenv[${PYTHON_USEDEP}]
60 + dev-python/wheel[${PYTHON_USEDEP}]
61 + dev-python/docutils[${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 + sed \
81 + -e "s:test_wsgi_script_install:_&:" \
82 + -i pbr/tests/test_wsgi.py || die
83 + einfo "rogue tests disabled"
84 + sed -i '/^hacking/d' test-requirements.txt || die
85 +
86 + distutils-r1_python_prepare_all
87 +}
88 +
89 +python_test() {
90 + distutils_install_for_testing
91 +
92 + rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPTYHON}"
93 +
94 + testr init || die "testr init failed under ${EPYTHON}"
95 + testr run || die "testr run failed under ${EPYTHON}"
96 +}