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: Mon, 13 Sep 2021 20:31:23
Message-Id: 1631565068.5f17bf6c4804e73ca124728d91e6171e38ece7b0.mgorny@gentoo
1 commit: 5f17bf6c4804e73ca124728d91e6171e38ece7b0
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 13 20:00:45 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 13 20:31:08 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f17bf6c
7
8 app-admin/awscli: Bump to 1.20.41
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.41.ebuild | 58 ++++++++++++++++++++++++++++++++++
14 2 files changed, 59 insertions(+)
15
16 diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
17 index e8a0afe6c3d..d46e709a6d7 100644
18 --- a/app-admin/awscli/Manifest
19 +++ b/app-admin/awscli/Manifest
20 @@ -1,2 +1,3 @@
21 DIST awscli-1.20.28.tar.gz 2058578 BLAKE2B 3f6993a41f46ad9d8d45cebc0d5ea95a954e15c73d236426590c389aba6de6a99b6a5000f065f932733151c14f3112bacc25c670a05d2a991a976669ce54554e SHA512 b75974450cea3744ed15cf00ca82a35aa377c55e0ef67bb5536ed136e768d5030e6707f12e2e7de8bfce48296295ff4ed4c9f9b15c642104ea34c7492291135b
22 DIST awscli-1.20.40.tar.gz 2071857 BLAKE2B b2511d610c13b4ddf8b1f5c6442f0939072eecf81d97805800bd83b6f481d744ad4344dace6e6553e3d4b7cbf9546f911398311cb04fb698a418579e784539a3 SHA512 aa39a8d67cd8efc63687929f19d5878269ce7f3155a0a64ca2f271251a334f57d2358aa4f0aee76415aee33fe23a1e3b19eb2c6dcfa21e8c0fb7409f5d29a001
23 +DIST awscli-1.20.41.tar.gz 2071927 BLAKE2B 4d7ec9e3c2af3f44cbce9459ef12c8191ae72b3313e266a2ac8f39cd2197129ae66893152c6077326c8315d4098608cb11019ad3cc19fdd057508db4f6c3a0d8 SHA512 6d022575d2bded2245bb17e8605e929a8ff2e91e79f907e21a0eaaf027e2fb657b96573531226cd63a34b0a0523a6747c7c4f9652ee10b09fd8b6d09e9c8fc9c
24
25 diff --git a/app-admin/awscli/awscli-1.20.41.ebuild b/app-admin/awscli/awscli-1.20.41.ebuild
26 new file mode 100644
27 index 00000000000..ff429f8d3a3
28 --- /dev/null
29 +++ b/app-admin/awscli/awscli-1.20.41.ebuild
30 @@ -0,0 +1,58 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI="7"
35 +
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +
38 +inherit bash-completion-r1 distutils-r1
39 +
40 +DESCRIPTION="Universal Command Line Environment for AWS"
41 +HOMEPAGE="https://pypi.org/project/awscli/"
42 +#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
43 +SRC_URI="https://github.com/aws/aws-cli/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 +S="${WORKDIR}/aws-cli-${PV}"
45 +
46 +LICENSE="Apache-2.0"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm64 ~x86"
49 +
50 +# botocore is x.(y+1).z
51 +BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 1)).$(ver_cut 3-)"
52 +RDEPEND="
53 + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
54 + dev-python/colorama[${PYTHON_USEDEP}]
55 + dev-python/docutils[${PYTHON_USEDEP}]
56 + dev-python/rsa[${PYTHON_USEDEP}]
57 + >=dev-python/s3transfer-0.4.0[${PYTHON_USEDEP}]
58 + dev-python/pyyaml[${PYTHON_USEDEP}]
59 +"
60 +BDEPEND="
61 + test? (
62 + dev-python/mock[${PYTHON_USEDEP}]
63 + )
64 +"
65 +
66 +distutils_enable_tests --install nose
67 +
68 +PATCHES=(
69 + "${FILESDIR}"/awscli-1.19.47-py39.patch
70 +)
71 +
72 +python_test() {
73 + distutils_install_for_testing
74 + # integration tests require AWS credentials and Internet access
75 + nosetests -v tests/{functional,unit} ||
76 + die "Tests failed for ${EPYTHON}"
77 +}
78 +
79 +python_install_all() {
80 + newbashcomp bin/aws_bash_completer aws
81 +
82 + insinto /usr/share/zsh/site-functions
83 + newins bin/aws_zsh_completer.sh _aws
84 +
85 + distutils-r1_python_install_all
86 +
87 + rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
88 +}