Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pbr/
Date: Tue, 27 Apr 2021 07:08:27
Message-Id: 1619507297.b1afd04d5b0c4205be60ee9ff95038d3ff965dab.mgorny@gentoo
1 commit: b1afd04d5b0c4205be60ee9ff95038d3ff965dab
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 27 06:43:22 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 27 07:08:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1afd04d
7
8 dev-python/pbr: Bump to 5.6.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pbr/Manifest | 1 +
13 dev-python/pbr/metadata.xml | 2 +-
14 dev-python/pbr/pbr-5.6.0.ebuild | 71 +++++++++++++++++++++++++++++++++++++++++
15 3 files changed, 73 insertions(+), 1 deletion(-)
16
17 diff --git a/dev-python/pbr/Manifest b/dev-python/pbr/Manifest
18 index 6992113a24b..cb9ef7dc5cb 100644
19 --- a/dev-python/pbr/Manifest
20 +++ b/dev-python/pbr/Manifest
21 @@ -1 +1,2 @@
22 DIST pbr-5.5.1.tar.gz 117488 BLAKE2B 52deecc6107d739daec0b2d3c397285c87c63bb3d2a2abc8266feec78d43eff84f4093b9739e2bbdf47b604a1621e4ed809a689b2167e6ea673418bd27f29018 SHA512 c72c2bb8bedd7f0606880f003dffa0ed585521b698e3e986ed2913cd74303e281fbb2374cc1a00b76777c677eb2677507eed9ccaafefceee0a689cb6fa61bab6
23 +DIST pbr-5.6.0.tar.gz 125220 BLAKE2B fc26737857195b0dbe16ecbcbc6e389b53a61105b3bc66e714bb4fcb4907e4329ee7c76b5748fa7d892bf231522e6ff9d414328ae0d97e6262b608c44c737764 SHA512 1dca9020a84e3b9be71fa07e2feb37bbdb2bb69d0b4f69fdcee0fc3c7fe4d84ac2e2079d6bd7560192833f069ca6f5dc27d03a3ef87c168eed18eee8579647fc
24
25 diff --git a/dev-python/pbr/metadata.xml b/dev-python/pbr/metadata.xml
26 index aa7c0d69456..f67a700ab00 100644
27 --- a/dev-python/pbr/metadata.xml
28 +++ b/dev-python/pbr/metadata.xml
29 @@ -20,6 +20,6 @@
30 <stabilize-allarches/>
31 <upstream>
32 <remote-id type="pypi">pbr</remote-id>
33 - <remote-id type="github">openstack-dev/pbr</remote-id>
34 + <remote-id type="github">openstack/pbr</remote-id>
35 </upstream>
36 </pkgmetadata>
37
38 diff --git a/dev-python/pbr/pbr-5.6.0.ebuild b/dev-python/pbr/pbr-5.6.0.ebuild
39 new file mode 100644
40 index 00000000000..60fecc79e50
41 --- /dev/null
42 +++ b/dev-python/pbr/pbr-5.6.0.ebuild
43 @@ -0,0 +1,71 @@
44 +# Copyright 1999-2021 Gentoo Authors
45 +# Distributed under the terms of the GNU General Public License v2
46 +
47 +EAPI=7
48 +
49 +DISTUTILS_USE_SETUPTOOLS=rdepend
50 +PYTHON_COMPAT=( python3_{7..9} pypy3 )
51 +PYTHON_REQ_USE="threads(+)"
52 +
53 +inherit distutils-r1
54 +
55 +DESCRIPTION="Inject some useful and sensible default behaviors into setuptools"
56 +HOMEPAGE="https://github.com/openstack/pbr/"
57 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
58 +
59 +LICENSE="Apache-2.0"
60 +SLOT="0"
61 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux"
62 +IUSE="test"
63 +RESTRICT="!test? ( test )"
64 +
65 +# git is needed for tests, see https://bugs.launchpad.net/pbr/+bug/1326682 and https://bugs.gentoo.org/show_bug.cgi?id=561038
66 +# docutils is needed for sphinx exceptions... https://bugs.gentoo.org/show_bug.cgi?id=603848
67 +# stestr is run as external tool
68 +BDEPEND="
69 + test? (
70 + $(python_gen_cond_dep '
71 + >=dev-python/wheel-0.32.0[${PYTHON_USEDEP}]
72 + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
73 + >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
74 + >=dev-python/six-1.12.0[${PYTHON_USEDEP}]
75 + dev-python/sphinx[${PYTHON_USEDEP}]
76 + >=dev-python/testresources-2.0.0[${PYTHON_USEDEP}]
77 + >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
78 + >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
79 + >=dev-python/virtualenv-20.0.3[${PYTHON_USEDEP}]
80 + >=dev-python/stestr-2.1.0[${PYTHON_USEDEP}]
81 + dev-vcs/git
82 + ' 'python*')
83 + )"
84 +PDEPEND=""
85 +
86 +# This normally actually belongs here.
87 +python_prepare_all() {
88 + # TODO: investigate
89 + sed -e s':test_console_script_develop:_&:' \
90 + -e s':test_console_script_install:_&:' \
91 + -i pbr/tests/test_core.py || die
92 + # broken on pypy3
93 + # https://bugs.launchpad.net/pbr/+bug/1881479
94 + sed -e 's:test_generates_c_extensions:_&:' \
95 + -i pbr/tests/test_packaging.py || die
96 + rm pbr/tests/test_wsgi.py || die "couldn't remove wsgi network tests"
97 +
98 + distutils-r1_python_prepare_all
99 +}
100 +
101 +python_test() {
102 + if [[ ${EPYTHON} == pypy3 ]]; then
103 + einfo "Testing on ${EPYTHON} is not supported at the moment"
104 + return
105 + fi
106 +
107 + distutils_install_for_testing
108 + local -x PATH=${TEST_DIR}/scripts:${PATH}
109 +
110 + rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPTYHON}"
111 +
112 + stestr init || die "stestr init failed under ${EPYTHON}"
113 + stestr run || die "stestr run failed under ${EPYTHON}"
114 +}