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, 01 Sep 2022 19:42:15
Message-Id: 1662061315.327fd33a3ae68ef0105df3771c4b82fd8f3ee212.arthurzam@gentoo
1 commit: 327fd33a3ae68ef0105df3771c4b82fd8f3ee212
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 1 19:15:29 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 1 19:41:55 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=327fd33a
7
8 dev-python/boto3: add 1.24.64
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.64.ebuild | 68 +++++++++++++++++++++++++++++++++++
14 2 files changed, 69 insertions(+)
15
16 diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest
17 index 6a149978ac92..12c9b29b23aa 100644
18 --- a/dev-python/boto3/Manifest
19 +++ b/dev-python/boto3/Manifest
20 @@ -1,3 +1,4 @@
21 DIST boto3-1.24.56.gh.tar.gz 529533 BLAKE2B 7d41281f9cc645e8ca83a71e6eabf1d54373208488cc14bd723b32f56a4e2e1d3b4fa407ab495a9409ae9635f1dc2b7ce2fdebc9bfd1c263e0d9b29d5925daec SHA512 ffc86fbf45fa1264f26474115edcee3f62abc93e0a23fd7ca800c1995924e4cf71e84f852d28217863427061646d1ffd9e24d68d1c531d8b480d126e449f76f0
22 DIST boto3-1.24.61.gh.tar.gz 531957 BLAKE2B b8cff8dea6b74ce1238a734cf1e2fb41ede27243216bf6c5b0e0d99a43948a6dc6999fe3ff0a13616b3a4ba0e1c675963faef5a299b9c1a86e3713eee9f07741 SHA512 7d957b9c9a120698fb2f7d1368500e456ea5e7834e4fc09c1680333b16056f089eea60480e50919c1dcc4596c72e43a74f6b57d433ed01f1ef53c7804b6dc2dc
23 DIST boto3-1.24.63.gh.tar.gz 533004 BLAKE2B f678fbea81cf1be2f28d2463fbf50ff841d0a2c027f2f80cb99364b686aa8b72cd02345e6f8532e2d3b2b6c4a676f50640e1c3d3fc50d53a1aa549d90b8f7bc0 SHA512 771b3911180df5bc85b0ee1a4b8762bf387a1f55f37501b8b10bb3971e5cfb91fb072c4f9ea405d16b6351b1d34c8dce6e9564dfabd2414f6162ca8cc5ba3bc9
24 +DIST boto3-1.24.64.gh.tar.gz 533638 BLAKE2B 1cf4774e17226b453aec3203eea6f343e0921f0ec95669a13788303176da571d467fdf6d558201b449a426e450bfd932b0a79f773f029495e3be6451c07ab9f9 SHA512 6d844b57cf751ff40ad7efa3b4f1f2ec3f00aca2cdf43524a30282a4347f52e1e7cb7762085740b9c3d5e16331b5a1b6b1e2de09904f7d1fabde903c8f8258c3
25
26 diff --git a/dev-python/boto3/boto3-1.24.64.ebuild b/dev-python/boto3/boto3-1.24.64.ebuild
27 new file mode 100644
28 index 000000000000..6edcc751d54b
29 --- /dev/null
30 +++ b/dev-python/boto3/boto3-1.24.64.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 +}