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, 17 May 2022 06:54:38
Message-Id: 1652770459.0e73226660b92dab455ac88bc6d3d7e5648f2389.mgorny@gentoo
1 commit: 0e73226660b92dab455ac88bc6d3d7e5648f2389
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 17 05:05:04 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 17 06:54:19 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e732266
7
8 dev-python/botocore: Bump to 1.26.1
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.26.1.ebuild | 71 ++++++++++++++++++++++++++++++
14 2 files changed, 72 insertions(+)
15
16 diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest
17 index 721e54721f43..07baf32c69f4 100644
18 --- a/dev-python/botocore/Manifest
19 +++ b/dev-python/botocore/Manifest
20 @@ -7,3 +7,4 @@ DIST botocore-1.25.7.tar.gz 8961319 BLAKE2B 1d22e3cd625252f1e6c6b13b9317750b4876
21 DIST botocore-1.25.8.tar.gz 8961194 BLAKE2B 4a13f5b01352ff0cb8932431e9431229a73fe922c2719ee571fa26ed55faa0315e0bdd561dcf2069748d13c809c7c5b7e2a35051d5d8bbd498677658b69ff454 SHA512 bc78c24629308d4d8cb4190646b7f465713a5462c54ff0946fdbcfa8b87951fa337a2f8f97bbd27991a79da03d140b890f2b021f865c7550b791d2fbb95282a1
22 DIST botocore-1.25.9.tar.gz 8962451 BLAKE2B 5930499f514d5e9b9f0fa0c87a2461071a0432bb3957779a4669448bd7b34e94a5339598703419f36c01e505c8487217a4f525ce63832bc97ad35ef584ef45f3 SHA512 533c5ff383e53aa2b00a83b182207e9dd2d40ea000c7a0f1e74e30989c6c15f54fd26eb67375ceeb90c1a6ab158bda7de75ac40fe6b14614209ebb7063b9e2a1
23 DIST botocore-1.26.0.tar.gz 8968864 BLAKE2B fc07441c4a759273a1abe6826048082b0e2ce38964de507a9091d5898d998ffb30e9bab835c9a6be2d3d01c15813230fda3a1d0457c5e7aa8573fc262cd9e4d4 SHA512 2bc8cd2c7db5549fa1f8f1364d42a4a6463b1fc8d0a80cd5026ec5f765b2a02108274eb33a6d5d00b3bb07a30351b458e1829b547c07134420a6aed343526990
24 +DIST botocore-1.26.1.tar.gz 8972136 BLAKE2B cf5d18d87fe5e78f6bb623e82dea9ec712867301e7b1fdd46724eb3aa37b7395d91dc206bc9329df96bab9c8072c8b071eaaea767848794db349982c630ab0d2 SHA512 c18160d1eb6f9feb6b4db2441c360112c1d8f88d8d2a3624f89b6ee4815c200c68d70601fbea1c93682af506cc6809a7e34568f543a25adbfd7ca09c309236ff
25
26 diff --git a/dev-python/botocore/botocore-1.26.1.ebuild b/dev-python/botocore/botocore-1.26.1.ebuild
27 new file mode 100644
28 index 000000000000..f9d3152de4e1
29 --- /dev/null
30 +++ b/dev-python/botocore/botocore-1.26.1.ebuild
31 @@ -0,0 +1,71 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DISTUTILS_USE_PEP517=setuptools
38 +PYTHON_COMPAT=( python3_{8..11} )
39 +
40 +inherit distutils-r1 multiprocessing
41 +
42 +DESCRIPTION="Low-level, data-driven core of boto 3"
43 +HOMEPAGE="
44 + https://github.com/boto/botocore/
45 + https://pypi.org/project/botocore/
46 +"
47 +LICENSE="Apache-2.0"
48 +SLOT="0"
49 +
50 +if [[ "${PV}" == "9999" ]]; then
51 + EGIT_REPO_URI="https://github.com/boto/botocore"
52 + inherit git-r3
53 +else
54 + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
55 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
56 +fi
57 +
58 +RDEPEND="
59 + dev-python/six[${PYTHON_USEDEP}]
60 + <dev-python/jmespath-2[${PYTHON_USEDEP}]
61 + dev-python/python-dateutil[${PYTHON_USEDEP}]
62 + >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
63 +"
64 +BDEPEND="
65 + test? (
66 + dev-python/jsonschema[${PYTHON_USEDEP}]
67 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
68 + )
69 +"
70 +
71 +PATCHES=(
72 + "${FILESDIR}/1.8.6-tests-pass-all-env-vars-to-cmd-runner.patch"
73 + "${FILESDIR}/botocore-1.26.0-py311.patch"
74 +)
75 +
76 +distutils_enable_sphinx docs/source \
77 + 'dev-python/guzzle_sphinx_theme'
78 +distutils_enable_tests pytest
79 +
80 +src_prepare() {
81 + # unpin deps
82 + sed -i -e "s:>=.*':':" setup.py || die
83 +
84 + # unbundle deps
85 + rm -r botocore/vendored || die
86 + find -name '*.py' -exec sed -i \
87 + -e 's:from botocore[.]vendored import:import:' \
88 + -e 's:from botocore[.]vendored[.]:from :' \
89 + {} + || die
90 +
91 + distutils-r1_src_prepare
92 +}
93 +
94 +python_test() {
95 + local EPYTEST_DESELECT=(
96 + # rely on bundled six
97 + tests/functional/test_six_imports.py::test_no_bare_six_imports
98 + tests/functional/test_six_threading.py::test_six_thread_safety
99 + )
100 +
101 + epytest tests/{functional,unit} -n "$(makeopts_jobs)"
102 +}