commit: 135b792025f4d744cd2fee218a3fc0e99c491775
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 22 06:24:36 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Nov 22 07:48:33 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=135b7920
app-admin/awscli: Bump to 1.30.5
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
app-admin/awscli/Manifest | 1 +
app-admin/awscli/awscli-1.30.5.ebuild | 86 +++++++++++++++++++++++++++++++++++
2 files changed, 87 insertions(+)
diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
index af717bbaa5b9..1c30da7ee760 100644
--- a/app-admin/awscli/Manifest
+++ b/app-admin/awscli/Manifest
@@ -6,3 +6,4 @@ DIST aws-cli-1.30.1.gh.tar.gz 2586590 BLAKE2B
6520fcb6818213d4ad9c002cf4dddcf16b
DIST aws-cli-1.30.2.gh.tar.gz 2589683 BLAKE2B
786aad7e939d3d8349d2d1930c82bad7b0bcdaa36f9df389f155f23e610019ff2f0bdd52da2d6ac4f4e1896a236d7aee895641245a518a3cb094ba3e43e3a594
SHA512
8fbbe9b951942d7230d9875a153403f2fa952657e124686926d94a6f816b9ae093ec025b595ccd7f7a532a930b8b3e516f1030ba7d7038dddaa188c5d3ee5ea9
DIST aws-cli-1.30.3.gh.tar.gz 2594517 BLAKE2B
67ffda10491b734a15119ed3963735e53a66d868954e908816ef918b0adb706ef23337a4dde76758bb1fc957be8a6794106c2d26b9865a9e9dd6e11cc70c4016
SHA512
9b9474a6206cecd0d9f15aabf1c94421aabf4b0ea2d5c829e59747d5fa68093e6f79b0e554ea1dfb891774a0ab49d1143cd582521bd21735e209b40f040973cd
DIST aws-cli-1.30.4.gh.tar.gz 2594809 BLAKE2B
2c4ec84c853f18045b3bc29719a4218e250594df3eade300f755d4c0aeec3f8a6001cee3a3a99c9973b848707a1c545b338958341e8ab9028a6b75ef45cb5533
SHA512
18692c83db93a60734fd689ac9808b00cccee4bec2b0ea420e265bead1d14324eaa522f5022c763b2a2835860ec6bafc9e18412197fbec37c12523628df0b3a5
+DIST aws-cli-1.30.5.gh.tar.gz 2595898 BLAKE2B
3117ef5dca0880c761b5284f52cbb732b7e4aff9f720b3beb361a63923b1351b39a1167eeaa9786fab5f06c97d20111cabdc0ba9e96706ccc5b6d5da9d912817
SHA512
f649f876864985ff5798bf53a98cd49b7f6b2d73d4b610251f5faa3686606c908c4f56b8067098580e517c17d0d08d19afc39cc3e960bb91614dfd01014539fc
diff --git a/app-admin/awscli/awscli-1.30.5.ebuild
b/app-admin/awscli/awscli-1.30.5.ebuild
new file mode 100644
index 000000000000..e5b1ee0667a3
--- /dev/null
+++ b/app-admin/awscli/awscli-1.30.5.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit bash-completion-r1 distutils-r1
+
+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 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~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.7.0[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ !app-admin/awscli-bin
+"
+BDEPEND="
+ test? (
+ dev-python/pytest-forked[${PYTHON_USEDEP}]
+ )
+"
+
+EPYTEST_XDIST=1
+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() {
+ local serial_tests=(
+
tests/functional/ecs/test_execute_command.py::TestExecuteCommand::test_execute_command_success
+
tests/functional/ssm/test_start_session.py::TestSessionManager::test_start_session_{fails,success}
+
tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking
+
tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking_windows
+
tests/unit/customizations/codeartifact/test_adapter_login.py::TestNuGetLogin::test_login_nuget_sources_listed_with_backtracking
+
tests/unit/customizations/ecs/test_executecommand_startsession.py::TestExecuteCommand::test_execute_command_success
+ tests/unit/test_compat.py::TestIgnoreUserSignals
+ tests/unit/test_help.py
+ )
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest "${serial_tests[@]}"
+
+ local EPYTEST_DESELECT=( "${serial_tests[@]}" )
+ # integration tests require AWS credentials and Internet access
+ epytest tests/{functional,unit}
+}
+
+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
+}