commit:     57e16a36148e024c8121f1ae35c68793d24bc8e4
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jun  1 07:24:53 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun  1 08:02:48 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57e16a36

app-admin/awscli: Bump to 1.25.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 app-admin/awscli/Manifest             |  1 +
 app-admin/awscli/awscli-1.25.0.ebuild | 71 +++++++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
index 92a0599d7a74..2863037d225b 100644
--- a/app-admin/awscli/Manifest
+++ b/app-admin/awscli/Manifest
@@ -10,3 +10,4 @@ DIST aws-cli-1.24.6.gh.tar.gz 2216124 BLAKE2B 
584c1b5f6bc76f565346734b3d1b5a877f
 DIST aws-cli-1.24.7.gh.tar.gz 2216941 BLAKE2B 
132c5e1bf0ba26f5a1b25bdfaa24138d4b664d98c35edb33061513859fb52817b6fd0d3e8a18331621134f2e222bfd087f2ed30f4b23ee4960dbd5a5762decc4
 SHA512 
0f87ab2312171efc99fd4666c0d8935a9bb88d6ad1653ddf3a071d3ba5b36f69bbef1fe24f32c63d5e0991281cd15a9312a1f2827ad23da472aa23f58fe67b3d
 DIST aws-cli-1.24.8.gh.tar.gz 2218012 BLAKE2B 
1b2459045646524fac28ab792554e20dd1dc73acc121f155e25a1ad99d56a269d083f4b96ac059e3ab32752b225db6afccff55d58cdf8a7a29ff4f60d16e5cb0
 SHA512 
2c9bc27516ea9bfc369b2c76052a9dc2e1776675d240b3bf5050a5db6ad4cb98ddb69cb56243b0e7451e4dc202e44dedb8ea4ba798763b87780b89f1d7775583
 DIST aws-cli-1.24.9.gh.tar.gz 2218350 BLAKE2B 
9e2a672330a7fa9c814a02786e99830943bb4243a358d0b82e17b25ce1e3dd40475d2086477f292b9c1c185078e28a1a9d10e9087a5b3b7e87d3e72821d726d4
 SHA512 
f4f256153c9b66fb9686319050b1a16690bcab5070b05409f2667260f15b22e1ef398025a3f8d6e36d93892186066243b87da9a1bdf43f673b1a8a6848a4adb5
+DIST aws-cli-1.25.0.gh.tar.gz 2219640 BLAKE2B 
009863c9df07d01e5ddd849565124657bcead4dfac8a921247a1bcd4196593c93441f91fa1e2b4ee1908e5fd59b6559da98fa887083f70f110804a0e252f2c25
 SHA512 
305e16ea51ad0f689232b06dcf1964e0479b3c529631364688afc41e6441fc28ae934cd9959de493ea5734dacb81e01af27305609d6d3919656f8a55bebd4eac

diff --git a/app-admin/awscli/awscli-1.25.0.ebuild 
b/app-admin/awscli/awscli-1.25.0.ebuild
new file mode 100644
index 000000000000..4154af977ee6
--- /dev/null
+++ b/app-admin/awscli/awscli-1.25.0.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit bash-completion-r1 distutils-r1 multiprocessing
+
+MY_P=aws-cli-${PV}
+DESCRIPTION="Universal Command Line Environment for AWS"
+HOMEPAGE="
+       https://github.com/aws/aws-cli/
+       https://pypi.org/project/awscli/
+"
+SRC_URI="
+       https://github.com/aws/aws-cli/archive/${PV}.tar.gz
+               -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+# botocore is x.(y+2).z
+BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
+RDEPEND="
+       >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
+       dev-python/colorama[${PYTHON_USEDEP}]
+       dev-python/docutils[${PYTHON_USEDEP}]
+       dev-python/rsa[${PYTHON_USEDEP}]
+       >=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}]
+       dev-python/pyyaml[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       test? (
+               dev-python/pytest-forked[${PYTHON_USEDEP}]
+               dev-python/pytest-xdist[${PYTHON_USEDEP}]
+       )
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+       # do not rely on bundled deps in botocore (sic!)
+       find -name '*.py' -exec sed -i \
+               -e 's:from botocore[.]vendored import:import:' \
+               -e 's:from botocore[.]vendored[.]:from :' \
+               {} + || die
+       # strip overzealous upper bounds on requirements
+       sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
+       distutils-r1_src_prepare
+}
+
+python_test() {
+       # integration tests require AWS credentials and Internet access
+       epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
+}
+
+python_install_all() {
+       newbashcomp bin/aws_bash_completer aws
+
+       insinto /usr/share/zsh/site-functions
+       newins bin/aws_zsh_completer.sh _aws
+
+       distutils-r1_python_install_all
+
+       rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || 
die
+}

Reply via email to