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: Thu, 02 Mar 2023 05:13:16
Message-Id: 1677730964.de731d9b8d2eaa57b896d0a089a9ad02ce1576dd.mgorny@gentoo
1 commit: de731d9b8d2eaa57b896d0a089a9ad02ce1576dd
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 2 04:22:44 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 2 04:22:44 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de731d9b
7
8 dev-python/boto3: Bump to 1.26.82
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.82.ebuild | 68 +++++++++++++++++++++++++++++++++++
14 2 files changed, 69 insertions(+)
15
16 diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest
17 index 5bfc5322a756..78f40df0f997 100644
18 --- a/dev-python/boto3/Manifest
19 +++ b/dev-python/boto3/Manifest
20 @@ -2,3 +2,4 @@ DIST boto3-1.26.74.gh.tar.gz 602525 BLAKE2B 6d9b397864649ecd9b3f46bcee832c57cdce
21 DIST boto3-1.26.79.gh.tar.gz 605312 BLAKE2B c36b86ab289be9c08a1ab43274a4f4db71cede08598b6f8092af8404bc9994e345b263b144ee3a1974ea276fce63c330d7ffa6335bb889bea32e380e9003a8c7 SHA512 cfc789296b904c0c3bd3999153067f4fb174b323f0fbd22e8f4a49aed98338e20fd238876e2f55f608f5d6b60b584e15d370400e8d0a8a00b0689e0867d00f05
22 DIST boto3-1.26.80.gh.tar.gz 606204 BLAKE2B ae80c1ec7e99f48844c4eec39df1f6802df1fbbf2d94f1b7ddc04c7a21cb885823ebadb11cf9e81b51af9aa5f09775c02e52e926b94c49331307873b86702446 SHA512 e4ab89f2afe506d7d1ba9e1615e3a92ba4bf5dc9a85d3a14f034c1b14733d99cebf594bb6dc80914bf444da34d09c045c8933cf3c97e6ccfa9e31901e99d76ee
23 DIST boto3-1.26.81.gh.tar.gz 611431 BLAKE2B e3f607e4bbd4ae7002168a697c6c3081b3713acbf7d7c8abdb1016b63f9ac5b16ae44255f707272db6a7b4c657210af0ed1c355889b01434683889b28de9d4e7 SHA512 30faa2d60f5f661e4d56a57c5b9d258ad3de260be2a21723b921f2383e290ca0b3d417a4a970ba3defd8f8196deaade2741117393c664b5fe267deab2e210e06
24 +DIST boto3-1.26.82.gh.tar.gz 611850 BLAKE2B fbf4581d616c6978482689e42a5cf8dc846ef91c77bd9f94298bed1ec50cdf41bc999ee81a1dd43b697da282f2774133daf6c6789d7d78b78aeb272c42f91f56 SHA512 8dc96da11d6da19610810c850c69070d25629e583f4eda822c218f4ad09295d25d3ae689a321c6a0c5f0c27e34717c44eb708950b4f37fe1d27f1f48205e5870
25
26 diff --git a/dev-python/boto3/boto3-1.26.82.ebuild b/dev-python/boto3/boto3-1.26.82.ebuild
27 new file mode 100644
28 index 000000000000..9523f65d5fb9
29 --- /dev/null
30 +++ b/dev-python/boto3/boto3-1.26.82.ebuild
31 @@ -0,0 +1,68 @@
32 +# Copyright 1999-2023 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_{10..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 +}