1 |
commit: 0f76d16c602cddc7d9c65ffb5761a804ecaad921 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 31 11:01:23 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 31 11:33:00 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f76d16c |
7 |
|
8 |
dev-python/libcloud: Bump to 3.5.1 |
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.5.1.ebuild | 61 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 62 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/libcloud/Manifest b/dev-python/libcloud/Manifest |
17 |
index 5efb0c8bd662..4b597387da28 100644 |
18 |
--- a/dev-python/libcloud/Manifest |
19 |
+++ b/dev-python/libcloud/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST apache-libcloud-3.4.1.tar.bz2 1851322 BLAKE2B f141b85423babc41c4dc61f4ef27228da10f2d6d7c9a0dfff0a292cc226a36a7626f8398a8e04202417955720ea5eb0b48736b704cc1379ab05a2bc4e3e0c86e SHA512 72a745a689229901277b347a45e86c6b66836b490d177bfa078062f54d28a149da158b8224b7c8ad6c278de18ed87b2d22bcc119f2577159ef5ecc3fa1ec621f |
22 |
+DIST apache-libcloud-3.5.1.tar.bz2 1859270 BLAKE2B c2e49a79ac4feccb5285d9bf55a4a6e8486d32968216b68e8c8f5b049ef5fa8caae853b4e4cc31ec2c323aedf3de275ab79758b1a055d7f20bbde994c58ba882 SHA512 22d6facf344687bfcfd32e53ede12227882f55bf54ffcf75d5584652c4cd257905c56e359d9c6b050635faa2305c344a6dfdc17007eb41143ccff772bd31d91e |
23 |
|
24 |
diff --git a/dev-python/libcloud/libcloud-3.5.1.ebuild b/dev-python/libcloud/libcloud-3.5.1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..954153c4156f |
27 |
--- /dev/null |
28 |
+++ b/dev-python/libcloud/libcloud-3.5.1.ebuild |
29 |
@@ -0,0 +1,61 @@ |
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..10} ) |
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/mock[${PYTHON_USEDEP}] |
60 |
+ dev-python/requests-mock[${PYTHON_USEDEP}] |
61 |
+ ) |
62 |
+" |
63 |
+ |
64 |
+distutils_enable_tests pytest |
65 |
+ |
66 |
+EPYTEST_DESELECT=( |
67 |
+ # Needs network access |
68 |
+ libcloud/test/compute/test_ovh.py::OvhTests::test_list_nodes_invalid_region |
69 |
+ libcloud/test/test_connection.py::BaseConnectionClassTestCase::test_connection_timeout_raised |
70 |
+ libcloud/test/test_connection.py::ConnectionClassTestCase::test_retry_on_all_default_retry_exception_classes |
71 |
+ # TODO |
72 |
+ libcloud/test/compute/test_ssh_client.py::ParamikoSSHClientTests::test_key_file_non_pem_format_error |
73 |
+) |
74 |
+ |
75 |
+src_prepare() { |
76 |
+ if use examples; then |
77 |
+ mkdir examples || die |
78 |
+ mv example_*.py examples || die |
79 |
+ fi |
80 |
+ |
81 |
+ # needed for tests |
82 |
+ cp libcloud/test/secrets.py-dist libcloud/test/secrets.py || die |
83 |
+ |
84 |
+ distutils-r1_src_prepare |
85 |
+} |
86 |
+ |
87 |
+src_install() { |
88 |
+ use examples && dodoc -r examples |
89 |
+ distutils-r1_src_install |
90 |
+} |