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: Fri, 30 Apr 2021 12:22:33
Message-Id: 1619785327.49af6d2021876ecf44e70f4f882a6912d571b9a1.mgorny@gentoo
1 commit: 49af6d2021876ecf44e70f4f882a6912d571b9a1
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 30 07:18:40 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 30 12:22:07 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49af6d20
7
8 dev-python/botocore: Bump to 1.20.61
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.61.ebuild | 59 +++++++++++++++++++++++++++++
14 2 files changed, 60 insertions(+)
15
16 diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest
17 index cdbda42e09b..6e107f8667c 100644
18 --- a/dev-python/botocore/Manifest
19 +++ b/dev-python/botocore/Manifest
20 @@ -12,3 +12,4 @@ DIST botocore-1.20.57.tar.gz 7654823 BLAKE2B 7a92bb0fa470ee6d73eb6289e1b332ef96c
21 DIST botocore-1.20.58.tar.gz 7649484 BLAKE2B eb945897b9c143a7d9149cd9a938de08c6e610da428b8d21cefaacb51606414f90107c6abc91c81bebf4f890bc52adc31ddf3cb942f765557214a91bdda55135 SHA512 9eaa93f9764b732baf7ec3fe9e456b1314f6b253cb19aac7ad8e0e5e3829d1ffda75682d79e20310e3918b2a83c46a451a6f2fb931eecac75be132d358352f76
22 DIST botocore-1.20.59.tar.gz 7649640 BLAKE2B 7757d85d5ecfdc65d7da607824fa9abf56628395cdd1a4196fd0d1833fe97f8a75285083c1c61ee9dd159b778ee3b9fce07903b7e30097bc386cb6108515f39c SHA512 06850bfd59f9ac562569eb5a2a3e5cb7d4104053f0ab31fc315312122d5c861a68f811d422e9f1850c8449c9387ffc72feef9496a9216da359b2c0b8c713110f
23 DIST botocore-1.20.60.tar.gz 7666269 BLAKE2B 1e32a46be67cb23bc26592036296adf1410b7d43888bbb27a156f996fe4db0f7e11a048b584671bbd9fb9f9dc3f426c43ffc7b4515227e373b97c1fa3a6ccdf4 SHA512 55bb5514a150b4fe152d2bdc501ea238cce83a81f9593e8984dd94cbeb80389f1feb9ea840ce64198aa2976d1130962f652620da540330fa9627f4fcd1299eca
24 +DIST botocore-1.20.61.tar.gz 7668184 BLAKE2B 2b48af271b0a7c90f18de0e1742fbf5a7fa9ae024acbcce45c8c18bd5d81b70e83b1be1833aee9ff01e6715c4bc1494483d3f903edde9f76fe3acc5b5f950a64 SHA512 8b79a524c17a70b44587485a27dc5334db8d0f4072beccdbed84599e4405231eaeaeec0a4b0ec01ad302d19c190759b99e80a93b55d2c4f7513045452813373c
25
26 diff --git a/dev-python/botocore/botocore-1.20.61.ebuild b/dev-python/botocore/botocore-1.20.61.ebuild
27 new file mode 100644
28 index 00000000000..4e5d698e619
29 --- /dev/null
30 +++ b/dev-python/botocore/botocore-1.20.61.ebuild
31 @@ -0,0 +1,59 @@
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 +)
69 +
70 +distutils_enable_sphinx docs/source \
71 + 'dev-python/guzzle_sphinx_theme'
72 +distutils_enable_tests nose
73 +
74 +src_prepare() {
75 + # unpin deps
76 + sed -i -e "s:>=.*':':" setup.py || die
77 + # very unstable
78 + sed -i -e 's:test_stress_test_token_bucket:_&:' \
79 + tests/functional/retries/test_bucket.py || die
80 + distutils-r1_src_prepare
81 +}
82 +
83 +python_test() {
84 + # note: suites need to be run separately as one of the unit tests
85 + # seems to be leaking mocks and breaking a few functional tests
86 + nosetests -v tests/unit ||
87 + die "unit tests failed under ${EPYTHON}"
88 + nosetests -v tests/functional ||
89 + die "functional tests failed under ${EPYTHON}"
90 +}