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: Tue, 03 May 2022 08:27:18
Message-Id: 1651566359.3f0ed6293361b77cf07570b7586d32eab985ed72.mgorny@gentoo
1 commit: 3f0ed6293361b77cf07570b7586d32eab985ed72
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 3 06:59:17 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 3 08:25:59 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f0ed629
7
8 app-admin/awscli: Bump to 1.23.5
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.23.5.ebuild | 71 +++++++++++++++++++++++++++++++++++
14 2 files changed, 72 insertions(+)
15
16 diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
17 index 1f9adcbe2b9c..80767b3273a9 100644
18 --- a/app-admin/awscli/Manifest
19 +++ b/app-admin/awscli/Manifest
20 @@ -3,5 +3,6 @@ DIST aws-cli-1.23.1.gh.tar.gz 2197883 BLAKE2B 1e43b70319d58e689e2ccad38e0b6177c8
21 DIST aws-cli-1.23.2.gh.tar.gz 2199816 BLAKE2B 7aef7ea7efb2b37b8d63fd64b2e86129d7588aa1d9b2a34d243cf99564be8dee282c4e48e08e900d0988dfe08eaa8af08cb7e79dee235354efb216db5bcb9996 SHA512 04c6324f02afe187c93827433184fbe0d2b82add88488becdcaedb904ddb10332dc93e0c995ef9467216ac19955318bdd9f128022aaa63245bc361ad2061bdc9
22 DIST aws-cli-1.23.3.gh.tar.gz 2200496 BLAKE2B 4c264c2e551af9df2f84d405a08f1e386da3da48b1b8c6be285bbcbf8d9cd05429828ccbf52a606f0a8e50d440c307d1b03ebf2cf8ca58460384fda4352cb8e2 SHA512 8aa1a0005a4c8be400d9684a92af412815007c8c6f4f7b74915781e8dbb1182de450db194d41a5fdeab68ee5bf9c49329927284305ac76171719e8a3325a9f48
23 DIST aws-cli-1.23.4.gh.tar.gz 2200991 BLAKE2B b70012a8dd83d46a460977063ad11111a7af728ee7e00f87cf5d559ff3e1a4eb1824580bfc5f869d749d0e75e336eb3a025a77f2b637a7306dc39fadba2382a1 SHA512 e949b4bf171e1ad4364ced1fbb7bec89d83077ee2de745dfc661fe1518476e7e07a29e58877adbe65c46398602af374d9af47ae976e7984b1ed2e59a67bd4f03
24 +DIST aws-cli-1.23.5.gh.tar.gz 2201321 BLAKE2B 280b0390c0e0759c0c7809b86de5be9356df2d8e46b9048964b717f8bb2cf53db80fe3268fc897bd0d46e74bff473214851806c3e60ba101a9885b3fa2a6bf55 SHA512 b964c8ded99b4320ad3197cd40e4da9afdd774fbcac872aa37b09d21df882226b3e3ee54af8cceb02ecf0fd5803c9deb2d1e9733e75bf0e14a7010b5a46bab21
25 DIST awscli-1.22.101.tar.gz 2196746 BLAKE2B 590938e722e9dff00bcdb4a266f7063bca4e890f5db5e52b56ed710f5777c6e9de3cfe1423cee9ae2cea74d624bdd665cd8af487aec1ba4e650279c700540545 SHA512 ab99b95c5252c48a7a1d10adb053c56e27139e35bb512ce854e90a433e2d028aed2a88f72e518b0f723dea147919961e7cc7f5d980342206e629f750b0fe77ec
26 DIST awscli-1.22.97.tar.gz 2193983 BLAKE2B f2e0efbb2332d4c405d5e97ba35426424d932a013114492890018d3419349e23aa3c8301f6c29bd8eaa662145b07ceaa30c22e41aad38012ca307400075600ca SHA512 00426aab19fcdf3241850b09d4d5dd6a1460e3ec9baa37cf203068dc6ca0fddd4fe3de7e4e93e8e6539608351777e00692bb8b9d2c362ceeacc55071cd53f422
27
28 diff --git a/app-admin/awscli/awscli-1.23.5.ebuild b/app-admin/awscli/awscli-1.23.5.ebuild
29 new file mode 100644
30 index 000000000000..acabee851193
31 --- /dev/null
32 +++ b/app-admin/awscli/awscli-1.23.5.ebuild
33 @@ -0,0 +1,71 @@
34 +# Copyright 1999-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +
39 +DISTUTILS_USE_PEP517=setuptools
40 +PYTHON_COMPAT=( python3_{8..10} )
41 +
42 +inherit bash-completion-r1 distutils-r1 multiprocessing
43 +
44 +MY_P=aws-cli-${PV}
45 +DESCRIPTION="Universal Command Line Environment for AWS"
46 +HOMEPAGE="
47 + https://github.com/aws/aws-cli/
48 + https://pypi.org/project/awscli/
49 +"
50 +SRC_URI="
51 + https://github.com/aws/aws-cli/archive/${PV}.tar.gz
52 + -> ${MY_P}.gh.tar.gz
53 +"
54 +S=${WORKDIR}/${MY_P}
55 +
56 +LICENSE="Apache-2.0"
57 +SLOT="0"
58 +KEYWORDS="~amd64 ~arm64 ~x86"
59 +
60 +# botocore is x.(y+2).z
61 +BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
62 +RDEPEND="
63 + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
64 + dev-python/colorama[${PYTHON_USEDEP}]
65 + dev-python/docutils[${PYTHON_USEDEP}]
66 + dev-python/rsa[${PYTHON_USEDEP}]
67 + >=dev-python/s3transfer-0.4.0[${PYTHON_USEDEP}]
68 + dev-python/pyyaml[${PYTHON_USEDEP}]
69 +"
70 +BDEPEND="
71 + test? (
72 + dev-python/pytest-forked[${PYTHON_USEDEP}]
73 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
74 + )
75 +"
76 +
77 +distutils_enable_tests pytest
78 +
79 +src_prepare() {
80 + # do not rely on bundled deps in botocore (sic!)
81 + find -name '*.py' -exec sed -i \
82 + -e 's:from botocore[.]vendored import:import:' \
83 + -e 's:from botocore[.]vendored[.]:from :' \
84 + {} + || die
85 + # strip overzealous upper bounds on requirements
86 + sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
87 + distutils-r1_src_prepare
88 +}
89 +
90 +python_test() {
91 + # integration tests require AWS credentials and Internet access
92 + epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
93 +}
94 +
95 +python_install_all() {
96 + newbashcomp bin/aws_bash_completer aws
97 +
98 + insinto /usr/share/zsh/site-functions
99 + newins bin/aws_zsh_completer.sh _aws
100 +
101 + distutils-r1_python_install_all
102 +
103 + rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
104 +}