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: Thu, 04 May 2017 23:05:18
Message-Id: 1493939097.39ed38d38be6959e4abc69edf89f13009739c782.prometheanfire@gentoo
1 commit: 39ed38d38be6959e4abc69edf89f13009739c782
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 4 22:57:26 2017 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Thu May 4 23:04:57 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39ed38d3
7
8 dev-python/pbr: 3.0.0 bup
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 dev-python/pbr/Manifest | 1 +
13 dev-python/pbr/pbr-3.0.0.ebuild | 73 +++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 74 insertions(+)
15
16 diff --git a/dev-python/pbr/Manifest b/dev-python/pbr/Manifest
17 index 7d118792690..b876cf2eb0d 100644
18 --- a/dev-python/pbr/Manifest
19 +++ b/dev-python/pbr/Manifest
20 @@ -4,3 +4,4 @@ DIST pbr-1.8.1.tar.gz 104584 SHA256 e2127626a91e6c885db89668976db31020f0af2da728
21 DIST pbr-1.9.1.tar.gz 113439 SHA256 3997406c90894ebf3d1371811c1e099721440a901f946ca6dc4383350403ed51 SHA512 02c05652ee7504ec45330ab281be5880d70aa8017b1181446323d811b97e0c2deb6b3ff693516e32dd9ba2ecc653b13dbe33114e52414e78a478f5374b195cf1 WHIRLPOOL 73b87af217dc6af2bc14b2235a5d7f5f4ac1dd3fe3c0ede5730961e65aa0bd04194731c22cdf66567401f04600f5258dc9d3006e3ac9bc89e3743fa1415c099c
22 DIST pbr-2.0.0.tar.gz 98568 SHA256 0ccd2db529afd070df815b1521f01401d43de03941170f8a800e7531faba265d SHA512 39540f54de674d4e50d6e9239328c0ac11ae6218a1483b023ab282efb797fc143d22334f60697ba81e2309c525860525ed0ce4858d66b187d2581fab9fae6b7d WHIRLPOOL 049df8e4fee3c65c04362cbbcda88047f9fa672caa1d1319bac5dfdf2452ddfd442e9e46bc832fad57831844eed1f0da4267fe3ae40b148948a9413aa5b155a2
23 DIST pbr-2.1.0.tar.gz 100858 SHA256 f71359a7e2de2f5ea1eceea7c1e3222f2560ee48e21eef6f96957bb5c2ebb94a SHA512 a4a7b1c96545bd25f63a439608f22bc04309c518f78f0044d18f10ce7c9ceeca3da97be527f0330c65d875900a3729dea99dade95787fb2ea75c3ae387b36938 WHIRLPOOL f82152ebb34ed21438853289c66ce326d39a57f6da7c28a31b9e43c26ab2a54ed9978cd398d5e7f28cdd94abcdc0017557d15af3458ec8f66b181fd5ef6de836
24 +DIST pbr-3.0.0.tar.gz 99062 SHA256 568f988af109114fbfa0525dcb6836b069838360d11732736ecc82e4c15d5c12 SHA512 390151b24ee4890d7bd0b0f739b158d868ce231b68703e6054da524c7a8335055054db4be0cf53ae32b3bfd568fb6020c2536dff307b1374259b46429b483e99 WHIRLPOOL 8e0210bb543f49fc334c8e7d05840bc36f43bb4fed3b5fc4e4a0f40dc6d0f2143c658fa0173857989092a8fc6eb5804c716e806fb86b1e6c8103fbb6bc79045b
25
26 diff --git a/dev-python/pbr/pbr-3.0.0.ebuild b/dev-python/pbr/pbr-3.0.0.ebuild
27 new file mode 100644
28 index 00000000000..7d051056470
29 --- /dev/null
30 +++ b/dev-python/pbr/pbr-3.0.0.ebuild
31 @@ -0,0 +1,73 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 )
38 +PYTHON_REQ_USE="threads(+)"
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="Inject some useful and sensible default behaviors into setuptools"
43 +HOMEPAGE="https://github.com/openstack-dev/pbr"
44 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
45 +
46 +LICENSE="Apache-2.0"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
49 +#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
50 +IUSE="test"
51 +
52 +# git is needed for tests, see https://bugs.launchpad.net/pbr/+bug/1326682 and https://bugs.gentoo.org/show_bug.cgi?id=561038
53 +# docutils is needed for sphinx exceptions... https://bugs.gentoo.org/show_bug.cgi?id=603848
54 +DEPEND="
55 + dev-python/setuptools[${PYTHON_USEDEP}]
56 + test? (
57 + >=dev-python/coverage-4.0[${PYTHON_USEDEP}]
58 + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
59 + >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
60 + >=dev-python/subunit-0.0.18[${PYTHON_USEDEP}]
61 + >=dev-python/sphinx-1.5.1[$(python_gen_usedep 'python2_7' 'python3_4' 'python3_5' 'python3_6')]
62 + >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
63 + >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
64 + >=dev-python/testresources-0.2.4[${PYTHON_USEDEP}]
65 + >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
66 + >=dev-python/testtools-1.4.0[${PYTHON_USEDEP}]
67 + >=dev-python/virtualenv-13.1.0[${PYTHON_USEDEP}]
68 + dev-python/wheel[${PYTHON_USEDEP}]
69 + dev-python/docutils[${PYTHON_USEDEP}]
70 + dev-vcs/git
71 + )"
72 +PDEPEND=""
73 +
74 +# This normally actually belongs here.
75 +python_prepare_all() {
76 + # This test passes when run within the source and doesn't represent a failure, but rather
77 + # a gentoo sandbox constraint
78 + # Rm tests that rely upon the package being already installed and fail
79 + sed -e s':test_console_script_develop:_&:' \
80 + -e s':test_console_script_install:_&:' \
81 + -e s':test_sdist_extra_files:_&:' \
82 + -e s':test_command_hooks:_&:' \
83 + -e s':test_sdist_git_extra_files:_&:' \
84 + -i pbr/tests/test_core.py || die
85 + sed -e s':test_command_hooks:_&:' \
86 + -e s':test_global_setup_hooks:_&:' \
87 + -i pbr/tests/test_hooks.py || die
88 + sed \
89 + -e "s:test_wsgi_script_install:_&:" \
90 + -i pbr/tests/test_wsgi.py || die
91 + einfo "rogue tests disabled"
92 + sed -i '/^hacking/d' test-requirements.txt || die
93 +
94 + distutils-r1_python_prepare_all
95 +}
96 +
97 +python_test() {
98 + distutils_install_for_testing
99 +
100 + rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPTYHON}"
101 +
102 + testr init || die "testr init failed under ${EPYTHON}"
103 + testr run || die "testr run failed under ${EPYTHON}"
104 +}