Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/boto3/
Date: Wed, 29 Apr 2020 19:12:11
Message-Id: 1588187520.1e1502b5e484e6a085943e583bcc314efe55a9eb.chutzpah@gentoo
1 commit: 1e1502b5e484e6a085943e583bcc314efe55a9eb
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Wed Apr 29 19:10:54 2020 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 29 19:12:00 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e1502b5
7
8 dev-python/boto3-9999: sync with 1.12.48
9
10 Copyright: Sony Interactive Entertainment Inc.
11 Package-Manager: Portage-2.3.99, Repoman-2.3.22
12 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
13
14 dev-python/boto3/boto3-9999.ebuild | 51 +++++++++++++++++++-------------------
15 1 file changed, 26 insertions(+), 25 deletions(-)
16
17 diff --git a/dev-python/boto3/boto3-9999.ebuild b/dev-python/boto3/boto3-9999.ebuild
18 index b19ce9f817a..d996a7288df 100644
19 --- a/dev-python/boto3/boto3-9999.ebuild
20 +++ b/dev-python/boto3/boto3-9999.ebuild
21 @@ -1,17 +1,16 @@
22 # Copyright 1999-2020 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 -EAPI=6
26 -PYTHON_COMPAT=( python3_6 python3_7 )
27 -
28 -inherit distutils-r1 vcs-snapshot
29 +EAPI=7
30 +PYTHON_COMPAT=( python3_{6,7,8} )
31 +DISTUTILS_USE_SETUPTOOLS=bdepend
32 +inherit distutils-r1
33
34 DESCRIPTION="The AWS SDK for Python"
35 HOMEPAGE="https://github.com/boto/boto3"
36 LICENSE="Apache-2.0"
37 SLOT="0"
38 -IUSE="doc test"
39 -RESTRICT="!test? ( test )"
40 +IUSE="test"
41
42 if [[ "${PV}" == "9999" ]]; then
43 EGIT_REPO_URI="https://github.com/boto/boto3"
44 @@ -22,33 +21,35 @@ else
45 fi
46
47 RDEPEND="
48 - >=dev-python/botocore-1.12.4[${PYTHON_USEDEP}]
49 - dev-python/jmespath[${PYTHON_USEDEP}]
50 - dev-python/s3transfer[${PYTHON_USEDEP}]
51 + >=dev-python/botocore-1.15.48[${PYTHON_USEDEP}]
52 + >=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}]
53 + >=dev-python/s3transfer-0.3.0[${PYTHON_USEDEP}]
54 "
55 -DEPEND="
56 - dev-python/setuptools[${PYTHON_USEDEP}]
57 - doc? (
58 - dev-python/guzzle_sphinx_theme[${PYTHON_USEDEP}]
59 - dev-python/sphinx[${PYTHON_USEDEP}]
60 - )
61 - test? (
62 - ${RDEPEND}
63 +BDEPEND="
64 + test? ( ${RDEPEND}
65 dev-python/mock[${PYTHON_USEDEP}]
66 dev-python/nose[${PYTHON_USEDEP}]
67 )
68 "
69
70 -python_compile_all() {
71 - use doc && emake -C docs html
72 +RESTRICT="!test? ( test )"
73 +
74 +distutils_enable_sphinx docs \
75 + 'dev-python/guzzle_sphinx_theme'
76 +
77 +python_prepare_all() {
78 + # don't lock versions to narrow ranges
79 + sed -e '/botocore/ d' \
80 + -e '/jmespath/ d' \
81 + -e '/s3transfer/ d' \
82 + -i setup.py || die
83 +
84 + # prevent an infinite loop
85 + rm tests/functional/docs/test_smoke.py || die
86 +
87 + distutils-r1_python_prepare_all
88 }
89
90 python_test() {
91 nosetests -v tests/unit/ tests/functional/ || die "test failed under ${EPYTHON}"
92 }
93 -
94 -python_install_all() {
95 - use doc && local HTML_DOCS=( docs/build/html/. )
96 -
97 - distutils-r1_python_install_all
98 -}