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/hcloud-python/
Date: Wed, 29 Jun 2022 17:08:59
Message-Id: 1656522470.ba781446fb46b61c050794acd5e28c4fe882d78e.arthurzam@gentoo
1 commit: ba781446fb46b61c050794acd5e28c4fe882d78e
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 29 17:07:08 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 29 17:07:50 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba781446
7
8 dev-python/hcloud-python: add 1.17.0
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/hcloud-python/Manifest | 1 +
13 .../hcloud-python/hcloud-python-1.17.0.ebuild | 45 ++++++++++++++++++++++
14 2 files changed, 46 insertions(+)
15
16 diff --git a/dev-python/hcloud-python/Manifest b/dev-python/hcloud-python/Manifest
17 index 209e712ff623..613c74f1cbb9 100644
18 --- a/dev-python/hcloud-python/Manifest
19 +++ b/dev-python/hcloud-python/Manifest
20 @@ -1 +1,2 @@
21 DIST hcloud-python-1.16.0.tar.gz 93731 BLAKE2B d94881550dbd08281226b9869008ea6c4a10bc544a21a5aa17e48d4862808baa92b4805dc101ea970bf66baca1f5a971912601c4b934fe47614351029ece9f04 SHA512 282d1accb3c387caefe9dce7ab70dccfe2ff830c6ec3cd665326ad79076d7f9e58ab2f3061fa262208731c9d1e09e6c52d13075adf119f8b19d6af50e0374556
22 +DIST hcloud-python-1.17.0.gh.tar.gz 98069 BLAKE2B b8fb2f1c4a3d139225a19599f956a845789872642bc62ec0434f5393e90f5ef64226b6363eeae0b3312084312aac4ddbe77e6e134b0502783e72568f23a71ee5 SHA512 829972585b5fe61aaaa2ee5294c97e6ad4a913229e8d87cec8e00d61480a780682b4eb75e2b9da5962bdb3dfda15b0a81afa74383be874e381a5f8e1a27d7014
23
24 diff --git a/dev-python/hcloud-python/hcloud-python-1.17.0.ebuild b/dev-python/hcloud-python/hcloud-python-1.17.0.ebuild
25 new file mode 100644
26 index 000000000000..16f234d26482
27 --- /dev/null
28 +++ b/dev-python/hcloud-python/hcloud-python-1.17.0.ebuild
29 @@ -0,0 +1,45 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{8..10} )
36 +inherit distutils-r1
37 +
38 +DESCRIPTION="Official Hetzner Cloud python library"
39 +HOMEPAGE="https://github.com/hetznercloud/hcloud-python"
40 +SRC_URI="
41 + https://github.com/hetznercloud/${PN}/archive/v${PV}.tar.gz
42 + -> ${P}.gh.tar.gz
43 +"
44 +
45 +LICENSE="MIT"
46 +SLOT="0"
47 +KEYWORDS="~amd64"
48 +IUSE="doc examples"
49 +
50 +RDEPEND="
51 + >=dev-python/future-0.17.1[${PYTHON_USEDEP}]
52 + >=dev-python/python-dateutil-2.7.5[${PYTHON_USEDEP}]
53 + >=dev-python/requests-2.20[${PYTHON_USEDEP}]
54 +"
55 +BDEPEND="
56 + test? (
57 + dev-python/mock[${PYTHON_USEDEP}]
58 + )
59 +"
60 +
61 +distutils_enable_sphinx docs \
62 + dev-python/sphinx_rtd_theme
63 +distutils_enable_tests pytest
64 +
65 +python_install_all() {
66 + use examples && dodoc -r examples
67 + distutils-r1_python_install_all
68 +}
69 +
70 +python_test() {
71 + # Integration tests need docker:
72 + # https://github.com/hetznercloud/hcloud-python/blob/master/.travis.yml#L16
73 + epytest --ignore tests/integration
74 +}