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, 08 Apr 2022 08:56:53
Message-Id: 1649408194.408df736e5956d054d5f80ddc276c6883049ec8d.mgorny@gentoo
1 commit: 408df736e5956d054d5f80ddc276c6883049ec8d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 8 07:47:21 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 8 08:56:34 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=408df736
7
8 dev-python/boto3: Bump to 1.21.36
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.36.ebuild | 63 +++++++++++++++++++++++++++++++++++
14 2 files changed, 64 insertions(+)
15
16 diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest
17 index d98d16eea233..9ff081694e8c 100644
18 --- a/dev-python/boto3/Manifest
19 +++ b/dev-python/boto3/Manifest
20 @@ -2,3 +2,4 @@ DIST boto3-1.21.22.tar.gz 479768 BLAKE2B 3ae647a4c06cb9f7c4c32216dba439ce8bbf346
21 DIST boto3-1.21.27.tar.gz 482968 BLAKE2B f8dbabe73377a861cf1d3d2e9388f7ba91f2047d8ce792b44a10693e5b0575924b3abbd8ec2b72d0c3b9a553bb088fc17dc4cd23b571f375db45737376931a46 SHA512 54bb43022ba12fc7b5c54872632cd46c07c6f167246917b5413cdd30de6c327bc625410cdfe62f4ff257ad7c42da762d2bcec5515367e214131259ddc69a9061
22 DIST boto3-1.21.32.tar.gz 485694 BLAKE2B da6fa6f38b234af9e67bfeb8182751f1ac533a2aea72d8d407aea21554501f598c9da71f3c30dd952248c1ab244c849b779a329fc941d05b53325fe46de2aba4 SHA512 d65cffa91ae1a29e69e4bac2fc0af704987e9bca914f3f905e00c383bc92127c6e41beed71e9445e3f484c6dadde2372aca69f550af600abbb42731275c53eda
23 DIST boto3-1.21.35.tar.gz 486835 BLAKE2B 167070bf09785bac17083cef3caf144cf11a4266c4476af2f6e19b06c81f2d2bcee42b8c7de1d1c9ac178c025bcac08366b2c7cb072cdb663910d45f7e8369fa SHA512 fe73111a46fb27d9c77abec3a13c5267243b2fcc3f89c01d9036f6ca9f362d029c9cbfbb6c1df11b302a9fb0468453fc1b91ee3dac4853bab6662f1ebfa211b2
24 +DIST boto3-1.21.36.tar.gz 487111 BLAKE2B c812e80a2bd81f2feda25b9e43444d1587eb2706ab4372a71f6aad5051020dc2439c639e04f37322ab0c1a396c22c5dc45e773cf73518886d3aab9980633f45c SHA512 1530cd11471ddfdd6a77a250fc5af7546a760cc281b327be6b67b7e49ab40cdc440d4fbe8a72387009b2c2c3dc2e6d7baaa3b1dec3d5d4d276db89e1312e55cf
25
26 diff --git a/dev-python/boto3/boto3-1.21.36.ebuild b/dev-python/boto3/boto3-1.21.36.ebuild
27 new file mode 100644
28 index 000000000000..6fcba460ab1d
29 --- /dev/null
30 +++ b/dev-python/boto3/boto3-1.21.36.ebuild
31 @@ -0,0 +1,63 @@
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 +
40 +inherit distutils-r1 multiprocessing
41 +
42 +DESCRIPTION="The AWS SDK for Python"
43 +HOMEPAGE="https://github.com/boto/boto3"
44 +LICENSE="Apache-2.0"
45 +SLOT="0"
46 +
47 +if [[ "${PV}" == "9999" ]]; then
48 + EGIT_REPO_URI="https://github.com/boto/boto3"
49 + inherit git-r3
50 + BOTOCORE_PV=${PV}
51 +else
52 + SRC_URI="https://github.com/boto/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
53 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
54 +
55 + # botocore is x.(y+3).z
56 + BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 3)).$(ver_cut 3-)"
57 +fi
58 +
59 +RDEPEND="
60 + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
61 + >=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}]
62 + >=dev-python/s3transfer-0.3.0[${PYTHON_USEDEP}]
63 +"
64 +BDEPEND="
65 + test? (
66 + dev-python/mock[${PYTHON_USEDEP}]
67 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
68 + )
69 +"
70 +
71 +distutils_enable_sphinx docs/source \
72 + 'dev-python/guzzle_sphinx_theme'
73 +distutils_enable_tests pytest
74 +
75 +python_prepare_all() {
76 + # don't lock versions to narrow ranges
77 + sed -e '/botocore/ d' \
78 + -e '/jmespath/ d' \
79 + -e '/s3transfer/ d' \
80 + -i setup.py || die
81 +
82 + # do not rely on bundled deps in botocore (sic!)
83 + find -name '*.py' -exec sed -i \
84 + -e 's:from botocore[.]vendored import:import:' \
85 + -e 's:from botocore[.]vendored[.]:from :' \
86 + {} + || die
87 +
88 + distutils-r1_python_prepare_all
89 +}
90 +
91 +python_test() {
92 + epytest tests/{functional,unit} \
93 + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
94 +}