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