Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/libcloud/
Date: Fri, 07 Aug 2020 01:11:14
Message-Id: 1596762609.5ec60fd354459a9e8ec0dcdd29da86b5d67d0f66.sam@gentoo
1 commit: 5ec60fd354459a9e8ec0dcdd29da86b5d67d0f66
2 Author: David Denoncin <ddenoncin <AT> gmail <DOT> com>
3 AuthorDate: Wed Aug 5 09:17:17 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 7 01:10:09 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ec60fd3
7
8 dev-python/libcloud: vbump 3.1.0, port to py3.9
9
10 Package-Manager: Portage-2.3.103, Repoman-2.3.23
11 Signed-off-by: David Denoncin <ddenoncin <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/16997
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 dev-python/libcloud/Manifest | 1 +
16 dev-python/libcloud/libcloud-3.1.0.ebuild | 49 +++++++++++++++++++++++++++++++
17 2 files changed, 50 insertions(+)
18
19 diff --git a/dev-python/libcloud/Manifest b/dev-python/libcloud/Manifest
20 index 496f882f8bb..5e2c9f6c0ba 100644
21 --- a/dev-python/libcloud/Manifest
22 +++ b/dev-python/libcloud/Manifest
23 @@ -1 +1,2 @@
24 DIST apache-libcloud-3.0.0.tar.bz2 1609684 BLAKE2B cac9f42a2e73c8903d9b29c8e39d0d16d56138adbe2bdf60abb52c02fbd41f8fbe063238a09ce27b2b921eb082a82881f31211dbcb864e183c3f582fdb75858a SHA512 17569ce820fc5bc792a23636c8d2cc2067059425217b9b0dd90fcba40a5f347dca66531201c458b12d61caf3854355b6a7dca7efc17b05fbab364c8d2bdc2405
25 +DIST apache-libcloud-3.1.0.tar.bz2 1613381 BLAKE2B afc607a76ff3cd24961cfaf916b5813cd59e84d523f9a642bb8222d889abb44d6357d230b001ae03a0b021160384d6c6d8420e85825aa8d84f7619e900c4c9b0 SHA512 ef2fc4754281adc336d656d3a707710feae0f6c22f33156830dd0b299d06fbf9b890817f68192106320944f851265c39f175b5fae5f85053706ec2f0ccd04bf1
26
27 diff --git a/dev-python/libcloud/libcloud-3.1.0.ebuild b/dev-python/libcloud/libcloud-3.1.0.ebuild
28 new file mode 100644
29 index 00000000000..8e3ceab26aa
30 --- /dev/null
31 +++ b/dev-python/libcloud/libcloud-3.1.0.ebuild
32 @@ -0,0 +1,49 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python3_{6,7,8,9} )
39 +PYTHON_REQ_USE="ssl(+)"
40 +
41 +inherit distutils-r1
42 +
43 +DESCRIPTION="Unified Interface to the Cloud - python support libs"
44 +HOMEPAGE="https://libcloud.apache.org/"
45 +SRC_URI="mirror://apache/${PN}/apache-${P}.tar.bz2"
46 +S="${WORKDIR}/apache-${P}"
47 +
48 +LICENSE="Apache-2.0"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~x86"
51 +IUSE="examples"
52 +
53 +RDEPEND=">=dev-python/requests-2.5.0[${PYTHON_USEDEP}]"
54 +
55 +distutils_enable_tests pytest
56 +
57 +BDEPEND+="
58 + test? (
59 + >=dev-python/cryptography-2.6.1[${PYTHON_USEDEP}]
60 + dev-python/lockfile[${PYTHON_USEDEP}]
61 + dev-python/mock[${PYTHON_USEDEP}]
62 + dev-python/requests-mock[${PYTHON_USEDEP}]
63 + )
64 +"
65 +
66 +python_prepare_all() {
67 + if use examples; then
68 + mkdir examples || die
69 + mv example_*.py examples || die
70 + fi
71 +
72 + # needed for tests
73 + cp libcloud/test/secrets.py-dist libcloud/test/secrets.py || die
74 +
75 + distutils-r1_python_prepare_all
76 +}
77 +
78 +python_install_all() {
79 + use examples && dodoc -r examples
80 + distutils-r1_python_install_all
81 +}