summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-06-01 09:22:36 +0200
committerMichał Górny <mgorny@gentoo.org>2022-06-01 10:02:47 +0200
commit0dea9ed972fe60a9721f36658c259f3c1de0f625 (patch)
tree8ec583c241b9da0d73db5b6cc07ae147f8629e2a /dev-python
parentkde-misc/wacomtablet: Subscribe to dev-libs/libwacom subslot (diff)
downloadgentoo-0dea9ed972fe60a9721f36658c259f3c1de0f625.tar.gz
gentoo-0dea9ed972fe60a9721f36658c259f3c1de0f625.tar.bz2
gentoo-0dea9ed972fe60a9721f36658c259f3c1de0f625.zip
dev-python/botocore: Bump to 1.27.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/botocore/Manifest1
-rw-r--r--dev-python/botocore/botocore-1.27.0.ebuild70
2 files changed, 71 insertions, 0 deletions
diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest
index 09ef0463627f..da8d2585b1cd 100644
--- a/dev-python/botocore/Manifest
+++ b/dev-python/botocore/Manifest
@@ -10,3 +10,4 @@ DIST botocore-1.26.6.tar.gz 8998364 BLAKE2B f4e735b919ab6343419fb37945e3fbbf253d
DIST botocore-1.26.7.tar.gz 9004937 BLAKE2B 7aaa6e7383ba2dae73477bf498028175d5c62945428facf34c7f9b1145a8715a970383cea316f89e5727171c92bf1fd9f25f772335ecfbfcb0be6e5f8de39a2d SHA512 362e2f213cd51271608fc1501845a74a9702fb60ee6619cedc7baf3a37c3dedd12976b51bd182cb4601f2c33e3ebc5358356365d9e32ba8eff308ee5775178ac
DIST botocore-1.26.8.tar.gz 8996827 BLAKE2B fb7b30a1f013e9625f20980bdfd2192bc57044f5b7f277e35c8495414bd6b0c99c10d6a9d02c68e67a244249695db7ad3c9cee00db9b46114ec92c8504a07ceb SHA512 93223e428d2464eb2bca1806ba1574d43da07c457aaada8d7839fe1508258d4f8ed7ad644539ec8b5a80307e436f4654f549b23704199ba0d4bd7fcefff2c6fd
DIST botocore-1.26.9.tar.gz 9005786 BLAKE2B c68e4ca970a4b66e95fae1b5fea1c4515994e9313c608044afe94bdfc27a2df098a8163f143f7d991960c4e5cb07080cf3dcff2c29f9db248d680b3172bed816 SHA512 adbc339738cc8506a3333f13650e835c316528c0212c4dea61049257aae7cb766619c520dfc3c482e8559b32623e92986e19042ebb23db37da2c89b4b2c1e489
+DIST botocore-1.27.0.tar.gz 9013575 BLAKE2B e00cf7d071bc510a96e32bbc41bb0b3a151974c0c10ada01fc8222d261e680b938f248ffddd5985c8ff92bb3a4a8021a6e3867870d5411cd9ba8544b12f41dfc SHA512 386128c57a584cd6b8d51ff46817678e18292cef3f22194c64abfa007418b9ef906e85d0c0f731e0e8efc8e6a01aa71ba9230c94f86c6d0c248d385a1f79e5d9
diff --git a/dev-python/botocore/botocore-1.27.0.ebuild b/dev-python/botocore/botocore-1.27.0.ebuild
new file mode 100644
index 000000000000..2fb86c59b25e
--- /dev/null
+++ b/dev-python/botocore/botocore-1.27.0.ebuild
@@ -0,0 +1,70 @@
+# 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..11} )
+
+inherit distutils-r1 multiprocessing
+
+DESCRIPTION="Low-level, data-driven core of boto 3"
+HOMEPAGE="
+ https://github.com/boto/botocore/
+ https://pypi.org/project/botocore/
+"
+LICENSE="Apache-2.0"
+SLOT="0"
+
+if [[ "${PV}" == "9999" ]]; then
+ EGIT_REPO_URI="https://github.com/boto/botocore"
+ inherit git-r3
+else
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
+fi
+
+RDEPEND="
+ dev-python/six[${PYTHON_USEDEP}]
+ <dev-python/jmespath-2[${PYTHON_USEDEP}]
+ dev-python/python-dateutil[${PYTHON_USEDEP}]
+ >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ dev-python/jsonschema[${PYTHON_USEDEP}]
+ dev-python/pytest-xdist[${PYTHON_USEDEP}]
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/botocore-1.26.0-py311.patch"
+)
+
+distutils_enable_sphinx docs/source \
+ 'dev-python/guzzle_sphinx_theme'
+distutils_enable_tests pytest
+
+src_prepare() {
+ # unpin deps
+ sed -i -e "s:>=.*':':" setup.py || die
+
+ # unbundle deps
+ rm -r botocore/vendored || die
+ find -name '*.py' -exec sed -i \
+ -e 's:from botocore[.]vendored import:import:' \
+ -e 's:from botocore[.]vendored[.]:from :' \
+ {} + || die
+
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ local EPYTEST_DESELECT=(
+ # rely on bundled six
+ tests/functional/test_six_imports.py::test_no_bare_six_imports
+ tests/functional/test_six_threading.py::test_six_thread_safety
+ )
+
+ epytest tests/{functional,unit} -n "$(makeopts_jobs)"
+}