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/oslo-concurrency/
Date: Thu, 24 Feb 2022 18:09:01
Message-Id: 1645726129.0d33d30caaf0f2afefea6ef6fd07da2042d661d5.mgorny@gentoo
1 commit: 0d33d30caaf0f2afefea6ef6fd07da2042d661d5
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 24 16:50:13 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 24 18:08:49 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d33d30c
7
8 dev-python/oslo-concurrency: PEP517, py3.10
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../oslo-concurrency-4.5.0-r1.ebuild | 50 ++++++++++++++++++++++
13 1 file changed, 50 insertions(+)
14
15 diff --git a/dev-python/oslo-concurrency/oslo-concurrency-4.5.0-r1.ebuild b/dev-python/oslo-concurrency/oslo-concurrency-4.5.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..0a3d0cbb71c0
18 --- /dev/null
19 +++ b/dev-python/oslo-concurrency/oslo-concurrency-4.5.0-r1.ebuild
20 @@ -0,0 +1,50 @@
21 +# Copyright 2021-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=setuptools
27 +PYTHON_COMPAT=( python3_{8..10} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Oslo Concurrency library"
32 +HOMEPAGE="https://pypi.org/project/oslo.concurrency/ https://github.com/openstack/oslo.concurrency"
33 +SRC_URI="mirror://pypi/o/${PN/-/.}/${PN/-/.}-${PV}.tar.gz"
34 +S="${WORKDIR}/${PN/-/.}-${PV}"
35 +
36 +LICENSE="Apache-2.0"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
39 +
40 +RDEPEND="
41 + >=dev-python/pbr-2.1.0[${PYTHON_USEDEP}]
42 + >=dev-python/oslo-config-5.2.0[${PYTHON_USEDEP}]
43 + >=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}]
44 + >=dev-python/oslo-utils-3.33.0[${PYTHON_USEDEP}]
45 + >=dev-python/fasteners-0.7.0[${PYTHON_USEDEP}]
46 +"
47 +BDEPEND="
48 + >=dev-python/pbr-2.1.0[${PYTHON_USEDEP}]
49 + test? (
50 + >=dev-python/oslotest-3.2.0[${PYTHON_USEDEP}]
51 + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
52 + $(python_gen_cond_dep '
53 + >=dev-python/eventlet-0.19.0[${PYTHON_USEDEP}]
54 + ' python3_{8..9})
55 + )
56 +"
57 +
58 +distutils_enable_tests unittest
59 +
60 +python_compile() {
61 + distutils-r1_python_compile
62 + if ! has "${EPYTHON}" python3.{8..9}; then
63 + find "${BUILD_DIR}"/install -name '*eventlet*.py' -delete || die
64 + fi
65 +}
66 +
67 +python_test() {
68 + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
69 + eunittest
70 +}