1 |
commit: dcd4eaf62cc7ec3af8941a6f82969003ce749991 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 1 05:53:58 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 1 07:09:05 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcd4eaf6 |
7 |
|
8 |
app-admin/awscli: Bump to 1.27.20 |
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.20.ebuild | 80 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 81 insertions(+) |
15 |
|
16 |
diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest |
17 |
index 9fddbf2132bd..5446805c6735 100644 |
18 |
--- a/app-admin/awscli/Manifest |
19 |
+++ b/app-admin/awscli/Manifest |
20 |
@@ -1,4 +1,5 @@ |
21 |
DIST aws-cli-1.27.11.gh.tar.gz 2303984 BLAKE2B f773a631bd2f172697a013e11765307edfac0957f7bff7d05e74c326239491c03629859b5d7b4ec85a831e28acd47cbbf4a2393c8ae512fbf393142cfb7ca13d SHA512 ad9eee70eb95d2c9c71978425e96b80a42569efca6e20c5caeb6af7b27aa893b3bfe68fed8e13b18e20626c4cd9599e8efe93dacde5bcc5c347b815376819ea5 |
22 |
DIST aws-cli-1.27.16.gh.tar.gz 2309698 BLAKE2B b81d5b1dcc8219a977bfc3cfa41053c12ff8cc363bcb8e3afd9b206d69240a7b4f5ef742d2e74cf21f46bc3a36271a516bf15e1ca34272ad64b4b1dc0c67e4e2 SHA512 1570b82cb2e6cbfb14754b539840b12a606c7a81490bb45239c851757b8e3ac694b41c5842a0b0df825d355d6d6182c6fd6b3c3f26e1c7070150814959c52260 |
23 |
DIST aws-cli-1.27.18.gh.tar.gz 2313270 BLAKE2B 2f5dc87a2e306d024c03b6cc175736798a28fe5b125aba7e6af9fe1297e44e37fae6990df216cf58c6cdf47ac7b5fc583bed9d5125df063f328544286f4f0f82 SHA512 6f5b0b333af0f842d940cc80f0c18c55feb06c7a4cc609c2db8332126f7e868ccff6f84bfd031bf8d590ca38be9aa258527433e6fab9d63de6a96c64ae740ca2 |
24 |
+DIST aws-cli-1.27.20.gh.tar.gz 2315771 BLAKE2B 6729a6709e2ae3d493700b49dbcb7020391f7ce9e2d023e942271a27502309c8f699e90063aa6a13256981123d22772653888fcaae7bebe3cde471caa21bf4a1 SHA512 b520136e0c41e1b40ce48f90024461ace2d0967f3897dcdf68c90cc89ca637e3ba1dee117d5c1f7c6cd9d0d598e819c5faf5ebbf8a35818dc5e8c85933122af6 |
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.20.ebuild b/app-admin/awscli/awscli-1.27.20.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..9bcb01ac11e2 |
30 |
--- /dev/null |
31 |
+++ b/app-admin/awscli/awscli-1.27.20.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 |
+} |