1 |
commit: 1792159445f5183086255952d462f82ba748cc23 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 30 16:41:45 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 30 17:57:26 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17921594 |
7 |
|
8 |
dev-python/python-swiftclient: add 3.12.0, enable py3.9, clean tests |
9 |
|
10 |
Closes: https://bugs.gentoo.org/812884 |
11 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
12 |
|
13 |
dev-python/python-swiftclient/Manifest | 1 + |
14 |
.../python-swiftclient-3.12.0.ebuild | 35 ++++++++++++++++++++++ |
15 |
2 files changed, 36 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/python-swiftclient/Manifest b/dev-python/python-swiftclient/Manifest |
18 |
index 5e85462faff..e0a9a3ae067 100644 |
19 |
--- a/dev-python/python-swiftclient/Manifest |
20 |
+++ b/dev-python/python-swiftclient/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST python-swiftclient-3.10.1.tar.gz 199466 BLAKE2B 4230f0fbff0e61a8172344df1cfc32f07628ac0b3784f5b8456d1b43b962e1d8561eec55c530ea94c615d46cd9454963fe0e21c54d1f4097016459e1460795c9 SHA512 f47444243f1968fdbba0643bcb4f05fc10a201b38ad83522e842bbad2221d0893a72147f9fbdc13e7f56469b049bbf11479fd9f41a9706119287543e0587f696 |
23 |
+DIST python-swiftclient-3.12.0.tar.gz 201199 BLAKE2B 36a5bc0ed7855b8ec8df51635ed6a2afba405c73809f3ab17c77e07dc362a2578816e63adf6c8da3b81ba8bfa8973326004c09bf980961b3c90987ecfdf95e30 SHA512 00e2b1b4d950396fba9232c251dbdf6949ea60e1f9de8f633ffcdeaa51339c5487fbccf9d9f337ef7aecba30e504338c592f9ed64d1d5c6798307a35b806f684 |
24 |
|
25 |
diff --git a/dev-python/python-swiftclient/python-swiftclient-3.12.0.ebuild b/dev-python/python-swiftclient/python-swiftclient-3.12.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..061cfa61217 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/python-swiftclient/python-swiftclient-3.12.0.ebuild |
30 |
@@ -0,0 +1,35 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{8..9} ) |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+DESCRIPTION="Python bindings to the OpenStack Object Storage API" |
40 |
+HOMEPAGE="https://launchpad.net/python-swiftclient" |
41 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="Apache-2.0" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ >=dev-python/requests-1.1.0[${PYTHON_USEDEP}] |
49 |
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
50 |
+" |
51 |
+BDEPEND=" |
52 |
+ dev-python/pbr[${PYTHON_USEDEP}] |
53 |
+ test? ( |
54 |
+ >=dev-python/keystoneauth-3.4.0[${PYTHON_USEDEP}] |
55 |
+ dev-python/python-keystoneclient[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/mock-1.2.0[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/openstacksdk-0.11.0[${PYTHON_USEDEP}] |
58 |
+ )" |
59 |
+ |
60 |
+distutils_enable_tests unittest |
61 |
+ |
62 |
+python_prepare_all() { |
63 |
+ sed -e 's/test_password_prompt/_&/' -i test/unit/test_shell.py || die |
64 |
+ distutils-r1_python_prepare_all |
65 |
+} |