Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/boto3/
Date: Thu, 18 Aug 2022 18:11:53
Message-Id: 1660846296.c280ed9134261c883483b42fd25214684218b763.arthurzam@gentoo
1 commit: c280ed9134261c883483b42fd25214684218b763
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 18 17:03:46 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 18 18:11:36 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c280ed91
7
8 dev-python/boto3: add 1.24.54
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/boto3/Manifest | 1 +
13 dev-python/boto3/boto3-1.24.54.ebuild | 68 +++++++++++++++++++++++++++++++++++
14 2 files changed, 69 insertions(+)
15
16 diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest
17 index 197184c77142..616059cae3b8 100644
18 --- a/dev-python/boto3/Manifest
19 +++ b/dev-python/boto3/Manifest
20 @@ -7,3 +7,4 @@ DIST boto3-1.24.50.gh.tar.gz 526501 BLAKE2B 4ff77e527a990be760296471f6695eac1604
21 DIST boto3-1.24.51.gh.tar.gz 526840 BLAKE2B e796ee5c68260b1b125e658b80b74e2f76e611b4e317abf716a9b42da74ede88a17032d7035585bc92e029a1a8236443faf9aa2c52c541e421ee98fdf78e9769 SHA512 2f05f422dbe347940ce2fef0d2a55b79f26077237b6171a17f77dc5e97af4b9d796748ef854020e06a7f8e895b462eb55a4b1f9f1f02b20a68fb3ee4bbb76bb3
22 DIST boto3-1.24.52.gh.tar.gz 527776 BLAKE2B 301c8c8fe2a5b75af1aa34d72df8e16ecf9f547428f42dfda9c25d19f29fb6f955ea457cf5b61cced45f36e008073bab02a93e955dea2749a2dcaa881e1f2b79 SHA512 1a7fb5aa77f7bccc1a9f58c3d4149ff653b0e4cb22dd2a47bf255d09ba09ccba2dabba32d444c85b78762d1b140b538da5b274546e2883a00f849d6fca0a1a91
23 DIST boto3-1.24.53.gh.tar.gz 527969 BLAKE2B f0075c531876176c11a874398f2935a7ced0e42b233941825e1d926d8ad0ab76f594edc14eaafc80a47c9f6b030df5ea04a555d57de101b28096d67eda693409 SHA512 b1186ef0f1d9c3f1f7b0bd651882c0f771c2de280a66ba2b2d03f4ef0cb8e9c2d0c7544fad2cb72706d0576a3871bc26b42ea4a711647fac3837a6f1e1fc3d9f
24 +DIST boto3-1.24.54.gh.tar.gz 528596 BLAKE2B a34f5bdd4a72aecaa40b9235696b502702c39a14fc4dc23fc03d4abfc2fe763c278e00b20f04b1167a5acedb77c6c149cdd053eb7ed2dd4ed4333790b4fc0ab7 SHA512 82f77416f0ae1bfadfe59764ec2e956e1533359c4cd28ea82d955c1b909d8057e5cfb2588ad14d8edf54ad44b623ce17fe7bdbd976e1928bcd8f8cdf6d7a9489
25
26 diff --git a/dev-python/boto3/boto3-1.24.54.ebuild b/dev-python/boto3/boto3-1.24.54.ebuild
27 new file mode 100644
28 index 000000000000..6edcc751d54b
29 --- /dev/null
30 +++ b/dev-python/boto3/boto3-1.24.54.ebuild
31 @@ -0,0 +1,68 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DISTUTILS_USE_PEP517=setuptools
38 +PYTHON_COMPAT=( python3_{8..11} )
39 +
40 +inherit distutils-r1 multiprocessing
41 +
42 +DESCRIPTION="The AWS SDK for Python"
43 +HOMEPAGE="
44 + https://github.com/boto/boto3/
45 + https://pypi.org/project/boto3/
46 +"
47 +LICENSE="Apache-2.0"
48 +SLOT="0"
49 +
50 +if [[ "${PV}" == "9999" ]]; then
51 + EGIT_REPO_URI="https://github.com/boto/boto3"
52 + inherit git-r3
53 + BOTOCORE_PV=${PV}
54 +else
55 + SRC_URI="
56 + https://github.com/boto/boto3/archive/${PV}.tar.gz
57 + -> ${P}.gh.tar.gz
58 + "
59 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
60 +
61 + # botocore is x.(y+3).z
62 + BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 3)).$(ver_cut 3-)"
63 +fi
64 +
65 +RDEPEND="
66 + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
67 + >=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}]
68 + >=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}]
69 +"
70 +BDEPEND="
71 + test? (
72 + dev-python/mock[${PYTHON_USEDEP}]
73 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
74 + )
75 +"
76 +
77 +distutils_enable_sphinx docs/source \
78 + 'dev-python/guzzle_sphinx_theme'
79 +distutils_enable_tests pytest
80 +
81 +python_prepare_all() {
82 + # don't lock versions to narrow ranges
83 + sed -e '/botocore/ d' \
84 + -e '/jmespath/ d' \
85 + -e '/s3transfer/ d' \
86 + -i setup.py || die
87 +
88 + # do not rely on bundled deps in botocore (sic!)
89 + find -name '*.py' -exec sed -i \
90 + -e 's:from botocore[.]vendored import:import:' \
91 + -e 's:from botocore[.]vendored[.]:from :' \
92 + {} + || die
93 +
94 + distutils-r1_python_prepare_all
95 +}
96 +
97 +python_test() {
98 + epytest tests/{functional,unit} -n "$(makeopts_jobs)"
99 +}