commit:     457653801877d8b4206f350d1d1153697641c716
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 19 05:15:06 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Apr 19 06:24:26 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45765380

app-admin/awscli: Bump to 1.38.37

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

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

diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
index ba2394c5aa08..8c9b0665e703 100644
--- a/app-admin/awscli/Manifest
+++ b/app-admin/awscli/Manifest
@@ -4,3 +4,4 @@ DIST aws-cli-1.38.33.gh.tar.gz 2918023 BLAKE2B 
2e9539c86425b6b07594d3c8793d99356
 DIST aws-cli-1.38.34.gh.tar.gz 2918322 BLAKE2B 
5b42df62d9eda05b9936a36c925b4f2e1b0c204b58a2ffbbf03960e73422509552f8f02633958c4372fa5d8256c7feb442b3070aec27a861d7074baf1cef0d2c
 SHA512 
1335afe83fd735d2064e188087c18b91c0e88efa9af1e2956d3605741ca1807f071cdfe3e3cf273abbeca4336895c36f6b03e4a2ccf2eacaa5dcb11668a26d52
 DIST aws-cli-1.38.35.gh.tar.gz 2919085 BLAKE2B 
c53acaef8fc2beafc4b81a1d3aae31cd29059098d3a2143cade16b916bedf953fabca4dc74d1e92532c8d785f0e5b03c42c5489b5fcfcbbf0a9dcc7582aa96f8
 SHA512 
db32b914097587b7a14d5eed447a40eb648fe0cb6cdac26cd57d8328371b1012192bd54fd209154dfd189669c2a0e9c4b2da9ed3249aa779dafcfe895ba10a7a
 DIST aws-cli-1.38.36.gh.tar.gz 2919967 BLAKE2B 
f4f74c7e71411df915c48b2bc0e60f29ed2efb4880d7d77e64715d267b4c0a1a0ba7c38da4380aee7ec3a0a83a8be30c702f24b5efbcff0403cdb759af2975d5
 SHA512 
9ee5c083d0f7734da1218e1cd816da8a0bca4966ae9f3a663e092d43d703503ff3e91b4db4a6f223ac94649150916b76095203189f8e8d20c0d77735aa9e15c3
+DIST aws-cli-1.38.37.gh.tar.gz 2920466 BLAKE2B 
bcbe824e4b867fee378e0b9f8ce59604f0a20fc7a0ada64743439f2ff596418f7ca486250f8416a85564e3d0bc9541ff8227f808b2dd2cf19c04f4b6234c753b
 SHA512 
9f4f6ac5e97579a1b2d119ee59ecbebf423534781a90c265c9c685cb360fce7cd18dbee8cf7a747084828f6fce85882156f1223d6f228f6cc50b5b9da1100f7b

diff --git a/app-admin/awscli/awscli-1.38.37.ebuild 
b/app-admin/awscli/awscli-1.38.37.ebuild
new file mode 100644
index 000000000000..090dfac23a73
--- /dev/null
+++ b/app-admin/awscli/awscli-1.38.37.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