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: Tue, 07 Jun 2022 06:55:07
Message-Id: 1654584839.bb1c044e887f1ec423b8c795e693d2da7312fcd8.mgorny@gentoo
1 commit: bb1c044e887f1ec423b8c795e693d2da7312fcd8
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 7 05:20:36 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 7 06:53:59 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb1c044e
7
8 dev-python/boto3: Bump to 1.24.3
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.24.3.ebuild | 68 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 69 insertions(+)
15
16 diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest
17 index 92fd51e241cd..8b4c883ba174 100644
18 --- a/dev-python/boto3/Manifest
19 +++ b/dev-python/boto3/Manifest
20 @@ -1,2 +1,3 @@
21 DIST boto3-1.23.10.gh.tar.gz 504080 BLAKE2B 1840715ec72b10131a430abdb303adf7619fb4dc542cb22acefffe378c96d094eb7d024c068df1df48882a22fc52e3883791da39d0e4fb34abdddad4d78c0ce8 SHA512 88d0abfc990eba2118698c27fe9f556a2b2ef27d0e287c2b3d65a1d485d4be264a5e9ccc02c017c404941c34efdb5f9d480ceb7c5752f99ebf95d3fab184dded
22 DIST boto3-1.24.2.gh.tar.gz 505904 BLAKE2B e5fe9aa089caaa91aa41554a07ba97da55b04f5cc77be58df10ad4b6b9d3ab8ce22f988f658cb653d9f3890a307ea895c1cd57c30b6729ba12a1ee61f475ba1d SHA512 23b550194805859e37b8f3a7b75390bba500e7043e32930ab1ac46d2fca672472def9f4821e0deadaba6e6010afa05e4385a0f6fe229798250746b079fa27810
23 +DIST boto3-1.24.3.gh.tar.gz 506694 BLAKE2B 5049ad69810c0fcb4d4133fae8efb7d5f44a5b766c3a53710692136231c2f147b08a6782e51f12ab0e22189cb8bbaf90805ca03d0f6eeffe047678b1b21cf72f SHA512 7652ffbfb41df2dde924e85c251dba84643d67b719ea7dc366dcb0f6988815474b0e2a44dba74ebda5f9b1f5576df715dbd16b70ad4109e846766bf34e9d92d0
24
25 diff --git a/dev-python/boto3/boto3-1.24.3.ebuild b/dev-python/boto3/boto3-1.24.3.ebuild
26 new file mode 100644
27 index 000000000000..6edcc751d54b
28 --- /dev/null
29 +++ b/dev-python/boto3/boto3-1.24.3.ebuild
30 @@ -0,0 +1,68 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DISTUTILS_USE_PEP517=setuptools
37 +PYTHON_COMPAT=( python3_{8..11} )
38 +
39 +inherit distutils-r1 multiprocessing
40 +
41 +DESCRIPTION="The AWS SDK for Python"
42 +HOMEPAGE="
43 + https://github.com/boto/boto3/
44 + https://pypi.org/project/boto3/
45 +"
46 +LICENSE="Apache-2.0"
47 +SLOT="0"
48 +
49 +if [[ "${PV}" == "9999" ]]; then
50 + EGIT_REPO_URI="https://github.com/boto/boto3"
51 + inherit git-r3
52 + BOTOCORE_PV=${PV}
53 +else
54 + SRC_URI="
55 + https://github.com/boto/boto3/archive/${PV}.tar.gz
56 + -> ${P}.gh.tar.gz
57 + "
58 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
59 +
60 + # botocore is x.(y+3).z
61 + BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 3)).$(ver_cut 3-)"
62 +fi
63 +
64 +RDEPEND="
65 + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
66 + >=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}]
67 + >=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}]
68 +"
69 +BDEPEND="
70 + test? (
71 + dev-python/mock[${PYTHON_USEDEP}]
72 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
73 + )
74 +"
75 +
76 +distutils_enable_sphinx docs/source \
77 + 'dev-python/guzzle_sphinx_theme'
78 +distutils_enable_tests pytest
79 +
80 +python_prepare_all() {
81 + # don't lock versions to narrow ranges
82 + sed -e '/botocore/ d' \
83 + -e '/jmespath/ d' \
84 + -e '/s3transfer/ d' \
85 + -i setup.py || die
86 +
87 + # do not rely on bundled deps in botocore (sic!)
88 + find -name '*.py' -exec sed -i \
89 + -e 's:from botocore[.]vendored import:import:' \
90 + -e 's:from botocore[.]vendored[.]:from :' \
91 + {} + || die
92 +
93 + distutils-r1_python_prepare_all
94 +}
95 +
96 +python_test() {
97 + epytest tests/{functional,unit} -n "$(makeopts_jobs)"
98 +}