commit:     5d7cb627f8076e800508e4d1391f1cd30e2ab467
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Feb  3 22:58:35 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Feb  3 22:58:35 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d7cb627

dev-python/botocore: Bump to 1.20.1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/botocore/Manifest               |  1 +
 dev-python/botocore/botocore-1.20.1.ebuild | 59 ++++++++++++++++++++++++++++++
 2 files changed, 60 insertions(+)

diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest
index 9f5c78825ab..e7d6d1fffa7 100644
--- a/dev-python/botocore/Manifest
+++ b/dev-python/botocore/Manifest
@@ -6,3 +6,4 @@ DIST botocore-1.19.61.tar.gz 7432779 BLAKE2B 
09fe171532dc5672d5265712b9af1149008
 DIST botocore-1.19.62.tar.gz 7435742 BLAKE2B 
94562f0f42878e5b5aa59e7b36e60c7c8014a356041a9c4e043e3abdf2b029727e05a34a254047374fdbafe830aa982ae6b34682573f8fe2175fa2de3642bf1c
 SHA512 
0c702e207b904593788c7f7a290308730ed2cbe6b67c1566e2c53c45a68d9a5a8a45be67f6a0e2e5e6d1ffce5488508a5680d2f8a83c31f329d1a2878a52e7fb
 DIST botocore-1.19.63.tar.gz 7437996 BLAKE2B 
b55aa80cf4f17538e5876f61492d15916111c216aff455a1366d12293579bd2c3d4e9c5e2a51e91ee117ac0469743b898cd314abc693a466e99fe332deea95c2
 SHA512 
11c616f5574df986f576078c18a1f65149ccd01ac21575fd610e2dec0598387cc4d55c05a8ffeed3e7c2fb1809a699d6c6c0c9b57482cbb895146a6a1cddb65b
 DIST botocore-1.20.0.tar.gz 7440754 BLAKE2B 
1ff36cd0cc4adefaa9ebdd2150c6469a66867a0491c41e7739c26a91742fe3fac3ca323b9aa2e54ae07cd4145d236a093120a2284af95143af7ccdb39dc82ecc
 SHA512 
0cf8c3d2afadc69fee2a2b0795989b7328c24c038cf66fee693612affc7656d76df492e7ae61604ee4e26f5f355cd4ac27909519cddf7dcefa65168eea13db64
+DIST botocore-1.20.1.tar.gz 7443093 BLAKE2B 
62541070fca195777a79619b6270341bed74cf01b41568758136fc8a35b698b42f5739ea37f7a3cbf7677b0b72d715204769c244a3e4f8ab49182d1a5e52eb0e
 SHA512 
b6281b7b3326f548af8830e34f006b9914abc1048ecd2ca8cbbaddf1c222156e12ad9dcd1d6644c3d5d0f8ca4bbb31503a9a362d1bef0af68568c3085be3b420

diff --git a/dev-python/botocore/botocore-1.20.1.ebuild 
b/dev-python/botocore/botocore-1.20.1.ebuild
new file mode 100644
index 00000000000..4e5d698e619
--- /dev/null
+++ b/dev-python/botocore/botocore-1.20.1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{7..9} )
+
+inherit distutils-r1
+
+DESCRIPTION="Low-level, data-driven core of boto 3"
+HOMEPAGE="https://github.com/boto/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 ~x86 ~amd64-linux ~x86-linux"
+fi
+
+RDEPEND="
+       dev-python/six[${PYTHON_USEDEP}]
+       dev-python/jmespath[${PYTHON_USEDEP}]
+       dev-python/python-dateutil[${PYTHON_USEDEP}]
+       >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       test? (
+               dev-python/mock[${PYTHON_USEDEP}]
+               dev-python/jsonschema[${PYTHON_USEDEP}]
+       )
+"
+
+PATCHES=(
+       "${FILESDIR}/1.8.6-tests-pass-all-env-vars-to-cmd-runner.patch"
+)
+
+distutils_enable_sphinx docs/source \
+       'dev-python/guzzle_sphinx_theme'
+distutils_enable_tests nose
+
+src_prepare() {
+       # unpin deps
+       sed -i -e "s:>=.*':':" setup.py || die
+       # very unstable
+       sed -i -e 's:test_stress_test_token_bucket:_&:' \
+               tests/functional/retries/test_bucket.py || die
+       distutils-r1_src_prepare
+}
+
+python_test() {
+       # note: suites need to be run separately as one of the unit tests
+       # seems to be leaking mocks and breaking a few functional tests
+       nosetests -v tests/unit ||
+               die "unit tests failed under ${EPYTHON}"
+       nosetests -v tests/functional ||
+               die "functional tests failed under ${EPYTHON}"
+}

Reply via email to