1 |
commit: db94498af9862037664f7a84cf4a394bfb3751e1 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 27 03:53:48 2017 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 27 04:26:22 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db94498a |
7 |
|
8 |
dev-python/python-swiftclient: bup |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
dev-python/python-swiftclient/Manifest | 1 + |
13 |
.../python-swiftclient-3.3.0.ebuild | 60 ++++++++++++++++++++++ |
14 |
2 files changed, 61 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/python-swiftclient/Manifest b/dev-python/python-swiftclient/Manifest |
17 |
index 91338f3f1e..8aec158a30 100644 |
18 |
--- a/dev-python/python-swiftclient/Manifest |
19 |
+++ b/dev-python/python-swiftclient/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST python-swiftclient-3.0.0.tar.gz 134376 SHA256 824b8f204c5a7764de51795256e4175fdcd655ae4df85b8ae6e6ea9ec0b41f68 SHA512 4e81504876fb81bf74c3a3e034958c4783a4a9c2c426b7ae849e1968f98d9886c2299c2e67a2b366d6d4721b4635cef90ff49201ba9a4c86da9d61bfb96fa350 WHIRLPOOL d48902f331d04b3250dc6a90aa44f31d403012e10e1617a2fa52cb05b3d615293efc65a4f35872ec019254c096e44a79544d314cd1d4e6065e8e093febb3b3b7 |
22 |
DIST python-swiftclient-3.1.0.tar.gz 155598 SHA256 7bb5984862b85ba2a18c16b4dc6af2fd14272871ad165eec47e9da111ab3fb9a SHA512 693fcea571721e2f578a21b05a3c908dd6621bcfdd70f09003a981e233e2b3061318d60e301dcfdbb03d08a326ca3f14f3297d8226b5a0a6d78f88b1a72b2ea4 WHIRLPOOL eaf7c4e78e2b642fa124c5044136fffe530450cbabf5bc4132e7d7e2f93d06dcfa2f6a4751e32a6ba1d90abf060ffd9eec679d3ece973594de9650e53557ee5f |
23 |
+DIST python-swiftclient-3.3.0.tar.gz 166092 SHA256 8b4d38d73ceb2ef4984b39fb924bf9b265050ca2beb5c6bf29cb9f34ccd0bf7d SHA512 03e00e9b1f0f7b71c07e845cd9636031c15beb21a66495ab96be05df7e453160840948696ecb0d65d08c32e318d16425444aaa4ea16ede8268a2cf2b171a3987 WHIRLPOOL f1caa5dea37d3f727642d4e70308e8810d41e8e93716188159bd2b511518047bc12acb62dd1ab3631cf17ddfa773a7c7913093902ff8804f96dddd036cac3722 |
24 |
|
25 |
diff --git a/dev-python/python-swiftclient/python-swiftclient-3.3.0.ebuild b/dev-python/python-swiftclient/python-swiftclient-3.3.0.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000000..fbfbecccbd |
28 |
--- /dev/null |
29 |
+++ b/dev-python/python-swiftclient/python-swiftclient-3.3.0.ebuild |
30 |
@@ -0,0 +1,60 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+PYTHON_COMPAT=( python2_7 python3_4 python3_5 ) |
36 |
+ |
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 ~arm64 ~x86 ~amd64-linux ~x86-linux" |
46 |
+IUSE="doc test" |
47 |
+ |
48 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
49 |
+ dev-python/pbr[${PYTHON_USEDEP}] |
50 |
+ test? ( |
51 |
+ >=dev-python/coverage-3.6[${PYTHON_USEDEP}] |
52 |
+ >=dev-python/mock-1.2[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/oslo-sphinx-4.7.0[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}] |
55 |
+ !~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}] |
56 |
+ <dev-python/sphinx-1.3[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] |
58 |
+ ) |
59 |
+ doc? ( |
60 |
+ >=dev-python/oslo-sphinx-4.7.0[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}] |
62 |
+ !~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}] |
63 |
+ <dev-python/sphinx-1.3[${PYTHON_USEDEP}] |
64 |
+ )" |
65 |
+RDEPEND="virtual/python-futures[${PYTHON_USEDEP}] |
66 |
+ >=dev-python/requests-1.1[${PYTHON_USEDEP}] |
67 |
+ >=dev-python/six-1.5.2[${PYTHON_USEDEP}]" |
68 |
+ |
69 |
+#PATCHES=( "${FILESDIR}/CVE-2013-6396.patch" ) |
70 |
+ |
71 |
+python_prepare_all() { |
72 |
+ sed -i '/hacking/d' "${S}/test-requirements.txt" || die "sed failed" |
73 |
+ distutils-r1_python_prepare_all |
74 |
+} |
75 |
+ |
76 |
+python_compile_all() { |
77 |
+ use doc && emake -C doc html |
78 |
+} |
79 |
+ |
80 |
+python_test() { |
81 |
+ testr init |
82 |
+ testr run || die "tests failed under python2_7" |
83 |
+ flake8 tests && einfo "run of tests folder by flake8 passed" |
84 |
+ flake8 bin/swift && einfo "run of ./bin/swift by flake8 passed" |
85 |
+} |
86 |
+ |
87 |
+python_install_all() { |
88 |
+ use doc && local HTML_DOCS=( ../${P}-python2_7/doc/build/html/. ) |
89 |
+ distutils-r1_python_install_all |
90 |
+} |