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, 22 Jul 2021 07:25:36
Message-Id: 1626938720.088b7f8479a81d085b7bdcda4bc262e975abb67a.mgorny@gentoo
1 commit: 088b7f8479a81d085b7bdcda4bc262e975abb67a
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 22 06:50:31 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 22 07:25:20 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=088b7f84
7
8 app-admin/awscli: Bump to 1.20.4
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.20.4.ebuild | 58 +++++++++++++++++++++++++++++++++++
14 2 files changed, 59 insertions(+)
15
16 diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
17 index 384a962484f..9927e009f01 100644
18 --- a/app-admin/awscli/Manifest
19 +++ b/app-admin/awscli/Manifest
20 @@ -4,3 +4,4 @@ DIST awscli-1.20.0.tar.gz 2028152 BLAKE2B d746335fc3414e773fbf3cb60b68ea1242162c
21 DIST awscli-1.20.1.tar.gz 2028927 BLAKE2B bd535f1eba64987c8389c8003b90a1361e95db00a62f13138b35d0f4b6a5130b2e52e38663f4560bf58fe6b86e668ee142a0228001d8cde583d096ce81612264 SHA512 b704ff3f482dd2ccfdf78d01ccff214c9cb9f7b12b1af0a7c615b9567a931a8bc47a444dd8f136a958346750a60fb03a084993a7deb0c234448a9889918c97e6
22 DIST awscli-1.20.2.tar.gz 2029411 BLAKE2B dad47f749af3c1e7bbeb291eb92889c7dc9bdc9e81ddb1fd3769897f94ba549123589a2ef8a34b88d8370cc6bb5ad45cc7b9fa06ec474620303a78ec3d64100e SHA512 6384a02a7bd3a8ea38cf46725daa25e7656e12c1f3f6465043efc223a82c605dbc916a26debc214ff6d364e81013e729acac424ccccc535785e8a3b68cfce2f6
23 DIST awscli-1.20.3.tar.gz 2029411 BLAKE2B 6d8573709072ea3955696de0c65a32610446737a216f6c5dd4ecae4cffcb48ecac531cfc598517c037066d066cf0de01510c0740949450ad3a5925af79bd8c16 SHA512 2324800964de8b1af4ae39dcee15e8fc2bd5e11a239c245590a86fac6574d80b290fb9d967df82d6fdd412cd8b783fd209780e5e58846a16302fa13c6f3b93fb
24 +DIST awscli-1.20.4.tar.gz 2043470 BLAKE2B 58722fe4277a7950665913e8b9ae99de8017cfe8c4974a3524f917533499e830d2eea2ac0994022796b979869468b5f3a767727b4384f78e325e423ed003b1b3 SHA512 3066438ac58eb2afb83ae6fef516e09965ceea1e97897e4f5b5760046f28a2f822b16b90c0a9ee6a58c6cdabbfb2f0ce044caf41396093188290e2a7c1e8c4f3
25
26 diff --git a/app-admin/awscli/awscli-1.20.4.ebuild b/app-admin/awscli/awscli-1.20.4.ebuild
27 new file mode 100644
28 index 00000000000..ff429f8d3a3
29 --- /dev/null
30 +++ b/app-admin/awscli/awscli-1.20.4.ebuild
31 @@ -0,0 +1,58 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="7"
36 +
37 +PYTHON_COMPAT=( python3_{8..10} )
38 +
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 +BDEPEND="
62 + test? (
63 + dev-python/mock[${PYTHON_USEDEP}]
64 + )
65 +"
66 +
67 +distutils_enable_tests --install nose
68 +
69 +PATCHES=(
70 + "${FILESDIR}"/awscli-1.19.47-py39.patch
71 +)
72 +
73 +python_test() {
74 + distutils_install_for_testing
75 + # integration tests require AWS credentials and Internet access
76 + nosetests -v tests/{functional,unit} ||
77 + die "Tests failed for ${EPYTHON}"
78 +}
79 +
80 +python_install_all() {
81 + newbashcomp bin/aws_bash_completer aws
82 +
83 + insinto /usr/share/zsh/site-functions
84 + newins bin/aws_zsh_completer.sh _aws
85 +
86 + distutils-r1_python_install_all
87 +
88 + rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
89 +}