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/osc-lib/
Date: Thu, 30 Sep 2021 12:18:57
Message-Id: 1633004316.ee952122e732d7bddb95207941209d62fe7173e3.arthurzam@gentoo
1 commit: ee952122e732d7bddb95207941209d62fe7173e3
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 28 19:41:22 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 30 12:18:36 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee952122
7
8 dev-python/osc-lib: add 2.4.2, enable py3.9, enable tests
9
10 Closes: https://bugs.gentoo.org/798156
11 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
12
13 dev-python/osc-lib/Manifest | 1 +
14 dev-python/osc-lib/osc-lib-2.4.2.ebuild | 45 +++++++++++++++++++++++++++++++++
15 2 files changed, 46 insertions(+)
16
17 diff --git a/dev-python/osc-lib/Manifest b/dev-python/osc-lib/Manifest
18 index be16385a8fa..0ba7ecfdce1 100644
19 --- a/dev-python/osc-lib/Manifest
20 +++ b/dev-python/osc-lib/Manifest
21 @@ -1 +1,2 @@
22 DIST osc-lib-2.2.1.tar.gz 93855 BLAKE2B e6c863a13ea950a30a033e3877660a66ef60f66ef1e42efec39d207b1d492499136f9fb696e10001fe40b815e6cd4fd320a45acfd995504a4b7222b29951bf3c SHA512 8328541f319dfa2ffd0ac51aa89429b05fee0b160b2d236fd30cd9ce2d233c86963b744ce0a63bbb849e5d47af9868ca843db2ad79e9099bd22f59d553235d06
23 +DIST osc-lib-2.4.2.tar.gz 97648 BLAKE2B f5d34e4a13408f7eea8289c68f938ed47c8818fa9928da6b4d21c9b20f722360c155287e5167d445de18d2f00b8856390f995cd40812f967683d7c6e395e6d75 SHA512 4d6a0016fa17eba5c14c9db919719e6dea2ff13ca64ad6be6e0c3af88b8a1bf75ad2b47475efa3a7d262d73fcdb433afd372f573f00cb0854b5ac4c64ecab4bb
24
25 diff --git a/dev-python/osc-lib/osc-lib-2.4.2.ebuild b/dev-python/osc-lib/osc-lib-2.4.2.ebuild
26 new file mode 100644
27 index 00000000000..817b4b139fa
28 --- /dev/null
29 +++ b/dev-python/osc-lib/osc-lib-2.4.2.ebuild
30 @@ -0,0 +1,45 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{8..9} )
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="A package of common support modules for writing OSC plugins."
40 +HOMEPAGE="https://github.com/openstack/osc-lib"
41 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
42 +
43 +LICENSE="Apache-2.0"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
46 +
47 +RDEPEND="
48 + >=dev-python/cliff-3.2.0[${PYTHON_USEDEP}]
49 + >=dev-python/keystoneauth-3.14.0[${PYTHON_USEDEP}]
50 + >=dev-python/openstacksdk-0.15.0[${PYTHON_USEDEP}]
51 + >=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}]
52 + >=dev-python/oslo-utils-3.33.0[${PYTHON_USEDEP}]
53 + >=dev-python/simplejson-3.5.1[${PYTHON_USEDEP}]
54 + >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}]
55 +"
56 +BDEPEND="
57 + >dev-python/pbr-2.1.0[${PYTHON_USEDEP}]
58 + test? (
59 + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
60 + >=dev-python/oslotest-3.2.0[${PYTHON_USEDEP}]
61 + >=dev-python/requests-mock-1.2.0[${PYTHON_USEDEP}]
62 + >=dev-python/statsd-3.3.0[${PYTHON_USEDEP}]
63 + >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
64 + >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
65 + )
66 +"
67 +
68 +distutils_enable_tests unittest
69 +
70 +src_prepare() {
71 + # need to skip all tests under TestTagHelps class
72 + # checks exact help message, based on another unittest runner
73 + sed -e '179,$s/test_add_tag_/_&/' -i osc_lib/tests/utils/test_tags.py || die
74 + distutils-r1_src_prepare
75 +}