summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-02-18 09:20:41 +0100
committerMichał Górny <mgorny@gentoo.org>2022-02-18 10:18:59 +0100
commitf4c58dea2eb37719c3349d2f6699645b81bbee5f (patch)
treebaa89c5945f3a17d49341e0fc29f70dd60272187 /dev-python/boto3
parentdev-python/botocore: Bump to 1.24.2 (diff)
downloadgentoo-f4c58dea2eb37719c3349d2f6699645b81bbee5f.tar.gz
gentoo-f4c58dea2eb37719c3349d2f6699645b81bbee5f.tar.bz2
gentoo-f4c58dea2eb37719c3349d2f6699645b81bbee5f.zip
dev-python/boto3: Bump to 1.21.2
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/boto3')
-rw-r--r--dev-python/boto3/Manifest1
-rw-r--r--dev-python/boto3/boto3-1.21.2.ebuild60
2 files changed, 61 insertions, 0 deletions
diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest
index 2072193680ac..4e7d778f5bca 100644
--- a/dev-python/boto3/Manifest
+++ b/dev-python/boto3/Manifest
@@ -5,3 +5,4 @@ DIST boto3-1.20.49.tar.gz 466426 BLAKE2B 82f2ed7f14576afd5a4d2dab91b99986904fef9
DIST boto3-1.20.54.tar.gz 468340 BLAKE2B 4b7406411200f7af7768c2ed213d623ff6ce607451abd9242c1fd3654132445bc40fd7d608ef9adad143883755e6729f42c223ace2037aca886ecc38f130d166 SHA512 8d82a433eae2b57fe5b3057d42f25769cf70f5e24db1b680c32a34e605caf573e273daae82164c746a6f6cf2c75d67e19bf99efd6ebe27d195aeb67dd8555808
DIST boto3-1.21.0.tar.gz 468664 BLAKE2B 7d118b2d91a7d8fa38c27a218fc2eb8e8964f0974ddbaf84b92a9bf2ada884738b22d603fe9665ee27191508ea916e1bb8aeaa2eafb43162b7bbf0c48424415e SHA512 b3f9831c43dd3223dd72daeb4aeba9483927913570ffaee7d2d19736dca4fe587cca8703e8ec887440bc0abba55c0094bc2cf824f3e1982b626af11acec18290
DIST boto3-1.21.1.tar.gz 469079 BLAKE2B c2a30539709c7c9741e3a34d5d352a31a0997cfadc29bb3b86c32c602229077414485b77c58718f2a519a5bb2ec8a3d7bfe1d6ef2daf26a8a4ae3c804c636464 SHA512 a94d195cbcee2b18877502eca9a79f231519f63712c7522ede23357d1117885e1fd2cce91d3698527d7f19140e08d68dd7272ef1278b9cbad86c77d81aa2661b
+DIST boto3-1.21.2.tar.gz 469425 BLAKE2B a49c1280610bcb0564ad357570712224abdc032e807926be7bc0d0652503381b2b854e94ced12c95765f9c30ff62128ec0bff4d38d33e8a7a3d5a8d397de084b SHA512 bcd578c8b0665fc2951897d67279a7075d451a47cad70b59047c1cf66e26fd07f9f90ff8c69f9bc21038042dc6398944c02ebcc355dc8750d0613a11a0c3a2c6
diff --git a/dev-python/boto3/boto3-1.21.2.ebuild b/dev-python/boto3/boto3-1.21.2.ebuild
new file mode 100644
index 000000000000..48ea5aa483a1
--- /dev/null
+++ b/dev-python/boto3/boto3-1.21.2.ebuild
@@ -0,0 +1,60 @@
+# 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 distutils-r1
+
+DESCRIPTION="The AWS SDK for Python"
+HOMEPAGE="https://github.com/boto/boto3"
+LICENSE="Apache-2.0"
+SLOT="0"
+
+if [[ "${PV}" == "9999" ]]; then
+ EGIT_REPO_URI="https://github.com/boto/boto3"
+ inherit git-r3
+ BOTOCORE_PV=${PV}
+else
+ SRC_URI="https://github.com/boto/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
+
+ # botocore is x.(y+3).z
+ BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 3)).$(ver_cut 3-)"
+fi
+
+RDEPEND="
+ >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
+ >=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}]
+ >=dev-python/s3transfer-0.3.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ dev-python/mock[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_sphinx docs/source \
+ 'dev-python/guzzle_sphinx_theme'
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ # don't lock versions to narrow ranges
+ sed -e '/botocore/ d' \
+ -e '/jmespath/ d' \
+ -e '/s3transfer/ d' \
+ -i setup.py || die
+
+ # 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
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ epytest tests/{functional,unit}
+}