summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-02-02 04:07:32 +0100
committerMichał Górny <mgorny@gentoo.org>2024-02-02 05:12:21 +0100
commitdf53aa9f53a5d569a3ca543357e1de638e69d37b (patch)
treef27e6b27b8286c83b69c376f4d272143dc39dfac /app-admin
parentdev-python/boto3: Bump to 1.34.33 (diff)
downloadgentoo-df53aa9f53a5d569a3ca543357e1de638e69d37b.tar.gz
gentoo-df53aa9f53a5d569a3ca543357e1de638e69d37b.tar.bz2
gentoo-df53aa9f53a5d569a3ca543357e1de638e69d37b.zip
app-admin/awscli: Bump to 1.32.33
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/awscli/Manifest1
-rw-r--r--app-admin/awscli/awscli-1.32.33.ebuild90
2 files changed, 91 insertions, 0 deletions
diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
index ae88cec187c9..a0b6cb029c51 100644
--- a/app-admin/awscli/Manifest
+++ b/app-admin/awscli/Manifest
@@ -4,3 +4,4 @@ DIST aws-cli-1.32.29.gh.tar.gz 2643387 BLAKE2B 0d07a5478c5a51baf743c97aa613611ae
DIST aws-cli-1.32.30.gh.tar.gz 2644389 BLAKE2B 1cf06d774c83b1abfd91ab08100b6211a330ca30eb10a5312466dd14460b2db3588ac9318c412527f3fc8205f29852202b012ad09bde69bbdc601aae5fa0e48e SHA512 f2a746062460be4d87aa377e03cdc68e060cbf2121eedfb266d272c6930d71834decb869b9ff9cf03fc03c964634fe4451db6cc2aa1ecdeeba2762240ced8032
DIST aws-cli-1.32.31.gh.tar.gz 2645915 BLAKE2B aa8a8668f2d88c0b4ea7f6a2398dfe3f0015fc83bd174dd14961ca5707420ee8e360ec90b2c05a464509046d6d16d1931950cb4d2876c22f875b35de6258f504 SHA512 1e96a61785b42d89ca17b81a2638c8fa017cbd44959a316f78171b0a4257caa120318d48646a8560aa87b70805aba63fb9e533c0715de7a56744e9c142304c95
DIST aws-cli-1.32.32.gh.tar.gz 2646438 BLAKE2B 8f2f356b9a1a2df14cbe32102cff46e8c61796455eb910f2435e3d00793225262662de6b59d9d79e871806163093908dd1de6809cc45b84934a53f2b0651dd50 SHA512 6c78af166f88327cb505867a9f8b9431709f585ca92cf274add484c54d0ed1c4b014ac1bd9fa22e564ca495b2c28746c13e71607a2f8dc648f13fb206a912c13
+DIST aws-cli-1.32.33.gh.tar.gz 2647218 BLAKE2B 64b9d1e7f8a769ca30c002d80e302e161d6a4962bd248ff527a0b1682135a3e67e1a7d1c8db477da444b26fd6336c668de5ef7bc8acdabdbce10843b1eb61e18 SHA512 6a0b220220894079b2ad63b9340e07cb2a02165e9e334c9ff3b765d09287b3518dfb47ea6c77781fec6d1b732b663dad474640bc99e2421b280e2056bd237bc3
diff --git a/app-admin/awscli/awscli-1.32.33.ebuild b/app-admin/awscli/awscli-1.32.33.ebuild
new file mode 100644
index 000000000000..4a677affdbc4
--- /dev/null
+++ b/app-admin/awscli/awscli-1.32.33.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2024 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.10.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[@]}" )
+ # 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
+}