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/oslo-utils/
Date: Wed, 24 Aug 2022 19:36:40
Message-Id: 1661369777.9df931df3ec2f07ecc14ce500e8cd777c8dd31c0.arthurzam@gentoo
1 commit: 9df931df3ec2f07ecc14ce500e8cd777c8dd31c0
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 24 19:12:55 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 24 19:36:17 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9df931df
7
8 dev-python/oslo-utils: add 6.0.1
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/oslo-utils/Manifest | 1 +
13 dev-python/oslo-utils/oslo-utils-6.0.1.ebuild | 58 +++++++++++++++++++++++++++
14 2 files changed, 59 insertions(+)
15
16 diff --git a/dev-python/oslo-utils/Manifest b/dev-python/oslo-utils/Manifest
17 index 2a9241fbbdaf..dca15ef7b1f7 100644
18 --- a/dev-python/oslo-utils/Manifest
19 +++ b/dev-python/oslo-utils/Manifest
20 @@ -1 +1,2 @@
21 DIST oslo.utils-6.0.0.tar.gz 101261 BLAKE2B 8a659b4bedf49e40c85ee40fe026205964d2f4a919170e4700c85e754f4bbffdf5bb9305aea00f7b36233feec93e42bf5e0c72591eeedc02709a7fcdba64d9b6 SHA512 9f9dcd585419372711af69917daf717d7c694cc604aed4db242e508ca6bdea3db9a52a29c354dbb5c80473a819c80dec9eccad7e6f6ca297c3469bcd2db5c7d5
22 +DIST oslo.utils-6.0.1.tar.gz 102652 BLAKE2B c4a636bf3b049150499566520067215a34a965f3998202a0d006d5ab83a8c20496ce265ad57327747770d3cb090c2f814ad67c9c27ed00e1bcc0e10fcfdca899 SHA512 f005b7910909182ef7bcf1ff80186d352f1cb2222d08c0f83fa391ee7ca9e57699e29a07027774a24af3b1b5f503222292b0ccf4cb88acf025bce5ebf47f61ac
23
24 diff --git a/dev-python/oslo-utils/oslo-utils-6.0.1.ebuild b/dev-python/oslo-utils/oslo-utils-6.0.1.ebuild
25 new file mode 100644
26 index 000000000000..9b84c2839ed8
27 --- /dev/null
28 +++ b/dev-python/oslo-utils/oslo-utils-6.0.1.ebuild
29 @@ -0,0 +1,58 @@
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..11} )
37 +
38 +inherit distutils-r1
39 +
40 +MY_P=${P/-/.}
41 +DESCRIPTION="Oslo Utility library"
42 +HOMEPAGE="https://launchpad.net/oslo"
43 +SRC_URI="mirror://pypi/${PN::1}/${PN/-/.}/${MY_P}.tar.gz"
44 +S="${WORKDIR}/${MY_P}"
45 +
46 +LICENSE="Apache-2.0"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
49 +
50 +RDEPEND="
51 + >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}]
52 + >=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}]
53 + >=dev-python/pytz-2013.6[${PYTHON_USEDEP}]
54 + >=dev-python/netaddr-0.7.18[${PYTHON_USEDEP}]
55 + >=dev-python/netifaces-0.10.4[${PYTHON_USEDEP}]
56 + >=dev-python/debtcollector-1.2.0[${PYTHON_USEDEP}]
57 + >=dev-python/pyparsing-2.1.0[${PYTHON_USEDEP}]
58 + >=dev-python/packaging-20.4[${PYTHON_USEDEP}]
59 + dev-python/pyyaml[${PYTHON_USEDEP}]
60 +"
61 +BDEPEND="
62 + >=dev-python/pbr-2.2.0[${PYTHON_USEDEP}]
63 + test? (
64 + $(python_gen_cond_dep '
65 + >=dev-python/eventlet-0.23.0[${PYTHON_USEDEP}]
66 + ' python3_{8..9})
67 + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
68 + >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
69 + >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
70 + >=dev-python/oslotest-3.2.0[${PYTHON_USEDEP}]
71 + >=dev-python/ddt-1.0.1[${PYTHON_USEDEP}]
72 + )
73 +"
74 +
75 +distutils_enable_tests unittest
76 +
77 +python_compile() {
78 + distutils-r1_python_compile
79 + if ! has "${EPYTHON}" python3.{8..9}; then
80 + find "${BUILD_DIR}"/install -name '*eventletutils*' -delete || die
81 + fi
82 +}
83 +
84 +python_test() {
85 + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
86 + eunittest
87 +}