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: Tue, 04 May 2021 22:56:41
Message-Id: 1620168977.bdbca28f8bec02cc9fa65ef1ce8123eaaec6729e.mgorny@gentoo
1 commit: bdbca28f8bec02cc9fa65ef1ce8123eaaec6729e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 4 22:10:00 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 4 22:56:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdbca28f
7
8 dev-python/botocore: Bump to 1.20.65
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.20.65.ebuild | 60 +++++++++++++++++++++++++++++
14 2 files changed, 61 insertions(+)
15
16 diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest
17 index 248c5903d73..bada8c6ac05 100644
18 --- a/dev-python/botocore/Manifest
19 +++ b/dev-python/botocore/Manifest
20 @@ -15,3 +15,4 @@ DIST botocore-1.20.60.tar.gz 7666269 BLAKE2B 1e32a46be67cb23bc26592036296adf1410
21 DIST botocore-1.20.61.tar.gz 7668184 BLAKE2B 2b48af271b0a7c90f18de0e1742fbf5a7fa9ae024acbcce45c8c18bd5d81b70e83b1be1833aee9ff01e6715c4bc1494483d3f903edde9f76fe3acc5b5f950a64 SHA512 8b79a524c17a70b44587485a27dc5334db8d0f4072beccdbed84599e4405231eaeaeec0a4b0ec01ad302d19c190759b99e80a93b55d2c4f7513045452813373c
22 DIST botocore-1.20.62.tar.gz 7674812 BLAKE2B 6fec1213c13bc12937f45c2584ce52532ea75d6973e9741d18933dc399e8f0ec569d6aacdf4a9f83f997ff9898cb39c327410965d992836bbfbd9aa06ea81311 SHA512 ae25e2266955964de7be499fe17b64dd5008b1c1abec84167593b04a1bd4f7baa506f91013b292cd42aae01990ec3523d75e3529398185fdaedc358bb5048e83
23 DIST botocore-1.20.64.tar.gz 7685481 BLAKE2B d939b262f04a67918fe61ba0789a4ac9a73bd571096fde881ad537bd7b193798960096ea6d966b49634f33454845c8227786c7bb16c0008e8b5dd84591c2e018 SHA512 a2e82988e59f05ae7050b3e8f86b379dde83f516736c9ca133c0fa678cb7c6ba5448e2165cb0ab3f4262e8e3681ede37048508092ba62313e6ce3f89700c8827
24 +DIST botocore-1.20.65.tar.gz 7689179 BLAKE2B 4f831519c785747b48351b9820fe00efb39ae9157ff11604b6d850b9768a6613ad54b3db9071dedf51e0e9209f3741f35d7e21e953842d1bc89db52b22779d41 SHA512 1936955ab69aaa7d82ea2dc522603162b00e3a9ca39b5911ccd4f3d78688ff1375c4e2abc65638a517a5d7a07076c1c7d6fb81529c6d5cfbe9c13254c3736777
25
26 diff --git a/dev-python/botocore/botocore-1.20.65.ebuild b/dev-python/botocore/botocore-1.20.65.ebuild
27 new file mode 100644
28 index 00000000000..f051cb0e68a
29 --- /dev/null
30 +++ b/dev-python/botocore/botocore-1.20.65.ebuild
31 @@ -0,0 +1,60 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +PYTHON_COMPAT=( python3_{7..9} )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Low-level, data-driven core of boto 3"
41 +HOMEPAGE="https://github.com/boto/botocore"
42 +LICENSE="Apache-2.0"
43 +SLOT="0"
44 +
45 +if [[ "${PV}" == "9999" ]]; then
46 + EGIT_REPO_URI="https://github.com/boto/botocore"
47 + inherit git-r3
48 +else
49 + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
50 + KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
51 +fi
52 +
53 +RDEPEND="
54 + dev-python/six[${PYTHON_USEDEP}]
55 + dev-python/jmespath[${PYTHON_USEDEP}]
56 + dev-python/python-dateutil[${PYTHON_USEDEP}]
57 + >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
58 +"
59 +BDEPEND="
60 + test? (
61 + dev-python/mock[${PYTHON_USEDEP}]
62 + dev-python/jsonschema[${PYTHON_USEDEP}]
63 + )
64 +"
65 +
66 +PATCHES=(
67 + "${FILESDIR}/1.8.6-tests-pass-all-env-vars-to-cmd-runner.patch"
68 + "${FILESDIR}/botocore-1.20.64-bpo43882.patch"
69 +)
70 +
71 +distutils_enable_sphinx docs/source \
72 + 'dev-python/guzzle_sphinx_theme'
73 +distutils_enable_tests nose
74 +
75 +src_prepare() {
76 + # unpin deps
77 + sed -i -e "s:>=.*':':" setup.py || die
78 + # very unstable
79 + sed -i -e 's:test_stress_test_token_bucket:_&:' \
80 + tests/functional/retries/test_bucket.py || die
81 + distutils-r1_src_prepare
82 +}
83 +
84 +python_test() {
85 + # note: suites need to be run separately as one of the unit tests
86 + # seems to be leaking mocks and breaking a few functional tests
87 + nosetests -v tests/unit ||
88 + die "unit tests failed under ${EPYTHON}"
89 + nosetests -v tests/functional ||
90 + die "functional tests failed under ${EPYTHON}"
91 +}