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, 28 Nov 2022 06:05:41
Message-Id: 1669615529.e3270c7f9f10dd01bb1628b1c08846ab92179497.mgorny@gentoo
1 commit: e3270c7f9f10dd01bb1628b1c08846ab92179497
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 28 05:19:20 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 28 06:05:29 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3270c7f
7
8 app-admin/awscli: Bump to 1.27.17
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.27.17.ebuild | 80 ++++++++++++++++++++++++++++++++++
14 2 files changed, 81 insertions(+)
15
16 diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
17 index fdde1ba8a8e7..87617b17f61c 100644
18 --- a/app-admin/awscli/Manifest
19 +++ b/app-admin/awscli/Manifest
20 @@ -5,4 +5,5 @@ DIST aws-cli-1.27.13.gh.tar.gz 2308435 BLAKE2B 7b9ec88744417d9b3416f85d26100ab7e
21 DIST aws-cli-1.27.14.gh.tar.gz 2309344 BLAKE2B dc29dbc89ca963f7dee116b815652c846a643b8415807a32460e86eb9a863470f985bcfcb7f228ce78682b351d14e29234dabc426556f4c7f8863ceec9c55347 SHA512 a97e104c8a45983f52a802d1b1cd55a89f95b1bd3ec5760905404e3f94946c2efe24de70a411d1e943a9ba07671f8114dbb05c216d3d52d1876c05f5e73093cd
22 DIST aws-cli-1.27.15.gh.tar.gz 2309456 BLAKE2B 17ef8924b61c578462de2ad1eb8e46d16d55a49cc14ca1fa21fd895fa019bcd22bc2eadea498902fd9d440b2d441902c9a78c2b3687aa3cc636894360bdb74b3 SHA512 2e76d318c88bd344ad5336472d6ef1c8231e61b00cfd52f7051bc272966ea1d374584b0f35984441963f7b0d55d74377c3bb4ce60372751d2f2d00043747da72
23 DIST aws-cli-1.27.16.gh.tar.gz 2309698 BLAKE2B b81d5b1dcc8219a977bfc3cfa41053c12ff8cc363bcb8e3afd9b206d69240a7b4f5ef742d2e74cf21f46bc3a36271a516bf15e1ca34272ad64b4b1dc0c67e4e2 SHA512 1570b82cb2e6cbfb14754b539840b12a606c7a81490bb45239c851757b8e3ac694b41c5842a0b0df825d355d6d6182c6fd6b3c3f26e1c7070150814959c52260
24 +DIST aws-cli-1.27.17.gh.tar.gz 2311030 BLAKE2B d51b0e4279f24e234e09e3401cb3e9a710eb7b6e4295c48eda726c4a3fd3bfba61fe8387106d815d45878fbd897aebafbfa7f8c1035211faefedd4ac057caac7 SHA512 649834169bd1d5069544bccac22ed3ce54eaef839ac0de353127fb8e5a33f72d253e8cfd504aa1bfee06bad82f79a8342defea2178ffe6158dddd4e906497f17
25 DIST aws-cli-1.27.8.gh.tar.gz 2301766 BLAKE2B 1873d92b8d2f6d3f29a65b4177927a1a14034da71dbc95ff6abf3f49df6cf3ee192412eeea15be14c8cf9fca0a5603f2c76b80b280f4feb95e661055abcd8b60 SHA512 e53828cac1b3e10e2ddd45312d71cdb748216dbc37c3e9833e7a1320b236c3bef6a13204a38b946d9182430f169fca1ddc77d3d06c1c2c6e05978dc61f675168
26
27 diff --git a/app-admin/awscli/awscli-1.27.17.ebuild b/app-admin/awscli/awscli-1.27.17.ebuild
28 new file mode 100644
29 index 000000000000..9bcb01ac11e2
30 --- /dev/null
31 +++ b/app-admin/awscli/awscli-1.27.17.ebuild
32 @@ -0,0 +1,80 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +DISTUTILS_USE_PEP517=setuptools
39 +PYTHON_COMPAT=( python3_{10..11} )
40 +
41 +inherit bash-completion-r1 distutils-r1 multiprocessing
42 +
43 +MY_P=aws-cli-${PV}
44 +DESCRIPTION="Universal Command Line Environment for AWS"
45 +HOMEPAGE="
46 + https://github.com/aws/aws-cli/
47 + https://pypi.org/project/awscli/
48 +"
49 +SRC_URI="
50 + https://github.com/aws/aws-cli/archive/${PV}.tar.gz
51 + -> ${MY_P}.gh.tar.gz
52 +"
53 +S=${WORKDIR}/${MY_P}
54 +
55 +LICENSE="Apache-2.0"
56 +SLOT="0"
57 +KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
58 +
59 +# botocore is x.(y+2).z
60 +BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
61 +RDEPEND="
62 + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
63 + dev-python/colorama[${PYTHON_USEDEP}]
64 + dev-python/docutils[${PYTHON_USEDEP}]
65 + dev-python/rsa[${PYTHON_USEDEP}]
66 + >=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}]
67 + dev-python/pyyaml[${PYTHON_USEDEP}]
68 + !app-admin/awscli-bin
69 +"
70 +BDEPEND="
71 + test? (
72 + dev-python/pytest-forked[${PYTHON_USEDEP}]
73 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
74 + )
75 +"
76 +
77 +distutils_enable_tests pytest
78 +
79 +src_prepare() {
80 + # do not rely on bundled deps in botocore (sic!)
81 + find -name '*.py' -exec sed -i \
82 + -e 's:from botocore[.]vendored import:import:' \
83 + -e 's:from botocore[.]vendored[.]:from :' \
84 + {} + || die
85 + # strip overzealous upper bounds on requirements
86 + sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
87 + distutils-r1_src_prepare
88 +}
89 +
90 +python_test() {
91 + local EPYTEST_DESELECT=(
92 + # TODO
93 + tests/functional/eks/test_kubeconfig.py::TestKubeconfigLoader::test_load_simple
94 + tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_env_only
95 + tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_existing
96 + tests/unit/customizations/eks/test_kubeconfig.py::TestKubeconfigValidator::test_valid
97 + )
98 +
99 + # integration tests require AWS credentials and Internet access
100 + epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
101 +}
102 +
103 +python_install_all() {
104 + newbashcomp bin/aws_bash_completer aws
105 +
106 + insinto /usr/share/zsh/site-functions
107 + newins bin/aws_zsh_completer.sh _aws
108 +
109 + distutils-r1_python_install_all
110 +
111 + rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
112 +}