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 02:25:06
Message-Id: 1533003839.d771aa1f0e069b2663e2e0ccbd49a532fdb07a4c.vdupras@gentoo
1 commit: d771aa1f0e069b2663e2e0ccbd49a532fdb07a4c
2 Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 31 02:23:19 2018 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 31 02:23:59 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d771aa1f
7
8 dev-python/fabric: Bump to 2.2.1
9
10 The jump for 1.x to 2.x upstream is a major change so I've added a new
11 slot "2" for it along with a new "fab2" USE flag to decide whether we
12 install in "side-by-side" mode.
13
14 I didn't go for an eselect script because this side-by-side thing is a
15 transition measure that shouldn't last very long. I also went with the
16 "fab2" USE flag because it was what was the closest to upstream's
17 transition strategy[1]. Also:
18
19 * EAPI 7
20 * Python 3.6
21 * Temporarily drop ~arm64 because of new "invoke" dep
22 * Remove broken bash completions
23
24 In addition to not being able to make bash completions work under 1.x,
25 the completion situation changed with fab 2.x with invoke being able to
26 generate them automatically but I haven't been able to make it work for
27 fabric yet.
28
29 [1]: http://www.fabfile.org/installing.html
30
31 Closes: https://bugs.gentoo.org/657392
32 Package-Manager: Portage-2.3.43, Repoman-2.3.10
33
34 dev-python/fabric/Manifest | 1 +
35 dev-python/fabric/fabric-2.2.1.ebuild | 61 +++++++++++++++++++++++++++++++++++
36 dev-python/fabric/metadata.xml | 7 ++++
37 3 files changed, 69 insertions(+)
38
39 diff --git a/dev-python/fabric/Manifest b/dev-python/fabric/Manifest
40 index be3209cc837..2b5d632e8d2 100644
41 --- a/dev-python/fabric/Manifest
42 +++ b/dev-python/fabric/Manifest
43 @@ -1,2 +1,3 @@
44 DIST Fabric-1.14.0.tar.gz 219294 BLAKE2B e4f8512fd5f84dacccdafbde51ed109fd7128954635ea67ed7461f686769c107cfa6bf0181921aea5db214ffb9fb52c7f0de88c5edbbdd63258e8c280e37c70d SHA512 3bb90597356ac033e5a9bba668ec8b080ee10cac31f54b1e89b6e2e21550ba5f2341e774ed9ff52c3a4ecbc3bae3206d155c6bfe6678576caca8e439c7810ed9
45 DIST fabric-1.14.0-completion.bash 4266 BLAKE2B b691b34d3a62ab8a70d184fe89150d50a0817df0619cfcb4a82dcda485b0a77bb33b5f7e548b1c50ddf8c9c9ae48721c9621e0ca6ed4396dea2f9a0e1ae61931 SHA512 2303e3b6a71ac8f6a61ce3bd464f3c950db8374b61a6375ccc6fbb2dc815a4a44509a034788862bd361ace7c0f401533cd5cee0fb6fca8d9ff7e0ffd143706a3
46 +DIST fabric-2.2.1.tar.gz 145848 BLAKE2B 8717a2df6d6bac41db3923e85045e1248e4376784ecf35ef3c0dc4e44a6698266305463f535d8998e489e056a158835597ae9117af2de7e6a22e2437c21217dc SHA512 51e570f1a94131e59c0e2b28c7d56e92e3230acdcb5be7c9e1ef96031988aff853ab7f91082ba468f75bf8eaa83ba826372f522ee336dcf1f2665e8222831d87
47
48 diff --git a/dev-python/fabric/fabric-2.2.1.ebuild b/dev-python/fabric/fabric-2.2.1.ebuild
49 new file mode 100644
50 index 00000000000..dddf7851f84
51 --- /dev/null
52 +++ b/dev-python/fabric/fabric-2.2.1.ebuild
53 @@ -0,0 +1,61 @@
54 +# Copyright 1999-2018 Gentoo Foundation
55 +# Distributed under the terms of the GNU General Public License v2
56 +
57 +EAPI=7
58 +
59 +PYTHON_COMPAT=( python2_7 python3_6 )
60 +
61 +inherit distutils-r1
62 +
63 +DESCRIPTION="A simple pythonic tool for remote execution and deployment"
64 +HOMEPAGE="http://fabfile.org https://pypi.org/project/Fabric/"
65 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
66 +
67 +LICENSE="GPL-2"
68 +SLOT="2"
69 +KEYWORDS="~amd64 ~x86"
70 +IUSE="doc fab2 test"
71 +
72 +RDEPEND="
73 + !fab2? ( !dev-python/fabric:0 )
74 + >=dev-python/cryptography-1.1[${PYTHON_USEDEP}]
75 + >=dev-python/invoke-1.0[${PYTHON_USEDEP}]
76 + <dev-python/invoke-2.0
77 + >=dev-python/paramiko-2.4[${PYTHON_USEDEP}]"
78 +
79 +BDEPEND="
80 + dev-python/setuptools[${PYTHON_USEDEP}]
81 + doc? (
82 + >=dev-python/alabaster-0.7[${PYTHON_USEDEP}]
83 + <dev-python/alabaster-2.0[${PYTHON_USEDEP}]
84 + >=dev-python/sphinx-1.4[${PYTHON_USEDEP}]
85 + <dev-python/sphinx-1.7[${PYTHON_USEDEP}]
86 + )
87 + test? (
88 + dev-python/mock[${PYTHON_USEDEP}]
89 + dev-python/pytest[${PYTHON_USEDEP}]
90 + dev-python/pytest-relaxed[${PYTHON_USEDEP}]
91 + )"
92 +
93 +python_compile() {
94 + if use fab2; then
95 + export PACKAGE_AS_FABRIC2=1
96 + ln -s fabric fabric2 || die
97 + fi
98 + distutils-r1_python_compile
99 +}
100 +
101 +python_compile_all() {
102 + if use doc; then
103 + sphinx-build -b html -c sites/docs/ sites/docs/ sites/docs/html || die
104 + fi
105 +}
106 +
107 +python_test() {
108 + ${EPYTHON} -m pytest -s -v || die "Tests failed"
109 +}
110 +
111 +python_install_all() {
112 + use doc && local HTML_DOCS=( sites/docs/html/. )
113 + distutils-r1_python_install_all
114 +}
115
116 diff --git a/dev-python/fabric/metadata.xml b/dev-python/fabric/metadata.xml
117 index 0ed9470ac42..38953b49950 100644
118 --- a/dev-python/fabric/metadata.xml
119 +++ b/dev-python/fabric/metadata.xml
120 @@ -1,10 +1,17 @@
121 <?xml version="1.0" encoding="UTF-8"?>
122 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
123 <pkgmetadata>
124 + <maintainer type="person">
125 + <email>vdupras@g.o</email>
126 + <name>Virgil Dupras</name>
127 + </maintainer>
128 <maintainer type="project">
129 <email>python@g.o</email>
130 <name>Python</name>
131 </maintainer>
132 + <use>
133 + <flag name="fab2">Install as "fab2", allowing side-by-side install with fabric 1.x</flag>
134 + </use>
135 <upstream>
136 <remote-id type="pypi">Fabric</remote-id>
137 </upstream>