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, 25 Aug 2022 19:25:30
Message-Id: 1661455450.749fd0fa9f9a4da195cb161b8f14fd8c40f3b2e9.arthurzam@gentoo
1 commit: 749fd0fa9f9a4da195cb161b8f14fd8c40f3b2e9
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 25 19:24:10 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 25 19:24:10 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=749fd0fa
7
8 dev-python/boto3: add 1.24.59
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.59.ebuild | 68 +++++++++++++++++++++++++++++++++++
14 2 files changed, 69 insertions(+)
15
16 diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest
17 index 2cfd609ca58a..1e8754b3187b 100644
18 --- a/dev-python/boto3/Manifest
19 +++ b/dev-python/boto3/Manifest
20 @@ -12,3 +12,4 @@ DIST boto3-1.24.55.gh.tar.gz 529245 BLAKE2B 02a5bdbabcabc7019728da0be14d02c3e64a
21 DIST boto3-1.24.56.gh.tar.gz 529533 BLAKE2B 7d41281f9cc645e8ca83a71e6eabf1d54373208488cc14bd723b32f56a4e2e1d3b4fa407ab495a9409ae9635f1dc2b7ce2fdebc9bfd1c263e0d9b29d5925daec SHA512 ffc86fbf45fa1264f26474115edcee3f62abc93e0a23fd7ca800c1995924e4cf71e84f852d28217863427061646d1ffd9e24d68d1c531d8b480d126e449f76f0
22 DIST boto3-1.24.57.gh.tar.gz 530363 BLAKE2B a2f3f39f0de79fc68a32da9bacbef863c705cace82ec4650e17ab89b14f73a456b3583fa3376dc6a62139986063fe0bfade5511fea21d0490c57f9fb65cae425 SHA512 5dd4f0c53f772f5d8d2519e5b1230c5918537af7a265a64670996ff2384e2f8e226d33e91ad4491ce00932d8f99d61d6819ce0d10b0f493a514cef2183ac839c
23 DIST boto3-1.24.58.gh.tar.gz 530450 BLAKE2B 82746de410c03fd0757d088781a5a2ab8d60e3c63bed127f617aec0ccb1eafd7064aed6087f912466db37c257e02ba7328e5408573c0e429284893c3c8605803 SHA512 1d7f5335cd7c7683224d503f9b2787d8dc4a345cc4d13a2dcfab9e709652ffe5cef8b8866d7a3e0218a7efc30d1029a24bad1d8edf9d47911dead3f2d98435af
24 +DIST boto3-1.24.59.gh.tar.gz 531080 BLAKE2B a5efbe215f2a88c6a48640a4b459c426ce3954a2337c84626f39228437d392fab8ec1cf4aaf53887db00bba70500a57ddfd0752d0f09226c78f70d5875ec852a SHA512 6999fc12826072cfd1b06a89a323cc9f28a0874cca07b1ffd94e223e717cc874701f57c1d7b4f63724e329c1f51522631502e8ef19f640fe75c8c4c14e7ff38c
25
26 diff --git a/dev-python/boto3/boto3-1.24.59.ebuild b/dev-python/boto3/boto3-1.24.59.ebuild
27 new file mode 100644
28 index 000000000000..6edcc751d54b
29 --- /dev/null
30 +++ b/dev-python/boto3/boto3-1.24.59.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 +}