Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/awscli/
Date: Thu, 01 Sep 2022 19:42:17
Message-Id: 1662061315.c93f229ad771d12644c802e4e698395b16b142bd.arthurzam@gentoo
1 commit: c93f229ad771d12644c802e4e698395b16b142bd
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 1 19:16:50 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 1 19:41:55 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c93f229a
7
8 app-admin/awscli: add 1.25.65
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 app-admin/awscli/Manifest | 1 +
13 app-admin/awscli/awscli-1.25.65.ebuild | 72 ++++++++++++++++++++++++++++++++++
14 2 files changed, 73 insertions(+)
15
16 diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
17 index 56ba56e85ff7..464619a12820 100644
18 --- a/app-admin/awscli/Manifest
19 +++ b/app-admin/awscli/Manifest
20 @@ -1,3 +1,4 @@
21 DIST aws-cli-1.25.56.gh.tar.gz 2252989 BLAKE2B a082d42bd9ebaa858a3464bf885ba86a6f0f1b75d6ec89f9d6f1ab04dc753cf13cc6f7ced64cca35f8ddc460d589b44caa483c9d94bccb5b028c921fe7b970c0 SHA512 3a0fcd505b8a0c4fb322d2d39cc0ec3add977eb7ede14d7ff9fa3dd25b92e0e0d97128b73b6c32588d7e48344283c8c3eac293ea6cd470ea4feda1d1bf124e1b
22 DIST aws-cli-1.25.61.gh.tar.gz 2257977 BLAKE2B d1090ca3eb86284520e970a997932af31c250d2ca12ab7ddd2a64a55540e5b747bd30d21f4b0fdb8cd926692bde53a37b618f4cc2b9e92c7fcbca95419d7fb36 SHA512 cb869e08b9bec7c542d44401590f3ee5500564c23ff17d47e6a0265e1f98aea7429e55757e2184d7fbf23b3bb65366692040c059cdfffef39e1de2072345060c
23 DIST aws-cli-1.25.64.gh.tar.gz 2263441 BLAKE2B d68ef0a3dabba879d9d650a911d5f286116a6d407d9d958088f7b7cd54c27db3be28165a1676e949785056519477f315ca4e08f6df9938da2516974d026fef81 SHA512 4db256228dde6aed2432133373c045bf2f2e69a7764629f3d13a94e086f99b43cc2a29862e6f973742a0de08032e6c26499b230db81575eabd288c8f2f63eb0a
24 +DIST aws-cli-1.25.65.gh.tar.gz 2263933 BLAKE2B 5c516e6a95a333073cf7200eff476e625e9b832b32b44fc41e3656c5c78710ba8272fdb5fbafcfe85fe17853c1f40e26fd6de84a6c4c42a7cd6d7d2ce41ab8f5 SHA512 7dcdd2d0e05000f09d41a24c8e14ee7b4623e89f027c193c67635296f568c8d1f383956c5c351c85b7c48150796203dce777ef2f6376c3778ea2ec8b8f39072b
25
26 diff --git a/app-admin/awscli/awscli-1.25.65.ebuild b/app-admin/awscli/awscli-1.25.65.ebuild
27 new file mode 100644
28 index 000000000000..3d5bba5c1200
29 --- /dev/null
30 +++ b/app-admin/awscli/awscli-1.25.65.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 ~riscv ~x86"
57 +
58 +# botocore is x.(y+2).(z-1)
59 +BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(( $(ver_cut 3-) - 1 ))"
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 +}