Gentoo Archives: gentoo-commits

From: Virgil Dupras <vdupras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/fabric/
Date: Tue, 31 Jul 2018 14:27:11
Message-Id: 1533047203.6e904fc90d2f287c1e2e2f801b01c37b637c7b88.vdupras@gentoo
1 commit: 6e904fc90d2f287c1e2e2f801b01c37b637c7b88
2 Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 31 14:26:43 2018 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 31 14:26:43 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e904fc9
7
8 dev-python/fabric: fix broken completions in v1.14
9
10 Closes: https://bugs.gentoo.org/611830
11 Package-Manager: Portage-2.3.44, Repoman-2.3.10
12
13 dev-python/fabric/fabric-1.14.0-r1.ebuild | 75 +++++++++++++++++++++++++++++++
14 1 file changed, 75 insertions(+)
15
16 diff --git a/dev-python/fabric/fabric-1.14.0-r1.ebuild b/dev-python/fabric/fabric-1.14.0-r1.ebuild
17 new file mode 100644
18 index 00000000000..f3da6f17450
19 --- /dev/null
20 +++ b/dev-python/fabric/fabric-1.14.0-r1.ebuild
21 @@ -0,0 +1,75 @@
22 +# Copyright 1999-2018 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +PYTHON_COMPAT=( python2_7 )
28 +
29 +inherit bash-completion-r1 distutils-r1
30 +
31 +MY_PN="Fabric"
32 +MY_P="${MY_PN}-${PV}"
33 +
34 +COMP_HASH="83d303e9fb352deaf4885b6db0781b3d9115e9c6"
35 +
36 +DESCRIPTION="A simple pythonic tool for remote execution and deployment"
37 +HOMEPAGE="http://fabfile.org https://pypi.org/project/Fabric/"
38 +SRC_URI="
39 + mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz
40 + https://raw.githubusercontent.com/kbakulin/fabric-completion/${COMP_HASH}/fabric-completion.bash -> ${P}-completion.bash"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~arm64 ~x86"
45 +IUSE="doc test"
46 +
47 +RDEPEND="
48 + >=dev-python/paramiko-1.10[${PYTHON_USEDEP}]
49 + <dev-python/paramiko-3.0[${PYTHON_USEDEP}]"
50 +DEPEND="${RDEPEND}
51 + dev-python/setuptools[${PYTHON_USEDEP}]
52 + doc? (
53 + dev-python/sphinx[${PYTHON_USEDEP}]
54 + >=dev-python/python-docs-2.7.6-r1:2.7
55 + dev-python/alabaster[${PYTHON_USEDEP}] )
56 + test? (
57 + dev-python/nose[${PYTHON_USEDEP}]
58 + <dev-python/fudge-1.0[${PYTHON_USEDEP}]
59 + dev-python/jinja[${PYTHON_USEDEP}] )"
60 +
61 +S="${WORKDIR}/${MY_P}"
62 +
63 +python_prepare_all() {
64 + # Re-set intersphinx_mapping for doc build
65 + if use doc; then
66 + local PYTHON_DOC_ATOM=$(best_version --host-root dev-python/python-docs:2.7)
67 + local PYTHON_DOC_VERSION="${PYTHON_DOC_ATOM#dev-python/python-docs-}"
68 + local PYTHON_DOC="/usr/share/doc/python-docs-${PYTHON_DOC_VERSION}/html"
69 + local PYTHON_DOC_INVENTORY="${PYTHON_DOC}/objects.inv"
70 + sed \
71 + -e "s|'http://docs.python.org/2.6', None|'${PYTHON_DOC}', '${PYTHON_DOC_INVENTORY}'|" \
72 + -e "s| 'www'| #'www'|" \
73 + -i sites/docs/conf.py || die
74 + fi
75 + distutils-r1_python_prepare_all
76 +}
77 +
78 +python_compile_all() {
79 + if use doc; then
80 + sphinx-build -b html -c sites/docs/ sites/docs/ sites/docs/html || die
81 + fi
82 +}
83 +
84 +python_test() {
85 + # 1 failure, reported https://github.com/fabric/fabric/issues/1360
86 + sed \
87 + -e 's:test_abort_message_only_printed_once:_&:g' \
88 + -i tests/test_utils.py || die
89 + esetup.py test
90 +}
91 +
92 +python_install_all() {
93 + use doc && local HTML_DOCS=( sites/docs/html/. )
94 + distutils-r1_python_install_all
95 + newbashcomp "${DISTDIR}"/${P}-completion.bash fab
96 +}