diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-03-08 05:27:18 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-03-08 06:40:19 +0100 |
commit | 9f0c3af3c3f75fa93997d73039864a6466815895 (patch) | |
tree | 63d9c925aa5e2004b125f455580cd58c3df51c5d /app-admin | |
parent | dev-python/boto3: Bump to 1.34.58 (diff) | |
download | gentoo-9f0c3af3c3f75fa93997d73039864a6466815895.tar.gz gentoo-9f0c3af3c3f75fa93997d73039864a6466815895.tar.bz2 gentoo-9f0c3af3c3f75fa93997d73039864a6466815895.zip |
app-admin/awscli: Bump to 1.32.58
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/awscli/Manifest | 1 | ||||
-rw-r--r-- | app-admin/awscli/awscli-1.32.58.ebuild | 90 |
2 files changed, 91 insertions, 0 deletions
diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest index ad245b452a8d..9fdf0722437c 100644 --- a/app-admin/awscli/Manifest +++ b/app-admin/awscli/Manifest @@ -4,3 +4,4 @@ DIST aws-cli-1.32.54.gh.tar.gz 2656395 BLAKE2B 7f41ac7bb0b11ef851cbc1793c202dd38 DIST aws-cli-1.32.55.gh.tar.gz 2656402 BLAKE2B 8ff707317be8c9d686cf11c8e1846e2f77bdaeaea327f98243e4c907f5c1f716ac8255cafb74faeea1ed65f683ed777c4561d05343a601489e772d6449735ee6 SHA512 ff796aee3b2127c3a11afae1642a5da8cc2229382858a30c2a05f48d1a4417317c88b2de5763ee3fd859d2b87ed42f105e27f2cb7d0fb09e835df501af5bb32d DIST aws-cli-1.32.56.gh.tar.gz 2656488 BLAKE2B 79f88813757cf30430f8b8ba08798447e8e4f2b4e9359b8a57ee1cfa289e47e38c9d608df89bbec390b860f3ed89d19408b6c3112857c66edbd3d30f2f5ed43d SHA512 af445266266d739b98d844e9718a0cf661f541e464cc7c07cf770528590867b3e9fc5e9b4472e638c0b7952eae50bdf0a6cb8860e1497a1347c5fb43e6315a3f DIST aws-cli-1.32.57.gh.tar.gz 2656770 BLAKE2B 008133ab151d103fcf6f00ee953e0c4ab85d401263606da1ae91231a8c2ef1f7c5238c30e127741bb3899ef532d272d6231bb76cb54d673c3234a634343b45d2 SHA512 b3ff04b57fb19ee2d0eb1f57e3559dd36297fa8e1027d3958257508aa88202feccf0af6f86f64b779232a013bb819a06cd5314429f442d2e13b6d2a983b1f20f +DIST aws-cli-1.32.58.gh.tar.gz 2658262 BLAKE2B f3782758f3f2bb87457f1a66b9e06fabbee1c27dd44af4db87744303de3bb072065d6a657af8e0e64010bf4d7ccd281751489330cf61cd30426a61ebb0dd8d0d SHA512 293d6d99ec2cfe180beab5e127c0dd589fb88fdf6590d4ff0a302fa14f6a7bf0294e9ef1f21729f668a8848baecef17750f0eda01d26476790c8b82cb6d608eb diff --git a/app-admin/awscli/awscli-1.32.58.ebuild b/app-admin/awscli/awscli-1.32.58.ebuild new file mode 100644 index 000000000000..4a677affdbc4 --- /dev/null +++ b/app-admin/awscli/awscli-1.32.58.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 +} |