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:12
Message-Id: 1588187519.e18654223049ca76e06fa0487e69b23705ce02de.chutzpah@gentoo
1 commit: e18654223049ca76e06fa0487e69b23705ce02de
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Wed Apr 29 19:09:39 2020 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 29 19:11:59 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1865422
7
8 dev-python/boto3-1.12.48: version bump, add py38
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/Manifest | 1 +
15 dev-python/boto3/boto3-1.12.48.ebuild | 55 +++++++++++++++++++++++++++++++++++
16 2 files changed, 56 insertions(+)
17
18 diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest
19 index c248d4e6f9c..40b6f828997 100644
20 --- a/dev-python/boto3/Manifest
21 +++ b/dev-python/boto3/Manifest
22 @@ -1,2 +1,3 @@
23 DIST boto3-1.10.2.tar.gz 272071 BLAKE2B 9c3b90ae751784946a84d0cf31ed0111526ed97b5be1fe5f256f725889f9819db632c6e6f217e3f01ebb0aa5594257a5bdaabd8dcc5f14ccb5bdd333b1c416c7 SHA512 37ea11f5ae9263aa5e97ce94f2834c987190ba2eac4a60bf9312bb643f1d204e48db7bef6ddc0d46ae124109ec6807589108b58f3024485de163fd8f83688b42
24 +DIST boto3-1.12.48.tar.gz 292124 BLAKE2B 0baf8fb4cfa040ba05b296d15a523a5de32677684143145b12dd54182d4fedbffa5656d36ab854006c0cc6009a1bca351bb5ac2ea757cb70b446924bcae625a8 SHA512 3cf5533dd5d9aa51cf46ef81ba25bb7afbc73b1e745ea5ae47935b22da290c7d2101e377b3225f970168201dde0bf2ee967e24eed86548f9045eb72840afea6b
25 DIST boto3-1.9.122.tar.gz 258061 BLAKE2B 68903edd97e10693675e4c2fa77c2c54f2d3aab79307ee0a856f43aabe256f7782d027b0a23f433c593962c90f7364c26a87c27fe8770e67b5052e4ced73a9bc SHA512 31b8d8c2369b9076d825196d400c8a8b5579c38f87c7f41634eedbdaf6c2be01072018312e90e25d81b850c51f7c22a13fa565cd4e8b7672c238bad61e6a0810
26
27 diff --git a/dev-python/boto3/boto3-1.12.48.ebuild b/dev-python/boto3/boto3-1.12.48.ebuild
28 new file mode 100644
29 index 00000000000..d996a7288df
30 --- /dev/null
31 +++ b/dev-python/boto3/boto3-1.12.48.ebuild
32 @@ -0,0 +1,55 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +PYTHON_COMPAT=( python3_{6,7,8} )
38 +DISTUTILS_USE_SETUPTOOLS=bdepend
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="The AWS SDK for Python"
42 +HOMEPAGE="https://github.com/boto/boto3"
43 +LICENSE="Apache-2.0"
44 +SLOT="0"
45 +IUSE="test"
46 +
47 +if [[ "${PV}" == "9999" ]]; then
48 + EGIT_REPO_URI="https://github.com/boto/boto3"
49 + inherit git-r3
50 +else
51 + SRC_URI="https://github.com/boto/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
52 + KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
53 +fi
54 +
55 +RDEPEND="
56 + >=dev-python/botocore-1.15.48[${PYTHON_USEDEP}]
57 + >=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}]
58 + >=dev-python/s3transfer-0.3.0[${PYTHON_USEDEP}]
59 +"
60 +BDEPEND="
61 + test? ( ${RDEPEND}
62 + dev-python/mock[${PYTHON_USEDEP}]
63 + dev-python/nose[${PYTHON_USEDEP}]
64 + )
65 +"
66 +
67 +RESTRICT="!test? ( test )"
68 +
69 +distutils_enable_sphinx docs \
70 + 'dev-python/guzzle_sphinx_theme'
71 +
72 +python_prepare_all() {
73 + # don't lock versions to narrow ranges
74 + sed -e '/botocore/ d' \
75 + -e '/jmespath/ d' \
76 + -e '/s3transfer/ d' \
77 + -i setup.py || die
78 +
79 + # prevent an infinite loop
80 + rm tests/functional/docs/test_smoke.py || die
81 +
82 + distutils-r1_python_prepare_all
83 +}
84 +
85 +python_test() {
86 + nosetests -v tests/unit/ tests/functional/ || die "test failed under ${EPYTHON}"
87 +}