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: Thu, 29 Oct 2020 23:38:36
Message-Id: 1604014707.803da4fe4d3bc9fe2ed6f9e3cb606bce7f4bc9cd.mgorny@gentoo
1 commit: 803da4fe4d3bc9fe2ed6f9e3cb606bce7f4bc9cd
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 29 23:08:47 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 29 23:38:27 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=803da4fe
7
8 dev-python/botocore: Bump to 1.19.8
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.8.ebuild | 59 ++++++++++++++++++++++++++++++
14 2 files changed, 60 insertions(+)
15
16 diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest
17 index 5167c714b13..a5ee4db3946 100644
18 --- a/dev-python/botocore/Manifest
19 +++ b/dev-python/botocore/Manifest
20 @@ -9,3 +9,4 @@ DIST botocore-1.19.4.tar.gz 6952148 BLAKE2B 96865c9d3a7d1429a6894a7cc06ed755d1f8
21 DIST botocore-1.19.5.tar.gz 6962056 BLAKE2B 261be573224ec07930f4f833193bae78d5bcdbeef37aededded7fee5717a595d52f7ef63d6e866a69f2d36d55cc0e8b81f962f2b9b6834867820a60acf454b14 SHA512 bb8d248d2d1e7753f67bedb57526d563b217799b70b9382fa908ab91e889fceffbf7fc4ca150a7e2740a3034cbfecaf0026cb5dcac1a38786bda97c3209feca4
22 DIST botocore-1.19.6.tar.gz 6963086 BLAKE2B d9805f95f6bdb5ef85eb474c270b4c37f6150a281c542e64938a1b9ceaed8faa03464a69ca45988eed85f61fc70aef41548dda8112e0d1cf71cc67fb33a6ab47 SHA512 da8c9c00417fa41f8f991babe15ac09dd8dad871548e53d5fe0560a8cffa478fbad0d2ded03fb3e693dbb83076fc578db5217ec9a419ac2c71bf04a4fefd68f1
23 DIST botocore-1.19.7.tar.gz 6966051 BLAKE2B 1693452d50da92134da7e76011ebd7e55bed5aa4b240a886021ab8b517b88ff92424acdf7acf341f186bdb7d3ceb2dd9d04265d98469c1d8f2f99569a4f3a891 SHA512 cce829a8704e8b27f20d14ac84b0a93bbceddf542abc1750361e36b03d2a924b1f8922fdd82e0ee5ebecc98ff38feaa45255061b0f927049dfeb27cc6d8c5a9f
24 +DIST botocore-1.19.8.tar.gz 6970481 BLAKE2B 52d3f8ee7dc38feddb3f7799959624b4baf4b75ebcf3ad8257c25ad13b8a8c3cf526ee187681b6d8f5f6ee874071a02c59bd106cb4b4e23ad9cf13b9aa74deef SHA512 845dfec33f63deee44bfffe81801995bfcc2014880c2d520b927421219279107b0fe44dc84425c0a55ddec73d5ad8aeb34f2b84178e1365d137240a2e94370c7
25
26 diff --git a/dev-python/botocore/botocore-1.19.8.ebuild b/dev-python/botocore/botocore-1.19.8.ebuild
27 new file mode 100644
28 index 00000000000..ca40b64d111
29 --- /dev/null
30 +++ b/dev-python/botocore/botocore-1.19.8.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 +}