1 |
commit: 9c3e054cd2ff781bf4a1d3904c045bb83e92dc4d |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 27 05:25:31 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 27 06:10:35 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c3e054c |
7 |
|
8 |
dev-python/libcloud: Bump to 3.6.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/libcloud/Manifest | 1 + |
13 |
dev-python/libcloud/libcloud-3.6.0.ebuild | 60 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 61 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/libcloud/Manifest b/dev-python/libcloud/Manifest |
17 |
index 8f791dbbc161..549a492c2891 100644 |
18 |
--- a/dev-python/libcloud/Manifest |
19 |
+++ b/dev-python/libcloud/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST apache-libcloud-3.5.1.tar.bz2 1859270 BLAKE2B c2e49a79ac4feccb5285d9bf55a4a6e8486d32968216b68e8c8f5b049ef5fa8caae853b4e4cc31ec2c323aedf3de275ab79758b1a055d7f20bbde994c58ba882 SHA512 22d6facf344687bfcfd32e53ede12227882f55bf54ffcf75d5584652c4cd257905c56e359d9c6b050635faa2305c344a6dfdc17007eb41143ccff772bd31d91e |
22 |
+DIST apache-libcloud-3.6.0.tar.bz2 1873596 BLAKE2B 7ca67d0a84d1af9a216882efb35ff48f4a795eacf34132b78429e0158b1093b3eec316541a52673e61edfc5bfcb326052ee874fe59b1e4a65b407bdaccf38774 SHA512 3a4b4ecf35194e70b6cb70f0619238e1c0140891c08438d4b1ef308fffc9dfb973a5c1534b6ee7864797925b7f7be77eb79a2c4d621627d8042da3927b3f2ff4 |
23 |
|
24 |
diff --git a/dev-python/libcloud/libcloud-3.6.0.ebuild b/dev-python/libcloud/libcloud-3.6.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..83c24363bde5 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/libcloud/libcloud-3.6.0.ebuild |
29 |
@@ -0,0 +1,60 @@ |
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 |
+PYTHON_REQ_USE="ssl(+)" |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Unified Interface to the Cloud - python support libs" |
42 |
+HOMEPAGE="https://libcloud.apache.org/" |
43 |
+SRC_URI="mirror://apache/${PN}/apache-${P}.tar.bz2" |
44 |
+S="${WORKDIR}/apache-${P}" |
45 |
+ |
46 |
+LICENSE="Apache-2.0" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
49 |
+IUSE="examples" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ dev-python/pyopenssl[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/requests-2.5.0[${PYTHON_USEDEP}] |
54 |
+" |
55 |
+BDEPEND=" |
56 |
+ test? ( |
57 |
+ >=dev-python/cryptography-2.6.1[${PYTHON_USEDEP}] |
58 |
+ dev-python/lockfile[${PYTHON_USEDEP}] |
59 |
+ dev-python/requests-mock[${PYTHON_USEDEP}] |
60 |
+ ) |
61 |
+" |
62 |
+ |
63 |
+distutils_enable_tests pytest |
64 |
+ |
65 |
+EPYTEST_DESELECT=( |
66 |
+ # Needs network access |
67 |
+ libcloud/test/compute/test_ovh.py::OvhTests::test_list_nodes_invalid_region |
68 |
+ libcloud/test/test_connection.py::BaseConnectionClassTestCase::test_connection_timeout_raised |
69 |
+ libcloud/test/test_connection.py::ConnectionClassTestCase::test_retry_on_all_default_retry_exception_classes |
70 |
+ # TODO |
71 |
+ libcloud/test/compute/test_ssh_client.py::ParamikoSSHClientTests::test_key_file_non_pem_format_error |
72 |
+) |
73 |
+ |
74 |
+src_prepare() { |
75 |
+ if use examples; then |
76 |
+ mkdir examples || die |
77 |
+ mv example_*.py examples || die |
78 |
+ fi |
79 |
+ |
80 |
+ # needed for tests |
81 |
+ cp libcloud/test/secrets.py-dist libcloud/test/secrets.py || die |
82 |
+ |
83 |
+ distutils-r1_src_prepare |
84 |
+} |
85 |
+ |
86 |
+src_install() { |
87 |
+ use examples && dodoc -r examples |
88 |
+ distutils-r1_src_install |
89 |
+} |