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