commit:     b1441b60f85fdbcf17316b0c31d5dd5467e74452
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Dec  1 04:34:06 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Dec  1 04:34:06 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1441b60

app-admin/awscli: Bump to 1.31.5

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

 app-admin/awscli/Manifest             |  1 +
 app-admin/awscli/awscli-1.31.5.ebuild | 88 +++++++++++++++++++++++++++++++++++
 2 files changed, 89 insertions(+)

diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
index 4a9786f1adf5..ad9403469aeb 100644
--- a/app-admin/awscli/Manifest
+++ b/app-admin/awscli/Manifest
@@ -5,3 +5,4 @@ DIST aws-cli-1.31.0.gh.tar.gz 2599974 BLAKE2B 
3ffc916e01cebd9e8532d01190324c3d8a
 DIST aws-cli-1.31.1.gh.tar.gz 2600259 BLAKE2B 
ebe55d0b5cd1ba730ce4ef6b6911b5d4877668c04428d59dd75a353ac55ddea4a42296399b53ce4ed119fcd7b877762adbf606b0dd114274cf4c68186577d1c1
 SHA512 
96a97b585ad8b47394412ed4d1494414e70ddb52788da5c2e8e977652b5fde2300b2c98b0727f19e1f305ff5b55dd428049cdd6fd3fbc746a4aec28d68c25f9d
 DIST aws-cli-1.31.2.gh.tar.gz 2602541 BLAKE2B 
a24a6a4d7c5714e4d54d6eaa2e77a0a642a815f917951b0aea23a91da745f78e647543b47e656cb1ceb6a952552b498b7ae6f316763bfae34ec5e84789564699
 SHA512 
a0e0e88210ce9be19c66981a8a9def72f1032492cbb6075afd0c4f9c753d270b82925fc2428f81811a6bc8745a2dccb7c2e1ad2291969c2139a9a40915c48542
 DIST aws-cli-1.31.4.gh.tar.gz 2604265 BLAKE2B 
224072e17f2f2ce1227b4b1e704cc796d35c01b90aeab7a86ffbe561ac7d28bee9e5ce07e5c77c47db529c6ac590c4c1813405fae6a748869b04423dafc1acf1
 SHA512 
b0c34752417ee3fa03402db8024d781c198a54416ab93f7e934c1146c77685aaf7ca441946f392c5c5a1b8b228eee21283cb35ff9fb45ef97365bd3e22e79cb1
+DIST aws-cli-1.31.5.gh.tar.gz 2605057 BLAKE2B 
8e1527dff985a21b08bc2c3d5008eac872b138928a034cd5dba33581daaa5003dbad6bb1c58e367c3eb9235588c76f32c5b15191e521722d42df967b1a380c49
 SHA512 
f8173536ae9435ccd83436ef3507e2fe69dbe1b37f124e7d5ee7506b4b77f847eb68b5e1105fdd2ccac60e06f06c0666b4137d8a933c352953beb24441cc4f4d

diff --git a/app-admin/awscli/awscli-1.31.5.ebuild 
b/app-admin/awscli/awscli-1.31.5.ebuild
new file mode 100644
index 000000000000..18db68f93233
--- /dev/null
+++ b/app-admin/awscli/awscli-1.31.5.ebuild
@@ -0,0 +1,88 @@
+# 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.8.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/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[@]}" )
+       # 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
+}

Reply via email to