1 |
commit: 6c4cd4a9d73f86edb54673be6ad0bbfde3c7fd8e |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 6 06:57:58 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 6 07:03:14 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c4cd4a9 |
7 |
|
8 |
dev-python/boto3: add 1.22.8 |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/boto3/Manifest | 1 + |
13 |
dev-python/boto3/boto3-1.22.8.ebuild | 65 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 66 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest |
17 |
index 4a5ba00edfe0..28cfd6a30e87 100644 |
18 |
--- a/dev-python/boto3/Manifest |
19 |
+++ b/dev-python/boto3/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST boto3-1.22.4.tar.gz 495554 BLAKE2B 4c06e2101bcc96e4fab7e088f8593c7b1cfd2b07431d4cd062666df6c1f5d55d9b7fb594268e9a86c4793d35bc3d8de2644244728cf62833dfefb62525eedbdc SHA512 26dbd9ed1af900f7466a1767ada3fb8ee86fa09ca21733f857e2748d98525661fc76e69d75440fe913260e75245cf30298493417d055399a242af0aedaffd349 |
22 |
DIST boto3-1.22.7.tar.gz 496523 BLAKE2B 400370268e51b229bd3c465ccc43df93b713e3088baf76cbb7367cdc75b8374b787fee635cc921b431d5e1471a60a990d57a306d8ebdb14f0c462f211b323f99 SHA512 a7b56723a0fd692496a4e397ca29139f0813bfcea365877900441f01f38e5fd15d20a1642a5717940994bdfc840540d38b9a594e2510ab070ae62fadf9b4958b |
23 |
+DIST boto3-1.22.8.tar.gz 496856 BLAKE2B c7707eae7a5966dbe04e86c35270674f532286d3fbed46580836729988e55cdeba872496de750af89de6a7afdc6b19bbe4f8b9025580dc9b825cd04a87530b21 SHA512 43498179a59c2a1c9401f0629fbf0f3ff1dd51d2208ade828ff283b44be28fd539af68d4fb274e5e8c6c01bd03699872cd1a81d006f4c929dcdbf7227f77416f |
24 |
|
25 |
diff --git a/dev-python/boto3/boto3-1.22.8.ebuild b/dev-python/boto3/boto3-1.22.8.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..fd6e0d8ebf01 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/boto3/boto3-1.22.8.ebuild |
30 |
@@ -0,0 +1,65 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+DISTUTILS_USE_PEP517=setuptools |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+ |
39 |
+inherit distutils-r1 multiprocessing |
40 |
+ |
41 |
+DESCRIPTION="The AWS SDK for Python" |
42 |
+HOMEPAGE=" |
43 |
+ https://github.com/boto/boto3/ |
44 |
+ https://pypi.org/project/boto3/ |
45 |
+" |
46 |
+LICENSE="Apache-2.0" |
47 |
+SLOT="0" |
48 |
+ |
49 |
+if [[ "${PV}" == "9999" ]]; then |
50 |
+ EGIT_REPO_URI="https://github.com/boto/boto3" |
51 |
+ inherit git-r3 |
52 |
+ BOTOCORE_PV=${PV} |
53 |
+else |
54 |
+ SRC_URI="https://github.com/boto/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
55 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" |
56 |
+ |
57 |
+ # botocore is x.(y+3).z |
58 |
+ BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 3)).$(ver_cut 3-)" |
59 |
+fi |
60 |
+ |
61 |
+RDEPEND=" |
62 |
+ >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}] |
63 |
+ >=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/s3transfer-0.3.0[${PYTHON_USEDEP}] |
65 |
+" |
66 |
+BDEPEND=" |
67 |
+ test? ( |
68 |
+ dev-python/mock[${PYTHON_USEDEP}] |
69 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
70 |
+ ) |
71 |
+" |
72 |
+ |
73 |
+distutils_enable_sphinx docs/source \ |
74 |
+ 'dev-python/guzzle_sphinx_theme' |
75 |
+distutils_enable_tests pytest |
76 |
+ |
77 |
+python_prepare_all() { |
78 |
+ # don't lock versions to narrow ranges |
79 |
+ sed -e '/botocore/ d' \ |
80 |
+ -e '/jmespath/ d' \ |
81 |
+ -e '/s3transfer/ d' \ |
82 |
+ -i setup.py || die |
83 |
+ |
84 |
+ # do not rely on bundled deps in botocore (sic!) |
85 |
+ find -name '*.py' -exec sed -i \ |
86 |
+ -e 's:from botocore[.]vendored import:import:' \ |
87 |
+ -e 's:from botocore[.]vendored[.]:from :' \ |
88 |
+ {} + || die |
89 |
+ |
90 |
+ distutils-r1_python_prepare_all |
91 |
+} |
92 |
+ |
93 |
+python_test() { |
94 |
+ epytest tests/{functional,unit} -n "$(makeopts_jobs)" |
95 |
+} |