diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-02-24 22:37:34 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-02-24 23:00:00 +0100 |
commit | 7048878e395cd8eaedeb551eea46bffbcc437823 (patch) | |
tree | cc36b2c571e3b89511f25e79c25122421d1b6e32 /app-admin | |
parent | dev-python/boto3: Bump to 1.21.7 (diff) | |
download | gentoo-7048878e395cd8eaedeb551eea46bffbcc437823.tar.gz gentoo-7048878e395cd8eaedeb551eea46bffbcc437823.tar.bz2 gentoo-7048878e395cd8eaedeb551eea46bffbcc437823.zip |
app-admin/awscli: Bump to 1.22.62
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.22.62.ebuild | 65 |
2 files changed, 66 insertions, 0 deletions
diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest index ec2bd2308259..c3f4f0786590 100644 --- a/app-admin/awscli/Manifest +++ b/app-admin/awscli/Manifest @@ -10,3 +10,4 @@ DIST awscli-1.22.58.tar.gz 2165016 BLAKE2B d7eec5a51a64d3a78555abfd4a3dd70a02b4e DIST awscli-1.22.59.tar.gz 2165629 BLAKE2B f4223e9095a76121a94345219057b94b830c80c233ebec8864110945d71317e94fe2f08f02e059816f1bdd9e1e2f4800e1f9770559bec4df51d5d39286e11bd0 SHA512 0efa161c976e6dd6168a7d8808298a196c0c6e3d4b54c9130efcf88179d6e6f78ae0a231a6c31e1615c84165ba33fffebefccd322442289537c9502102b5ee11 DIST awscli-1.22.60.tar.gz 2165762 BLAKE2B 217c5e889284071eb057b9f345baab711df40879b4ce598ee7ba0fdc1feb30848bd6310de23437902f82d523e10fea4ea2ec0bd607bf3d1beed2fdf9a88bc2eb SHA512 b94bf11f37a5a31ca514d7f667d9a81d3f2b6cca61593f2d0cf70bf706a9a264b388504c84a0e6848d93ba23cea4562c47a4fb506150d37f127094c526664fd9 DIST awscli-1.22.61.tar.gz 2166385 BLAKE2B e260968803cf274ec6f260bd45bfed4243f70632b7888464c46c199cf9cda746c7e31e3d11fd542abbffdbf0e614a6089cc3cee24f315d3da4e0d68153613186 SHA512 48866b572fd071166e1e5e189bbde7e797a547fbb50ea665a619fc074d6861d56e8b6016a7efbe957df02969e3f998337409979b67551f6229b15375011d989c +DIST awscli-1.22.62.tar.gz 2167585 BLAKE2B 39141893c979b0047a45a9aea210d03340fc8fcade9d092297caba07f487faba6304f755e6ab878079a7b9fa6d49a995d57a06334cabcc06d1d1eaad430af03c SHA512 ef9d826e51aa42582a7efa5b599482411e39e056bbee1896a5c67a12c726ece88db0fb314abe7f3c9a7f361ce45fe8de53304bd1375d7a72b822aed79752f5e4 diff --git a/app-admin/awscli/awscli-1.22.62.ebuild b/app-admin/awscli/awscli-1.22.62.ebuild new file mode 100644 index 000000000000..21a285d18863 --- /dev/null +++ b/app-admin/awscli/awscli-1.22.62.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) +inherit bash-completion-r1 distutils-r1 multiprocessing + +DESCRIPTION="Universal Command Line Environment for AWS" +HOMEPAGE="https://pypi.org/project/awscli/" +#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" +SRC_URI="https://github.com/aws/aws-cli/archive/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/aws-cli-${PV}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +# awscli 1.22.55 → botocore 1.24.0 +# so botocore is x.(y+2).(z-55) +BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(( $(ver_cut 3-) - 55))" +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.4.0[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +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() { + # integration tests require AWS credentials and Internet access + epytest tests/{functional,unit} \ + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" +} + +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 +} |