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: app-admin/awscli/
Date: Thu, 06 Jan 2022 20:52:29
Message-Id: 1641502340.5948756d0dcda61f8f00d14ca0f9b4f05bbb8338.mgorny@gentoo
1 commit: 5948756d0dcda61f8f00d14ca0f9b4f05bbb8338
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 6 19:06:30 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 6 20:52:20 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5948756d
7
8 app-admin/awscli: Bump to 1.22.29
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 app-admin/awscli/Manifest | 1 +
13 app-admin/awscli/awscli-1.22.29.ebuild | 58 ++++++++++++++++++++++++++++++++++
14 2 files changed, 59 insertions(+)
15
16 diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
17 index bcd145afad2f..82b2ad88083d 100644
18 --- a/app-admin/awscli/Manifest
19 +++ b/app-admin/awscli/Manifest
20 @@ -3,4 +3,5 @@ DIST awscli-1.22.23.tar.gz 2128226 BLAKE2B b572d21d2ba226871fd84eb33d44e65c3f5c0
21 DIST awscli-1.22.24.tar.gz 2128390 BLAKE2B 6b23a629a66e6f962b953fdc89ab1e81530806ba6120ae92022c8227e61f31aba53cea880d94b26d81ee4a7b62c57b39e45fdbd3e5ce1b9a929111ecc4b759b6 SHA512 846b5c0aa4121cd5975cadfa6a3800118b2fa3616d80dde7676043aa57142ae092debb1eb35f159db580104a03b20e2e02f57d73d7bad9f17f9931dab5b51435
22 DIST awscli-1.22.25.tar.gz 2130417 BLAKE2B 1c150feb135d662cbae1e51cd0cd41744472d8a33ff84948ef1a1d6e49ea36ec5e9d85a6f8176d928dc3d1a74961bf6116e4bb01e4256c7cf01059bfb7e3db66 SHA512 0055805213057247fad6a13cb9cd9a90796723411999a55aa7bcd9f7b014709127654313877833a1257a14a2a61770232d142943c5dfae91ee1d9de91efd81d5
23 DIST awscli-1.22.26.tar.gz 2131318 BLAKE2B 87651dc3a75bf0ca57142fb394b90ff3f60fbde724b7f6586c213fbf03169d5f4638133362b925a32235e518d7c8b56dea54a0bd224d4562a482e6303c7f81fb SHA512 276a137a3826922dc56316c59f46b1a741f57b5037a0a6345ece3732d31715e3fbf36faaa09b8969b161be2d54ef106c0cfd7bd6c3a3a31a540b8b42f9cf364c
24 +DIST awscli-1.22.29.tar.gz 2132978 BLAKE2B 67dd83bfd9799c3a49bc2439b29b581e21cd57c6d4c93f8b3073bfd83b0d6ebbc95abc074b6257407f03b2f98253ef099dd1a2a853c093338b2435a17bf9d02e SHA512 61b2117125031e945a2aaa4d20325d8cee0a56d7b5cdb9726f0d951b1bd0eedefc6264be8a1a890c9dfa4869500222a15a9b62f2935cf59f168bdd3d0022fba0
25 DIST awscli-1.22.5.tar.gz 2111679 BLAKE2B 970e472e8de43664d060023fdab9f54ce848c5655d8aa417efeae1b1efb52989fd021817521db9dc9cd64580cabbf0c30f3d0178034bdb1edf41feebbc690f46 SHA512 9177fe9da0fb8e9e28777bbf8f2c3fe089a08851b57a49fecefab43417fff187584638d17394289bf6df3d18d9052fd958bd3fbc8064327120af04a0cbe30494
26
27 diff --git a/app-admin/awscli/awscli-1.22.29.ebuild b/app-admin/awscli/awscli-1.22.29.ebuild
28 new file mode 100644
29 index 000000000000..5327b8227ea2
30 --- /dev/null
31 +++ b/app-admin/awscli/awscli-1.22.29.ebuild
32 @@ -0,0 +1,58 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +PYTHON_COMPAT=( python3_{8..10} )
39 +inherit bash-completion-r1 distutils-r1
40 +
41 +DESCRIPTION="Universal Command Line Environment for AWS"
42 +HOMEPAGE="https://pypi.org/project/awscli/"
43 +#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
44 +SRC_URI="https://github.com/aws/aws-cli/archive/${PV}.tar.gz -> ${P}.tar.gz"
45 +S="${WORKDIR}/aws-cli-${PV}"
46 +
47 +LICENSE="Apache-2.0"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~arm64 ~x86"
50 +
51 +# botocore is x.(y+1).z
52 +BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 1)).$(ver_cut 3-)"
53 +RDEPEND="
54 + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
55 + dev-python/colorama[${PYTHON_USEDEP}]
56 + dev-python/docutils[${PYTHON_USEDEP}]
57 + dev-python/rsa[${PYTHON_USEDEP}]
58 + >=dev-python/s3transfer-0.4.0[${PYTHON_USEDEP}]
59 + dev-python/pyyaml[${PYTHON_USEDEP}]
60 +"
61 +
62 +distutils_enable_tests --install pytest
63 +
64 +src_prepare() {
65 + # do not rely on bundled deps in botocore (sic!)
66 + find -name '*.py' -exec sed -i \
67 + -e 's:from botocore[.]vendored import:import:' \
68 + -e 's:from botocore[.]vendored[.]:from :' \
69 + {} + || die
70 + # strip overzealous upper bounds on requirements
71 + sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
72 + distutils-r1_src_prepare
73 +}
74 +
75 +python_test() {
76 + distutils_install_for_testing
77 + # integration tests require AWS credentials and Internet access
78 + epytest tests/{functional,unit}
79 +}
80 +
81 +python_install_all() {
82 + newbashcomp bin/aws_bash_completer aws
83 +
84 + insinto /usr/share/zsh/site-functions
85 + newins bin/aws_zsh_completer.sh _aws
86 +
87 + distutils-r1_python_install_all
88 +
89 + rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
90 +}