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: Wed, 18 May 2022 07:00:00
Message-Id: 1652857187.4304fc7724f01f7bd9c1bb1bf66bab02e564a4e6.mgorny@gentoo
1 commit: 4304fc7724f01f7bd9c1bb1bf66bab02e564a4e6
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 18 05:59:20 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed May 18 06:59:47 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4304fc77
7
8 dev-python/botocore: Bump to 1.26.2
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.2.ebuild | 71 ++++++++++++++++++++++++++++++
14 2 files changed, 72 insertions(+)
15
16 diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest
17 index 5b91aa86cfbd..6a3063caa019 100644
18 --- a/dev-python/botocore/Manifest
19 +++ b/dev-python/botocore/Manifest
20 @@ -1,3 +1,4 @@
21 DIST botocore-1.25.9.tar.gz 8962451 BLAKE2B 5930499f514d5e9b9f0fa0c87a2461071a0432bb3957779a4669448bd7b34e94a5339598703419f36c01e505c8487217a4f525ce63832bc97ad35ef584ef45f3 SHA512 533c5ff383e53aa2b00a83b182207e9dd2d40ea000c7a0f1e74e30989c6c15f54fd26eb67375ceeb90c1a6ab158bda7de75ac40fe6b14614209ebb7063b9e2a1
22 DIST botocore-1.26.0.tar.gz 8968864 BLAKE2B fc07441c4a759273a1abe6826048082b0e2ce38964de507a9091d5898d998ffb30e9bab835c9a6be2d3d01c15813230fda3a1d0457c5e7aa8573fc262cd9e4d4 SHA512 2bc8cd2c7db5549fa1f8f1364d42a4a6463b1fc8d0a80cd5026ec5f765b2a02108274eb33a6d5d00b3bb07a30351b458e1829b547c07134420a6aed343526990
23 DIST botocore-1.26.1.tar.gz 8972136 BLAKE2B cf5d18d87fe5e78f6bb623e82dea9ec712867301e7b1fdd46724eb3aa37b7395d91dc206bc9329df96bab9c8072c8b071eaaea767848794db349982c630ab0d2 SHA512 c18160d1eb6f9feb6b4db2441c360112c1d8f88d8d2a3624f89b6ee4815c200c68d70601fbea1c93682af506cc6809a7e34568f543a25adbfd7ca09c309236ff
24 +DIST botocore-1.26.2.tar.gz 8990271 BLAKE2B 95ddae48b54ba0455959a95eb4dc992bf1a28b5b0004c8004298bea30eb729cc20d0bf7b189a0e62a12939365fd106ccfc06a00092b3229077b665bdcaebd86f SHA512 df478a29511a9436bcab16dca448d4d196988402a326fd8be8f0dd4fbfab0b97ef16b31f241c44e9f9973bbeafc99d79f317838e0e6a83f25299218fd5fce1ac
25
26 diff --git a/dev-python/botocore/botocore-1.26.2.ebuild b/dev-python/botocore/botocore-1.26.2.ebuild
27 new file mode 100644
28 index 000000000000..f9d3152de4e1
29 --- /dev/null
30 +++ b/dev-python/botocore/botocore-1.26.2.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 +}