Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pbr/
Date: Thu, 05 May 2022 17:35:43
Message-Id: 1651772116.4f7e9df907b797e483ce7377507d90291888358b.arthurzam@gentoo
1 commit: 4f7e9df907b797e483ce7377507d90291888358b
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 5 17:35:16 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Thu May 5 17:35:16 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f7e9df9
7
8 dev-python/pbr: add 5.9.0
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/pbr/Manifest | 1 +
13 dev-python/pbr/pbr-5.9.0.ebuild | 69 +++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 70 insertions(+)
15
16 diff --git a/dev-python/pbr/Manifest b/dev-python/pbr/Manifest
17 index e47a21a036c6..1a898093aece 100644
18 --- a/dev-python/pbr/Manifest
19 +++ b/dev-python/pbr/Manifest
20 @@ -1 +1,2 @@
21 DIST pbr-5.8.0.tar.gz 127170 BLAKE2B 7fbd166f01617617c0dff568d1bb88a4be03d62f4f0c3ca1a7d16a7cefb20dcc924ffbb8df0d2d34516cfe3b60b8e380a0eb4a1071220bb4ab695d3d7c88d824 SHA512 61a8eb63bb76ce8515c4203d60df7c973e02ea61b603d155b611724efb2b15c42416bf8a0285451d3378056d390bbf63d991cec32cc4114ae5cc30ebae0a5a69
22 +DIST pbr-5.9.0.tar.gz 126893 BLAKE2B 3f1d39c037afa7fe6d45b0b039968243e99717b347d1f1ada25023a64e7e683c0d83d2ce177e0f7c5f4cb65cd2a0eedd594b463d5d72bdc86560d811bd3f0cd3 SHA512 b36cc331664b91899a884bb1bc6980174ba2463db35c591d480d0b5a49dd37781132893e488c6a9238fbd2ec16589652d66b01a8c2701d02ff5c0b04e9c6121b
23
24 diff --git a/dev-python/pbr/pbr-5.9.0.ebuild b/dev-python/pbr/pbr-5.9.0.ebuild
25 new file mode 100644
26 index 000000000000..c78b5363efe1
27 --- /dev/null
28 +++ b/dev-python/pbr/pbr-5.9.0.ebuild
29 @@ -0,0 +1,69 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
37 +PYTHON_REQ_USE="threads(+)"
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Inject some useful and sensible default behaviors into setuptools"
41 +HOMEPAGE="https://github.com/openstack/pbr/"
42 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
43 +
44 +LICENSE="Apache-2.0"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux"
47 +
48 +RDEPEND="
49 + >=dev-python/setuptools-60.5.0[${PYTHON_USEDEP}]
50 +"
51 +# git is needed for tests, see https://bugs.launchpad.net/pbr/+bug/1326682 and https://bugs.gentoo.org/show_bug.cgi?id=561038
52 +# docutils is needed for sphinx exceptions... https://bugs.gentoo.org/show_bug.cgi?id=603848
53 +# stestr is run as external tool
54 +BDEPEND="
55 + test? (
56 + $(python_gen_cond_dep '
57 + >=dev-python/wheel-0.32.0[${PYTHON_USEDEP}]
58 + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
59 + >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
60 + >=dev-python/six-1.12.0[${PYTHON_USEDEP}]
61 + dev-python/sphinx[${PYTHON_USEDEP}]
62 + >=dev-python/testresources-2.0.0[${PYTHON_USEDEP}]
63 + >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
64 + >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
65 + >=dev-python/virtualenv-20.0.3[${PYTHON_USEDEP}]
66 + dev-vcs/git
67 + ' 'python*')
68 + )"
69 +
70 +distutils_enable_tests unittest
71 +
72 +# This normally actually belongs here.
73 +python_prepare_all() {
74 + # TODO: investigate
75 + sed -e s':test_console_script_develop:_&:' \
76 + -e s':test_console_script_install:_&:' \
77 + -i pbr/tests/test_core.py || die
78 + # broken on pypy3
79 + # https://bugs.launchpad.net/pbr/+bug/1881479
80 + sed -e 's:test_generates_c_extensions:_&:' \
81 + -i pbr/tests/test_packaging.py || die
82 + rm pbr/tests/test_wsgi.py || die "couldn't remove wsgi network tests"
83 + # installs random packages via pip from the Internet
84 + sed -e 's:test_requirement_parsing:_&:' \
85 + -e 's:test_pep_517_support:_&:' \
86 + -i pbr/tests/test_packaging.py || die
87 +
88 + distutils-r1_python_prepare_all
89 +}
90 +
91 +python_test() {
92 + if [[ ${EPYTHON} != python* ]]; then
93 + einfo "Testing on ${EPYTHON} is not supported at the moment"
94 + return
95 + fi
96 +
97 + eunittest -b
98 +}