1 |
commit: 9061380029b57ca07e7eb855b01545f601ef6634 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 25 04:19:39 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 25 04:56:58 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90613800 |
7 |
|
8 |
dev-python/awscli: Bump to 1.19.79 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/awscli/Manifest | 1 + |
13 |
dev-python/awscli/awscli-1.19.79.ebuild | 58 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 59 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/awscli/Manifest b/dev-python/awscli/Manifest |
17 |
index 2fdf876dcff..9484e6850f8 100644 |
18 |
--- a/dev-python/awscli/Manifest |
19 |
+++ b/dev-python/awscli/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST awscli-1.19.47.tar.gz 1990843 BLAKE2B c894aaf84d5fe7cb8998fcd682783a1f2e75dd9273a2aa22babe4d57175a1716aefccda50edb96a1203f010dbb2af29cd47d43b5d5f94adfdee1730ab98345af SHA512 7d51022e13609f5f5ab3155e3ac09670c7e49508d67eca8cb477e556e4b06b7643e86bdfe5fa8db59360f6d73e5774b433cb7093c25d6b688f98847b502872b7 |
22 |
DIST awscli-1.19.78.tar.gz 2006020 BLAKE2B 6def90848e033413136865b0176c8d435fb70465f700a82673e9b20378be3792c8e3e59715466a93199358d698c9b58daaa88d6c2e921474460fdef0a214fdba SHA512 ff48f06158d401bf27e2f63c86ade91009dd9a48edf20156d3511ec2685a2dc93e8129a766eb0cc979e81121804dff9f18524e72f8ac1cffc43c4d3ed3595c83 |
23 |
+DIST awscli-1.19.79.tar.gz 2006413 BLAKE2B 40b806b7987dcbb83f0d5f7411dd36c5acfddf3927bff00d396724ed178dd114b91a6852fce9f1f1dea44644c3be26c2d1b63f114b5a9eb9b1832cc2f7e5c69e SHA512 1255b2439ba5061987af7f7b418e564c8bccd6d837614405512628a259c2f89acee3a41386b2507c596d9f52b432fa34c615d06ad15787a131bd06397a3b2aab |
24 |
|
25 |
diff --git a/dev-python/awscli/awscli-1.19.79.ebuild b/dev-python/awscli/awscli-1.19.79.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..d57c79858b9 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/awscli/awscli-1.19.79.ebuild |
30 |
@@ -0,0 +1,58 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI="7" |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{7..9} ) |
37 |
+ |
38 |
+inherit bash-completion-r1 distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Universal Command Line Environment for AWS" |
41 |
+HOMEPAGE="https://pypi.org/project/awscli/" |
42 |
+#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
43 |
+SRC_URI="https://github.com/aws/aws-cli/archive/${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+S="${WORKDIR}/aws-cli-${PV}" |
45 |
+ |
46 |
+LICENSE="Apache-2.0" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
49 |
+ |
50 |
+# botocore is x.(y+1).z |
51 |
+BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 1)).$(ver_cut 3-)" |
52 |
+RDEPEND=" |
53 |
+ >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}] |
54 |
+ dev-python/colorama[${PYTHON_USEDEP}] |
55 |
+ dev-python/docutils[${PYTHON_USEDEP}] |
56 |
+ dev-python/rsa[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/s3transfer-0.4.0[${PYTHON_USEDEP}] |
58 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
59 |
+" |
60 |
+BDEPEND=" |
61 |
+ test? ( |
62 |
+ dev-python/mock[${PYTHON_USEDEP}] |
63 |
+ ) |
64 |
+" |
65 |
+ |
66 |
+distutils_enable_tests --install nose |
67 |
+ |
68 |
+PATCHES=( |
69 |
+ "${FILESDIR}"/awscli-1.19.47-py39.patch |
70 |
+) |
71 |
+ |
72 |
+python_test() { |
73 |
+ distutils_install_for_testing |
74 |
+ # integration tests require AWS credentials and Internet access |
75 |
+ nosetests -v tests/{functional,unit} || |
76 |
+ die "Tests failed for ${EPYTHON}" |
77 |
+} |
78 |
+ |
79 |
+python_install_all() { |
80 |
+ newbashcomp bin/aws_bash_completer aws |
81 |
+ |
82 |
+ insinto /usr/share/zsh/site-functions |
83 |
+ newins bin/aws_zsh_completer.sh _aws |
84 |
+ |
85 |
+ distutils-r1_python_install_all |
86 |
+ |
87 |
+ rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die |
88 |
+} |