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, 22 Dec 2020 08:07:09
Message-Id: 1608624417.50b174047e6c503e19c3df1b088f8fb4dc827682.mgorny@gentoo
1 commit: 50b174047e6c503e19c3df1b088f8fb4dc827682
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 22 07:12:21 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 22 08:06:57 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50b17404
7
8 dev-python/botocore: Bump to 1.19.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.19.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 f12aca30ea6..5907eb04af7 100644
18 --- a/dev-python/botocore/Manifest
19 +++ b/dev-python/botocore/Manifest
20 @@ -2,3 +2,4 @@ DIST botocore-1.19.23.tar.gz 7090433 BLAKE2B c5b6801e169b7c0325b33b005be0e409644
21 DIST botocore-1.19.30.tar.gz 7224700 BLAKE2B 50712be7e6e4a8a22607d567a8d227bbc6d9a7156c245a9faa5adf0e94364d5e5738dd558534e072d071e88315fd79555454fd5f36dfb5d309effca6a39f2247 SHA512 8d9a0becad072ac01e04c1709e8851344bbcd35ecb6c269cace7c229e3b2e48b8fd91ca31be96c67831030a75a63027e8700772601a65eb529bcfd8a58434b6c
22 DIST botocore-1.19.36.tar.gz 7291325 BLAKE2B d1f79298a0f47d704418cac8390a5d500b1f300fc9bdbc0b215a3630adb70c29a951c6dff2a6ebfde42872cbc3af4c442d09fa0233b2c957521e6a5e05816c60 SHA512 420ad7c59496b2b74ba6ecde8dc40ac3e47c5676335f7471448fcdde5b70bda3bd7516963788d8a7a940aaa9cf488b6529e6fbd2842806f58520cd8e2dc15a60
23 DIST botocore-1.19.40.tar.gz 7371480 BLAKE2B afd861d013b78487ff2a6d47a531536f3928c6e21dc88dc1a203d90e335c688a530bc9b253f325a641f4b31fc592dcec39d880e1962118b22a170229c54dbd29 SHA512 9d59a80864926a6ffcee7bd35ae1bc70cb5c373eba97318737f8485d8dc45a3efb4719dd6de64ced58077462eae445862708c04f2e936da6bf1fd7a0c24b3401
24 +DIST botocore-1.19.41.tar.gz 7368333 BLAKE2B d70ebbcfe4e4d44893f69214bda2341f047ef036434d37bdf3ec632745ac20c30f7321a03ecbfb8e8cdf42052e27a40e8f6c02ab57e471ca7d78ef28640d1029 SHA512 63edfaa02f8b79caca70611cb3ed16732813c072473ab39a4f7525cab882e2b1fac1b4a3664524db76d6288cdb4b6f650492432acaa38e2dd63b46baa7d6d0a2
25
26 diff --git a/dev-python/botocore/botocore-1.19.41.ebuild b/dev-python/botocore/botocore-1.19.41.ebuild
27 new file mode 100644
28 index 00000000000..ca40b64d111
29 --- /dev/null
30 +++ b/dev-python/botocore/botocore-1.19.41.ebuild
31 @@ -0,0 +1,59 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +PYTHON_COMPAT=( python3_{6..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 +}