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: Wed, 31 Aug 2022 09:21:10
Message-Id: 1661937658.27e5c060112d676eac32b166bf44f3efdac5a6fc.mgorny@gentoo
1 commit: 27e5c060112d676eac32b166bf44f3efdac5a6fc
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 31 07:43:21 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 31 09:20:58 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27e5c060
7
8 app-admin/awscli: Bump to 1.25.64
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.64.ebuild | 72 ++++++++++++++++++++++++++++++++++
14 2 files changed, 73 insertions(+)
15
16 diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
17 index 2338ded467b4..a3a78f14d597 100644
18 --- a/app-admin/awscli/Manifest
19 +++ b/app-admin/awscli/Manifest
20 @@ -15,3 +15,4 @@ DIST aws-cli-1.25.58.gh.tar.gz 2256521 BLAKE2B 752581d8e6cf82fa5a77f8b530d1d267f
21 DIST aws-cli-1.25.59.gh.tar.gz 2256634 BLAKE2B 0fd3dbd2b3f59ee32d3e9d11c529184be54192057e273ed79a1d0e4871673f1318d3ef779d13067e162d334119f7c859c8b175a513095e7252bcf6bfb1a15675 SHA512 1f59362da22f542ec8af3e91343857f37922bca25f7e554bce66926e58a29fc63bfcd7308e8784e5bb69f8f8e032fe501502b6ab60798224b090f79d7170c17e
22 DIST aws-cli-1.25.60.gh.tar.gz 2257567 BLAKE2B 368925e5dfd5b9fa3ab6c7a34c1f8e8312946df790534874a67aa248e81fc2defc5825e35a871d326e00acec31d5ec6a9c87fe1eff5925d489a8a87df7c059c5 SHA512 559c5cdb3cc1c0c94d77d97b7a7e4d2764a301c7ceaf0a557769629aed1ee9db0952669a265e0a54b828e5de39e320b9e4ad0b591868cfe17f8033a8eb8c4a9e
23 DIST aws-cli-1.25.61.gh.tar.gz 2257977 BLAKE2B d1090ca3eb86284520e970a997932af31c250d2ca12ab7ddd2a64a55540e5b747bd30d21f4b0fdb8cd926692bde53a37b618f4cc2b9e92c7fcbca95419d7fb36 SHA512 cb869e08b9bec7c542d44401590f3ee5500564c23ff17d47e6a0265e1f98aea7429e55757e2184d7fbf23b3bb65366692040c059cdfffef39e1de2072345060c
24 +DIST aws-cli-1.25.64.gh.tar.gz 2263441 BLAKE2B d68ef0a3dabba879d9d650a911d5f286116a6d407d9d958088f7b7cd54c27db3be28165a1676e949785056519477f315ca4e08f6df9938da2516974d026fef81 SHA512 4db256228dde6aed2432133373c045bf2f2e69a7764629f3d13a94e086f99b43cc2a29862e6f973742a0de08032e6c26499b230db81575eabd288c8f2f63eb0a
25
26 diff --git a/app-admin/awscli/awscli-1.25.64.ebuild b/app-admin/awscli/awscli-1.25.64.ebuild
27 new file mode 100644
28 index 000000000000..3d5bba5c1200
29 --- /dev/null
30 +++ b/app-admin/awscli/awscli-1.25.64.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 +}