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