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: Fri, 25 Jun 2021 04:46:57
Message-Id: 1624595176.f77c3fe4fe18da4040ce26da32eaa75c7bb06146.mgorny@gentoo
1 commit: f77c3fe4fe18da4040ce26da32eaa75c7bb06146
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 25 04:26:16 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 25 04:26:16 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f77c3fe4
7
8 app-admin/awscli: Bump to 1.19.100
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.19.100.ebuild | 58 +++++++++++++++++++++++++++++++++
14 2 files changed, 59 insertions(+)
15
16 diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
17 index 8307e4a39da..f95d21cbf10 100644
18 --- a/app-admin/awscli/Manifest
19 +++ b/app-admin/awscli/Manifest
20 @@ -1,3 +1,4 @@
21 +DIST awscli-1.19.100.tar.gz 2022522 BLAKE2B 0af348e5e01cc9f3ab421ebdb0bcfe7578bd7578355130951d58ec5b842499527a175c1cb7fae2381f35faab47e7183315c020fcc1d87c29658d45a84c2178f0 SHA512 10a7edf826982e0f1978fe5bb3bb83c1960c1baa353c94533da8877bfb35b022b8a7aae307db9cf526dbc3a80a5f88d16d4f864d3c858d28114afa73e518fcec
22 DIST awscli-1.19.47.tar.gz 1990843 BLAKE2B c894aaf84d5fe7cb8998fcd682783a1f2e75dd9273a2aa22babe4d57175a1716aefccda50edb96a1203f010dbb2af29cd47d43b5d5f94adfdee1730ab98345af SHA512 7d51022e13609f5f5ab3155e3ac09670c7e49508d67eca8cb477e556e4b06b7643e86bdfe5fa8db59360f6d73e5774b433cb7093c25d6b688f98847b502872b7
23 DIST awscli-1.19.78.tar.gz 2006020 BLAKE2B 6def90848e033413136865b0176c8d435fb70465f700a82673e9b20378be3792c8e3e59715466a93199358d698c9b58daaa88d6c2e921474460fdef0a214fdba SHA512 ff48f06158d401bf27e2f63c86ade91009dd9a48edf20156d3511ec2685a2dc93e8129a766eb0cc979e81121804dff9f18524e72f8ac1cffc43c4d3ed3595c83
24 DIST awscli-1.19.79.tar.gz 2006413 BLAKE2B 40b806b7987dcbb83f0d5f7411dd36c5acfddf3927bff00d396724ed178dd114b91a6852fce9f1f1dea44644c3be26c2d1b63f114b5a9eb9b1832cc2f7e5c69e SHA512 1255b2439ba5061987af7f7b418e564c8bccd6d837614405512628a259c2f89acee3a41386b2507c596d9f52b432fa34c615d06ad15787a131bd06397a3b2aab
25
26 diff --git a/app-admin/awscli/awscli-1.19.100.ebuild b/app-admin/awscli/awscli-1.19.100.ebuild
27 new file mode 100644
28 index 00000000000..ff429f8d3a3
29 --- /dev/null
30 +++ b/app-admin/awscli/awscli-1.19.100.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 +}