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, 17 Aug 2022 18:28:41
Message-Id: 1660760573.f527dcecbd684fc905068684a34c38df4beee2fc.arthurzam@gentoo
1 commit: f527dcecbd684fc905068684a34c38df4beee2fc
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 17 18:22:53 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 17 18:22:53 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f527dcec
7
8 dev-python/hcloud-python: add 1.18.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.18.0.ebuild | 40 ++++++++++++++++++++++
14 2 files changed, 41 insertions(+)
15
16 diff --git a/dev-python/hcloud-python/Manifest b/dev-python/hcloud-python/Manifest
17 index f20b66667b40..885b0a11411e 100644
18 --- a/dev-python/hcloud-python/Manifest
19 +++ b/dev-python/hcloud-python/Manifest
20 @@ -1 +1,2 @@
21 DIST hcloud-python-1.17.0.gh.tar.gz 98069 BLAKE2B b8fb2f1c4a3d139225a19599f956a845789872642bc62ec0434f5393e90f5ef64226b6363eeae0b3312084312aac4ddbe77e6e134b0502783e72568f23a71ee5 SHA512 829972585b5fe61aaaa2ee5294c97e6ad4a913229e8d87cec8e00d61480a780682b4eb75e2b9da5962bdb3dfda15b0a81afa74383be874e381a5f8e1a27d7014
22 +DIST hcloud-python-1.18.0.gh.tar.gz 99047 BLAKE2B c32b048653bea1910ed8a82d0e08603a154dc89208c0cf8b9e046078277460fedffe6568c7c3cf56a8408bb0423d38464c4fd57dded4523886560823e3ee65da SHA512 8339b5da4df7f5e1f38fbd7a3f205387bfd7a65a7c4eaa757c4c35056b70c06230fe9b8a597b54bac082af975184bd5ef33a6e2747b60a67cc34d6771435452c
23
24 diff --git a/dev-python/hcloud-python/hcloud-python-1.18.0.ebuild b/dev-python/hcloud-python/hcloud-python-1.18.0.ebuild
25 new file mode 100644
26 index 000000000000..2fc96fa6b76e
27 --- /dev/null
28 +++ b/dev-python/hcloud-python/hcloud-python-1.18.0.ebuild
29 @@ -0,0 +1,40 @@
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 +
56 +distutils_enable_sphinx docs \
57 + dev-python/sphinx_rtd_theme
58 +distutils_enable_tests pytest
59 +
60 +python_install_all() {
61 + use examples && dodoc -r examples
62 + distutils-r1_python_install_all
63 +}
64 +
65 +python_test() {
66 + # Integration tests need docker:
67 + # https://github.com/hetznercloud/hcloud-python/blob/master/.travis.yml#L16
68 + epytest --ignore tests/integration
69 +}