commit:     db6a96e062141350735dbd609ce3ed40221a0ef2
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Mar  8 05:29:17 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Mar  8 07:24:02 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db6a96e0

app-admin/awscli: Bump to 1.38.9

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

 app-admin/awscli/Manifest             |  1 +
 app-admin/awscli/awscli-1.38.9.ebuild | 93 +++++++++++++++++++++++++++++++++++
 2 files changed, 94 insertions(+)

diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
index 9e02ac6560f0..1ccd2d12786c 100644
--- a/app-admin/awscli/Manifest
+++ b/app-admin/awscli/Manifest
@@ -5,3 +5,4 @@ DIST aws-cli-1.38.5.gh.tar.gz 2908778 BLAKE2B 
48d146b4e8d64763579e125f82696735de
 DIST aws-cli-1.38.6.gh.tar.gz 2909267 BLAKE2B 
b37f259e08b9cb9f3b711275cb5e646d1870c478c1fa8b69e341e9c4f2dc4584210aa2a38b32c54baef5bd885e54b3fb9e2f3ecfc261c2afd597c1764d91ca8f
 SHA512 
4c1b0815c518869f23ca53976d457cfde81499f468b938d8bda683f63d92bb1ac7937c39f8c3640856ec38f505c647d878a1fb4d0b953c08c55ef544bffdead8
 DIST aws-cli-1.38.7.gh.tar.gz 2909811 BLAKE2B 
d9ea4fbef6db0dd3ff0ecdb6337b9802b6411ebf6635fded47f43e032e4ddfdf1d600e574f8d3560bf30852d1020e3aff53afdccb537cd108e0a7e44eee3bec7
 SHA512 
32c362251e2f1fbabf739194fd76652cda1473c0fafeb06e4b41a5cc68d383fc4c2c68f26c947572d2f2e56a704494814e3ab3a0791e7949f5099c991993c972
 DIST aws-cli-1.38.8.gh.tar.gz 2910705 BLAKE2B 
7de605f82ea0bd7592dddd60f2515d03858f03d72ef41dfa3e3a20e8df7cbdcbc3a16adfd72b808a168063c989c7f25f6e72f168b1967057fc46b34261642724
 SHA512 
091b3a6cb3f6a479a311386d57ddbaab572263363355faef39073a7de34a150bdb2a129e9c0bfd0b22944d861f197d78e6f27fe2447eb070efa2d1872b8469dc
+DIST aws-cli-1.38.9.gh.tar.gz 2921470 BLAKE2B 
fb6b616095702417335be03a763a4434759c79fa1a31ec7c8c84cb59567461167b0b3c5b80baa950cd0b7298985b298c825f669b82d33ef5bd35adefe947729c
 SHA512 
23fd65c3a0b0c8bb0cd64d52db924cddc8663671c0d80e45c9af1afb2c8558e42eed7a88d3fba2351fa1cf2d0dda1ca1b51a3baaba04b5249bd5d1551059b100

diff --git a/app-admin/awscli/awscli-1.38.9.ebuild 
b/app-admin/awscli/awscli-1.38.9.ebuild
new file mode 100644
index 000000000000..88651d723a58
--- /dev/null
+++ b/app-admin/awscli/awscli-1.38.9.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit distutils-r1 shell-completion
+
+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-1).z
+BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) - 1)).$(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.11.0[${PYTHON_USEDEP}]
+       dev-python/pyyaml[${PYTHON_USEDEP}]
+       !app-admin/awscli-bin
+"
+BDEPEND="
+       test? (
+               dev-python/packaging[${PYTHON_USEDEP}]
+               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/functional/ssm/test_start_session.py::TestSessionManager::test_start_session_with_new_version_plugin_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/customizations/test_sessionmanager.py
+               tests/unit/test_compat.py::TestIgnoreUserSignals
+               tests/unit/test_help.py
+               
tests/unit/test_utils.py::TestIgnoreCtrlC::test_ctrl_c_is_ignored
+       )
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       EPYTEST_XDIST= epytest "${serial_tests[@]}"
+
+       local EPYTEST_DESELECT=(
+               "${serial_tests[@]}"
+
+               # flaky (some ordering?)
+               
tests/functional/s3/test_cp_command.py::TestCPCommand::test_multipart_upload_with_checksum_algorithm_crc32
+       )
+       # integration tests require AWS credentials and Internet access
+       epytest tests/{functional,unit}
+}
+
+python_install_all() {
+       newbashcomp bin/aws_bash_completer aws
+       newzshcomp 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