blob: 8265a2381332df360b8489832ad65cd1d875cf0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 python3_6 )
inherit distutils-r1
DESCRIPTION="A simple pythonic tool for remote execution and deployment"
HOMEPAGE="https://www.fabfile.org https://pypi.org/project/Fabric/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="2"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="doc fab2"
RDEPEND="
!fab2? ( !dev-python/fabric:0 )
dev-python/cryptography[${PYTHON_USEDEP}]
<dev-python/invoke-2[${PYTHON_USEDEP}]
>=dev-python/paramiko-2.4[${PYTHON_USEDEP}]"
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
doc? (
dev-python/alabaster[${PYTHON_USEDEP}]
>=dev-python/sphinx-1.4[${PYTHON_USEDEP}]
<dev-python/sphinx-1.7[${PYTHON_USEDEP}]
)"
# Depends on pytest-relaxed which is broken
RESTRICT="test"
python_compile() {
if use fab2; then
export PACKAGE_AS_FABRIC2=1
ln -s fabric fabric2 || die
fi
distutils-r1_python_compile
}
python_compile_all() {
if use doc; then
sphinx-build -b html -c sites/docs/ sites/docs/ sites/docs/html || die
fi
}
python_install_all() {
use doc && local HTML_DOCS=( sites/docs/html/. )
distutils-r1_python_install_all
}
|