Line 0
Link Here
|
0 |
- |
1 |
# Copyright 1999-2017 Gentoo Foundation |
|
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
4 |
EAPI=5 |
5 |
PYTHON_COMPAT=( python2_7 python3_4 python3_5 ) |
6 |
|
7 |
inherit distutils-r1 vcs-snapshot |
8 |
|
9 |
DESCRIPTION="The AWS SDK for Python" |
10 |
HOMEPAGE="https://github.com/boto/boto3" |
11 |
SRC_URI="https://github.com/boto/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
12 |
|
13 |
LICENSE="Apache-2.0" |
14 |
SLOT="0" |
15 |
KEYWORDS="~amd64" |
16 |
IUSE="doc test" |
17 |
|
18 |
CDEPEND=" |
19 |
>=dev-python/botocore-1.5.0[${PYTHON_USEDEP}] |
20 |
<dev-python/botocore-1.6.0[${PYTHON_USEDEP}] |
21 |
>=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}] |
22 |
<dev-python/jmespath-1.0.0[${PYTHON_USEDEP}] |
23 |
>=dev-python/s3transfer-0.1.10[${PYTHON_USEDEP}] |
24 |
<dev-python/s3transfer-0.2.0[${PYTHON_USEDEP}] |
25 |
" |
26 |
DEPEND=" |
27 |
dev-python/setuptools[${PYTHON_USEDEP}] |
28 |
doc? ( |
29 |
>=dev-python/guzzle_sphinx_theme-0.7.10[${PYTHON_USEDEP}] |
30 |
<dev-python/guzzle_sphinx_theme-0.8[${PYTHON_USEDEP}] |
31 |
>=dev-python/sphinx-1.1.3[${PYTHON_USEDEP}] |
32 |
<dev-python/sphinx-1.3[${PYTHON_USEDEP}] |
33 |
) |
34 |
test? ( |
35 |
${CDEPEND} |
36 |
~dev-python/mock-1.3.0[${PYTHON_USEDEP}] |
37 |
dev-python/nose[${PYTHON_USEDEP}] |
38 |
) |
39 |
" |
40 |
RDEPEND="${CDEPEND}" |
41 |
|
42 |
python_compile_all() { |
43 |
use doc && emake -C docs html |
44 |
} |
45 |
|
46 |
python_test() { |
47 |
nosetests tests/unit/ tests/functional/ || die "test failed under ${EPYTHON}" |
48 |
} |
49 |
|
50 |
python_install_all() { |
51 |
use doc && local HTML_DOCS=( docs/build/html/. ) |
52 |
|
53 |
distutils-r1_python_install_all |
54 |
} |