1 |
commit: df80e4978673aa75911102ad1b93524e3e907f5d |
2 |
Author: Agostino Sarubbo <ago <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 6 07:22:29 2020 +0000 |
4 |
Commit: Agostino Sarubbo <ago <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 6 07:22:29 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df80e497 |
7 |
|
8 |
dev-python/hcloud-python: enable tests |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Agostino Sarubbo <ago <AT> gentoo.org> |
12 |
|
13 |
.../hcloud-python/hcloud-python-1.6.3-r1.ebuild | 49 ++++++++++++++++++++++ |
14 |
1 file changed, 49 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/hcloud-python/hcloud-python-1.6.3-r1.ebuild b/dev-python/hcloud-python/hcloud-python-1.6.3-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..7d014ff7705 |
19 |
--- /dev/null |
20 |
+++ b/dev-python/hcloud-python/hcloud-python-1.6.3-r1.ebuild |
21 |
@@ -0,0 +1,49 @@ |
22 |
+# Copyright 1999-2020 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+PYTHON_COMPAT=( python3_{6,7} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Official Hetzner Cloud python library" |
32 |
+HOMEPAGE="https://github.com/hetznercloud/hcloud-python" |
33 |
+SRC_URI="https://github.com/hetznercloud/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="MIT" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64" |
38 |
+IUSE="doc examples" |
39 |
+ |
40 |
+COMMON_DEPEND=">=dev-python/python-dateutil-2.7.5[${PYTHON_USEDEP}] |
41 |
+ <dev-python/python-dateutil-2.9[${PYTHON_USEDEP}] |
42 |
+ >=dev-python/requests-2.20[${PYTHON_USEDEP}] |
43 |
+ <dev-python/requests-2.23[${PYTHON_USEDEP}]" |
44 |
+ |
45 |
+DEPEND="${COMMON_DEPEND} |
46 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" |
47 |
+ |
48 |
+RDEPEND="${COMMON_DEPEND} |
49 |
+ >=dev-python/future-0.17.1[${PYTHON_USEDEP}] |
50 |
+ <dev-python/future-0.19[${PYTHON_USEDEP}]" |
51 |
+ |
52 |
+python_compile_all() { |
53 |
+ use doc && emake -C docs html |
54 |
+} |
55 |
+ |
56 |
+python_install_all() { |
57 |
+ use examples && dodoc -r examples |
58 |
+ use doc && local HTML_DOCS=( docs/_build/html/. ) |
59 |
+ |
60 |
+ distutils-r1_python_install_all |
61 |
+} |
62 |
+ |
63 |
+distutils_enable_tests pytest |
64 |
+ |
65 |
+src_test() { |
66 |
+ # Integration tests need docker: |
67 |
+ # https://github.com/hetznercloud/hcloud-python/blob/master/.travis.yml#L16 |
68 |
+ rm -fr tests/integration |
69 |
+ default |
70 |
+} |