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, 29 Dec 2022 05:22:39
Message-Id: 1672289845.366391fdc329b712a3264431acfb82d27a77ad11.mgorny@gentoo
1 commit: 366391fdc329b712a3264431acfb82d27a77ad11
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 29 04:57:25 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 29 04:57:25 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=366391fd
7
8 dev-python/boto3: Bump to 1.26.39
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.39.ebuild | 68 +++++++++++++++++++++++++++++++++++
14 2 files changed, 69 insertions(+)
15
16 diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest
17 index 64f56f6df122..6a2ee3ce7c8d 100644
18 --- a/dev-python/boto3/Manifest
19 +++ b/dev-python/boto3/Manifest
20 @@ -7,3 +7,4 @@ DIST boto3-1.26.34.gh.tar.gz 582767 BLAKE2B 279138d5b6093a16d54bd14bab6e9e4c4901
21 DIST boto3-1.26.36.gh.tar.gz 584205 BLAKE2B d5aad2ab0b8ee3392c636309454859e30cbe937d0dc2efb4b5a817fc83c555e5592ec8a8ae94a273ab2ab55be5d627b44475d0b5ca77caebc246229e3f78b155 SHA512 818843d82b27ee2e376382f1a74a950cbacf04a588bdc012e8c88d569ad5571d231a2dd399a3e26efc3de96c89f722ceabc3e70eb3cdba930c08277fa6c2c189
22 DIST boto3-1.26.37.gh.tar.gz 584822 BLAKE2B 08c08502f3defee6365aa19a55cb5bb6c006ce9685421119d1469f90f35e0aeb49fc11a6c5dd133cdfe1138248c0952338adb7b864010825f6f32f40398c2f4f SHA512 4c73b45cae0ed42f219b77d5b58f26560f3ac660d66eaea0c8452053ed38b4c8cc7ab168062483a52e091f7241623466a473368e0545a9fa07c0ac12d0185e31
23 DIST boto3-1.26.38.gh.tar.gz 585100 BLAKE2B 22bbaad5e5ba59c29300ac1331e570b763d7544c9feddff307b2eba3e3da9076c6d64ed189d115ff63fd2deb156f6edd2a767121489c5d02e9ee0b897cb39712 SHA512 f97bd9cffd6d4c4d03841038940edb592962b72a3595e9255fc0af491aee1eb1742e819861c8f207383062f6ec284f8ecc37e9a30c59eb1e7702066b4a7c988f
24 +DIST boto3-1.26.39.gh.tar.gz 585471 BLAKE2B acf5631bccdc96f540bdd9396084f09d0b3d070f6b0d3a85267eeb54b1c1b1e5e38b662114dd8a52fb839f168f6d5694647a87559c389f4acbc23ee6bc0dd38d SHA512 d795dd9a553932d75317cf0f528757be201e6655e088499733318068fd8d15bb04dc67d370b1d5160b46eb3fc4ed489dc66181ac12e2d91c0b3a3c86043abdd0
25
26 diff --git a/dev-python/boto3/boto3-1.26.39.ebuild b/dev-python/boto3/boto3-1.26.39.ebuild
27 new file mode 100644
28 index 000000000000..aa8071e64d5e
29 --- /dev/null
30 +++ b/dev-python/boto3/boto3-1.26.39.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_{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 +}