Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/boto3/
Date: Mon, 06 Dec 2021 23:07:27
Message-Id: 1638832038.29df710c20bbae4370449c2e5f94fcbd29b45150.mgorny@gentoo
1 commit: 29df710c20bbae4370449c2e5f94fcbd29b45150
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 6 22:17:15 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 6 23:07:18 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29df710c
7
8 dev-python/boto3: Bump to 1.20.21
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/boto3/Manifest | 1 +
13 dev-python/boto3/boto3-1.20.21.ebuild | 59 +++++++++++++++++++++++++++++++++++
14 2 files changed, 60 insertions(+)
15
16 diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest
17 index b90a56fd8df1..1fdab50e8c89 100644
18 --- a/dev-python/boto3/Manifest
19 +++ b/dev-python/boto3/Manifest
20 @@ -5,4 +5,5 @@ DIST boto3-1.20.17.tar.gz 452876 BLAKE2B ff59e490e5938bea7cdd0ae54f82c33d410b42b
21 DIST boto3-1.20.18.tar.gz 454201 BLAKE2B f6e87d93fcfe525deb34166310cb830547a8d51280b48005d25a9bfa5852a1a577bccb91f2fe0825991ef4f4b5a1340b6f0b505be864338386f2e02b522a2236 SHA512 22b349efbfcc2a4e7dd9be8a8f19ff5a399c7b474ac615f065e2fe62217ed1d94951744e9ba266c85650ff92c7b2183c3916f3d39f62d0d685742344b2500992
22 DIST boto3-1.20.19.tar.gz 454558 BLAKE2B e1d08d2508bee7b22af370b4566d4f1b5e65b42b3993f4e5bdf7398703381e34c7da0f497506972643ccda12a746848a2198deb01990d08740b9ea278e1b26d3 SHA512 0df24734b3961a49380b39325278a3fb50e66c21fb5dbacf1133ef0e4ced1f7058c990b48e1dd0fc7c949fdd5f5674810b5e311df0e5a862d3877d41eb6475ab
23 DIST boto3-1.20.20.tar.gz 454638 BLAKE2B 031f919d5c75423b14fe04712bbe93c8c0b43ecc016b096ec54a9414a6277c200e0e4256404ed1c20d7647fb0ae5c7b122b6b1ce09cf7b8fbaa4f08fb8bb1a7c SHA512 fdafbf82f9a0671d0483dced01dcdd895a097b461ab137f182af8d5bda25447c681b12ef5806d530e32219c6a30e7561b29bd9d61ded9faa524617b86ee95665
24 +DIST boto3-1.20.21.tar.gz 455027 BLAKE2B 034fd322a3c304f1d8074f89ec12678e964983abc47b5484a19e8c9c9e793ab66a2240f26167e581028b32341f3c938d1d4cd2ad3b1e00033308d44c50e4ab94 SHA512 b9823f6fe651d9d74034a1e2178b372d01d56fcb1c45d9436d2d8d8347ff7cdf5c156e43f3212ff273d89bfd71f838e4c24c0e1c01bd2fc8d5cdc1027db5dd47
25 DIST boto3-1.20.5.tar.gz 439166 BLAKE2B c140e15e497e6cdf6b4b77bb99e0a0f5ac01d5b5793f8bfb210b52bbc09e39e6fe06a957951375e0795210dc1c3b2a0afd2f498bc88e449d9e6846f2b357f016 SHA512 2823466e4851684253d4ce42a8c34e5cbdad6d04c823040fe2cebdf0cffb14d5d3f40e28d57ebec14533fab04ba74f27c25f078ddb8791b8f52d0424e11b39fc
26
27 diff --git a/dev-python/boto3/boto3-1.20.21.ebuild b/dev-python/boto3/boto3-1.20.21.ebuild
28 new file mode 100644
29 index 000000000000..a4f6b1d0f3c2
30 --- /dev/null
31 +++ b/dev-python/boto3/boto3-1.20.21.ebuild
32 @@ -0,0 +1,59 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +PYTHON_COMPAT=( python3_{8..10} )
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 +
46 +if [[ "${PV}" == "9999" ]]; then
47 + EGIT_REPO_URI="https://github.com/boto/boto3"
48 + inherit git-r3
49 + BOTOCORE_PV=${PV}
50 +else
51 + SRC_URI="https://github.com/boto/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
52 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
53 +
54 + # botocore is x.(y+3).z
55 + BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 3)).$(ver_cut 3-)"
56 +fi
57 +
58 +RDEPEND="
59 + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
60 + >=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}]
61 + >=dev-python/s3transfer-0.3.0[${PYTHON_USEDEP}]
62 +"
63 +BDEPEND="
64 + test? (
65 + dev-python/mock[${PYTHON_USEDEP}]
66 + )
67 +"
68 +
69 +distutils_enable_sphinx docs/source \
70 + 'dev-python/guzzle_sphinx_theme'
71 +distutils_enable_tests pytest
72 +
73 +python_prepare_all() {
74 + # don't lock versions to narrow ranges
75 + sed -e '/botocore/ d' \
76 + -e '/jmespath/ d' \
77 + -e '/s3transfer/ d' \
78 + -i setup.py || die
79 +
80 + # do not rely on bundled deps in botocore (sic!)
81 + find -name '*.py' -exec sed -i \
82 + -e 's:from botocore[.]vendored import:import:' \
83 + -e 's:from botocore[.]vendored[.]:from :' \
84 + {} + || die
85 +
86 + distutils-r1_python_prepare_all
87 +}
88 +
89 +python_test() {
90 + epytest tests/{functional,unit}
91 +}