Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/botocore/
Date: Mon, 13 Sep 2021 20:31:23
Message-Id: 1631565066.677b05d6289e4854d451c5215c749c9d651c2c41.mgorny@gentoo
1 commit: 677b05d6289e4854d451c5215c749c9d651c2c41
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 13 20:00:23 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 13 20:31:06 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=677b05d6
7
8 dev-python/botocore: Bump to 1.21.41
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/botocore/Manifest | 1 +
13 dev-python/botocore/botocore-1.21.41.ebuild | 59 +++++++++++++++++++++++++++++
14 2 files changed, 60 insertions(+)
15
16 diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest
17 index 4eea1fe342c..314ebe366b8 100644
18 --- a/dev-python/botocore/Manifest
19 +++ b/dev-python/botocore/Manifest
20 @@ -1,2 +1,3 @@
21 DIST botocore-1.21.28.tar.gz 8079306 BLAKE2B 26dce445746a9da1b0cf62b622597396f9b4e735701f9260fd9863410b28b884e70e41b446b8349df39c81696b64632450f4ebb3e3f7865175e538f1b465898c SHA512 29534e51465bc7ac7b6f2e2c48472768c26caa5089f4c7f4a23cc2411fd55fde473388ad181a0b5a36650a6c1252ecb3e2b65e30510adc40f6edd6ce0c89f484
22 DIST botocore-1.21.40.tar.gz 8149052 BLAKE2B 0554e2b9caa08b7518f1b51b5a980d98926782f0d4d523fa5c40dc66ecdf2db75719a36a2bf320c8d473119030693e0d1ab6bc7ea34c0574de7488bff5d7e411 SHA512 5466e15f8c09f3b4df13aee951d65219be86ccf1c0e73ed17e50fb7e2418f4694409676804bf6cf3ca638419512d903708e0994cff1f8105a19f0e26f0cabc31
23 +DIST botocore-1.21.41.tar.gz 8152451 BLAKE2B e236a8f0f64bd18c138dc168c74cefe7af598ad72def9e1faeba222b07f01a65fb7f74627afe470f2894794fd3a617aaa1d789a983606de9329db58c5db2d975 SHA512 540848ccb054340f22c20930a3f867754accd15c6f084dd20ca97184d1c5e390d68f21272d68087b99ae6676d05cbc187e61c88dd0df09cc033e01f1ac1af0ac
24
25 diff --git a/dev-python/botocore/botocore-1.21.41.ebuild b/dev-python/botocore/botocore-1.21.41.ebuild
26 new file mode 100644
27 index 00000000000..30e0988848a
28 --- /dev/null
29 +++ b/dev-python/botocore/botocore-1.21.41.ebuild
30 @@ -0,0 +1,59 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="Low-level, data-driven core of boto 3"
40 +HOMEPAGE="https://github.com/boto/botocore"
41 +LICENSE="Apache-2.0"
42 +SLOT="0"
43 +
44 +if [[ "${PV}" == "9999" ]]; then
45 + EGIT_REPO_URI="https://github.com/boto/botocore"
46 + inherit git-r3
47 +else
48 + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
49 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
50 +fi
51 +
52 +RDEPEND="
53 + dev-python/six[${PYTHON_USEDEP}]
54 + dev-python/jmespath[${PYTHON_USEDEP}]
55 + dev-python/python-dateutil[${PYTHON_USEDEP}]
56 + >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
57 +"
58 +BDEPEND="
59 + test? (
60 + dev-python/mock[${PYTHON_USEDEP}]
61 + dev-python/jsonschema[${PYTHON_USEDEP}]
62 + )
63 +"
64 +
65 +PATCHES=(
66 + "${FILESDIR}/1.8.6-tests-pass-all-env-vars-to-cmd-runner.patch"
67 +)
68 +
69 +distutils_enable_sphinx docs/source \
70 + 'dev-python/guzzle_sphinx_theme'
71 +distutils_enable_tests nose
72 +
73 +src_prepare() {
74 + # unpin deps
75 + sed -i -e "s:>=.*':':" setup.py || die
76 + # very unstable
77 + sed -i -e 's:test_stress_test_token_bucket:_&:' \
78 + tests/functional/retries/test_bucket.py || die
79 + distutils-r1_src_prepare
80 +}
81 +
82 +python_test() {
83 + # note: suites need to be run separately as one of the unit tests
84 + # seems to be leaking mocks and breaking a few functional tests
85 + nosetests -v tests/unit ||
86 + die "unit tests failed under ${EPYTHON}"
87 + nosetests -v tests/functional ||
88 + die "functional tests failed under ${EPYTHON}"
89 +}