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: Fri, 25 Feb 2022 23:41:33
Message-Id: 1645829243.6bcb5a76562075ab4106d76198336727ca3b95ea.mgorny@gentoo
1 commit: 6bcb5a76562075ab4106d76198336727ca3b95ea
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 25 22:47:23 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 25 22:47:23 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bcb5a76
7
8 dev-python/boto3: Bump to 1.21.8
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.21.8.ebuild | 62 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 63 insertions(+)
15
16 diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest
17 index 2f77cc2f6386..9fc3a23275ec 100644
18 --- a/dev-python/boto3/Manifest
19 +++ b/dev-python/boto3/Manifest
20 @@ -11,3 +11,4 @@ DIST boto3-1.21.4.tar.gz 470233 BLAKE2B 3e6d8c5264ac66829e468633700e155ac935aae9
21 DIST boto3-1.21.5.tar.gz 470454 BLAKE2B 850f7237b8063f0cf40d53c986b94ef571e7aa7bdcfeb2b7d4aec54a1874b1c3c7e95cb4b317e8f0ea84a809083223d32c419291d7702b51781ef0140436cb45 SHA512 c10fb11ca3db4d23806232190b4f5431efedb8601af0aa28f6e62178ae98b2b22c73e05b4d91a9f7ea3e9dce15304397e780f396a155b0e02623590af87a9905
22 DIST boto3-1.21.6.tar.gz 471833 BLAKE2B 7e029b9bf460696344d26a863c4d96a2c9445ab3869aa17edc1ebb42d52260105406e7fb562046b395fd66a40ca6a15221c2ee1825caebebb27eadf667ba0bf6 SHA512 ae53081cb02588b0088b20ea75c6f09f9d4fcabb1c45d0aaeba9b92ea4c1e29bea7b5b9d08b4dc8a221d6126f71944083c4dc29490e8014e5780abadc45f2f7a
23 DIST boto3-1.21.7.tar.gz 472869 BLAKE2B 39ea1a39bb033678c50ec5a36d30c354d65397c3d3ec8a0f771a539a8f97371ab5feea8c3e99b77f460d6a6b81a8e1b3123ceb2edb1d97459755882e3e30e237 SHA512 46dc9cd67329a27171f593c9ad95bccad7027e52419178c62e719a90b968e4b4c51e965b26e8e1e877f3b95199e63840c408a763e453963e92cde16ad0c6aff5
24 +DIST boto3-1.21.8.tar.gz 473069 BLAKE2B f08f76fb9c4e56e6ba5624c885973599505769d7f9eea6e20a06e1a641768b1f7b108fc7293282a55bf4c7d2b62eb34853f46b8c3ada9afb8fc25624daa60c12 SHA512 23ed88dcaefe3224db05959251befaae4f03859bf00daf649db1e838e5fb92e01a6da4bee8083366d804404aac358df19d7e4552d6aaf39f9c4b371ccc7f9088
25
26 diff --git a/dev-python/boto3/boto3-1.21.8.ebuild b/dev-python/boto3/boto3-1.21.8.ebuild
27 new file mode 100644
28 index 000000000000..08e404dd41b6
29 --- /dev/null
30 +++ b/dev-python/boto3/boto3-1.21.8.ebuild
31 @@ -0,0 +1,62 @@
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..10} )
39 +inherit distutils-r1 multiprocessing
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 ~riscv ~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 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
67 + )
68 +"
69 +
70 +distutils_enable_sphinx docs/source \
71 + 'dev-python/guzzle_sphinx_theme'
72 +distutils_enable_tests pytest
73 +
74 +python_prepare_all() {
75 + # don't lock versions to narrow ranges
76 + sed -e '/botocore/ d' \
77 + -e '/jmespath/ d' \
78 + -e '/s3transfer/ d' \
79 + -i setup.py || die
80 +
81 + # do not rely on bundled deps in botocore (sic!)
82 + find -name '*.py' -exec sed -i \
83 + -e 's:from botocore[.]vendored import:import:' \
84 + -e 's:from botocore[.]vendored[.]:from :' \
85 + {} + || die
86 +
87 + distutils-r1_python_prepare_all
88 +}
89 +
90 +python_test() {
91 + epytest tests/{functional,unit} \
92 + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
93 +}