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/libcloud/
Date: Sat, 05 Feb 2022 17:29:49
Message-Id: 1644082154.c349f433d4f6e9b0d987ec1614ef553514a0e975.arthurzam@gentoo
1 commit: c349f433d4f6e9b0d987ec1614ef553514a0e975
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 5 17:28:05 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 5 17:29:14 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c349f433
7
8 dev-python/libcloud: add 3.4.1
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/libcloud/Manifest | 1 +
13 dev-python/libcloud/libcloud-3.4.1.ebuild | 59 +++++++++++++++++++++++++++++++
14 2 files changed, 60 insertions(+)
15
16 diff --git a/dev-python/libcloud/Manifest b/dev-python/libcloud/Manifest
17 index 7775571d48de..5b490a88d3fa 100644
18 --- a/dev-python/libcloud/Manifest
19 +++ b/dev-python/libcloud/Manifest
20 @@ -1 +1,2 @@
21 DIST apache-libcloud-3.3.0.tar.bz2 1811722 BLAKE2B bfdacdda6bb39b3782915d71db6d736caa8a1d57c5120dac9020a1c4923ab08bf8983916fcac15723139b073858efdf178aa797dd592d7534a0b6ff35f8fc5ae SHA512 286ddd79b14633ceb59e1a4b015760a1e525b0282f3039f16c2fa4de940005da5fbde1b8262027103ca91c9653baed22d61dd136ddcc2b6886687ad8b27f3ea8
22 +DIST apache-libcloud-3.4.1.tar.bz2 1851322 BLAKE2B f141b85423babc41c4dc61f4ef27228da10f2d6d7c9a0dfff0a292cc226a36a7626f8398a8e04202417955720ea5eb0b48736b704cc1379ab05a2bc4e3e0c86e SHA512 72a745a689229901277b347a45e86c6b66836b490d177bfa078062f54d28a149da158b8224b7c8ad6c278de18ed87b2d22bcc119f2577159ef5ecc3fa1ec621f
23
24 diff --git a/dev-python/libcloud/libcloud-3.4.1.ebuild b/dev-python/libcloud/libcloud-3.4.1.ebuild
25 new file mode 100644
26 index 000000000000..227c38308501
27 --- /dev/null
28 +++ b/dev-python/libcloud/libcloud-3.4.1.ebuild
29 @@ -0,0 +1,59 @@
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 +)
72 +
73 +src_prepare() {
74 + if use examples; then
75 + mkdir examples || die
76 + mv example_*.py examples || die
77 + fi
78 +
79 + # needed for tests
80 + cp libcloud/test/secrets.py-dist libcloud/test/secrets.py || die
81 +
82 + distutils-r1_src_prepare
83 +}
84 +
85 +src_install() {
86 + use examples && dodoc -r examples
87 + distutils-r1_src_install
88 +}