1 |
commit: 849e5b215bf85c913aa9ad170654f20763bf1cf8 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 28 20:20:25 2017 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 28 21:51:03 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=849e5b21 |
7 |
|
8 |
dev-python/python-swiftclient: 3.4.0 bup |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
dev-python/python-swiftclient/Manifest | 1 + |
13 |
dev-python/python-swiftclient/metadata.xml | 24 ++++----- |
14 |
.../python-swiftclient-3.4.0.ebuild | 60 ++++++++++++++++++++++ |
15 |
3 files changed, 73 insertions(+), 12 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/python-swiftclient/Manifest b/dev-python/python-swiftclient/Manifest |
18 |
index 8aec158a30e..1287fbd53e3 100644 |
19 |
--- a/dev-python/python-swiftclient/Manifest |
20 |
+++ b/dev-python/python-swiftclient/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST python-swiftclient-3.0.0.tar.gz 134376 SHA256 824b8f204c5a7764de51795256e4175fdcd655ae4df85b8ae6e6ea9ec0b41f68 SHA512 4e81504876fb81bf74c3a3e034958c4783a4a9c2c426b7ae849e1968f98d9886c2299c2e67a2b366d6d4721b4635cef90ff49201ba9a4c86da9d61bfb96fa350 WHIRLPOOL d48902f331d04b3250dc6a90aa44f31d403012e10e1617a2fa52cb05b3d615293efc65a4f35872ec019254c096e44a79544d314cd1d4e6065e8e093febb3b3b7 |
23 |
DIST python-swiftclient-3.1.0.tar.gz 155598 SHA256 7bb5984862b85ba2a18c16b4dc6af2fd14272871ad165eec47e9da111ab3fb9a SHA512 693fcea571721e2f578a21b05a3c908dd6621bcfdd70f09003a981e233e2b3061318d60e301dcfdbb03d08a326ca3f14f3297d8226b5a0a6d78f88b1a72b2ea4 WHIRLPOOL eaf7c4e78e2b642fa124c5044136fffe530450cbabf5bc4132e7d7e2f93d06dcfa2f6a4751e32a6ba1d90abf060ffd9eec679d3ece973594de9650e53557ee5f |
24 |
DIST python-swiftclient-3.3.0.tar.gz 166092 SHA256 8b4d38d73ceb2ef4984b39fb924bf9b265050ca2beb5c6bf29cb9f34ccd0bf7d SHA512 03e00e9b1f0f7b71c07e845cd9636031c15beb21a66495ab96be05df7e453160840948696ecb0d65d08c32e318d16425444aaa4ea16ede8268a2cf2b171a3987 WHIRLPOOL f1caa5dea37d3f727642d4e70308e8810d41e8e93716188159bd2b511518047bc12acb62dd1ab3631cf17ddfa773a7c7913093902ff8804f96dddd036cac3722 |
25 |
+DIST python-swiftclient-3.4.0.tar.gz 175823 SHA256 54f7ae339bd076e295dd576ec98e55ba71205ee7e62964b27c8ec80c9351067d SHA512 c7def24f22ced03316ccb74fcd7426b071597a3c7576c14f98fd6d864d6ee3e8a7666966ca2d07b6d996546bfcc2497ab654a67ab0228705f078985a35b97457 WHIRLPOOL bd1bbb5aab8f55f6f3c9aaf0e992efc5f37f49798697f6cebdad1d1938f6522d1217a44833f1e02566691354d316ed65e3a49a8f0303d71c978a7b4449469e55 |
26 |
|
27 |
diff --git a/dev-python/python-swiftclient/metadata.xml b/dev-python/python-swiftclient/metadata.xml |
28 |
index 24c5acce9d8..619f2612f74 100644 |
29 |
--- a/dev-python/python-swiftclient/metadata.xml |
30 |
+++ b/dev-python/python-swiftclient/metadata.xml |
31 |
@@ -1,18 +1,18 @@ |
32 |
<?xml version="1.0" encoding="UTF-8"?> |
33 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
34 |
<pkgmetadata> |
35 |
- <maintainer type="person"> |
36 |
- <email>prometheanfire@g.o</email> |
37 |
- </maintainer> |
38 |
- <maintainer type="project"> |
39 |
- <email>openstack@g.o</email> |
40 |
- <name>Openstack</name> |
41 |
- </maintainer> |
42 |
- <longdescription lang="en"> |
43 |
+ <maintainer type="person"> |
44 |
+ <email>prometheanfire@g.o</email> |
45 |
+ </maintainer> |
46 |
+ <maintainer type="project"> |
47 |
+ <email>openstack@g.o</email> |
48 |
+ <name>Openstack</name> |
49 |
+ </maintainer> |
50 |
+ <longdescription lang="en"> |
51 |
Python bindings to the OpenStack Object Storage API |
52 |
</longdescription> |
53 |
- <upstream> |
54 |
- <remote-id type="pypi">python-swiftclient</remote-id> |
55 |
- <remote-id type="launchpad">python-swiftclient</remote-id> |
56 |
- </upstream> |
57 |
+ <upstream> |
58 |
+ <remote-id type="pypi">python-swiftclient</remote-id> |
59 |
+ <remote-id type="launchpad">python-swiftclient</remote-id> |
60 |
+ </upstream> |
61 |
</pkgmetadata> |
62 |
|
63 |
diff --git a/dev-python/python-swiftclient/python-swiftclient-3.4.0.ebuild b/dev-python/python-swiftclient/python-swiftclient-3.4.0.ebuild |
64 |
new file mode 100644 |
65 |
index 00000000000..fbfbecccbd5 |
66 |
--- /dev/null |
67 |
+++ b/dev-python/python-swiftclient/python-swiftclient-3.4.0.ebuild |
68 |
@@ -0,0 +1,60 @@ |
69 |
+# Copyright 1999-2017 Gentoo Foundation |
70 |
+# Distributed under the terms of the GNU General Public License v2 |
71 |
+ |
72 |
+EAPI=6 |
73 |
+PYTHON_COMPAT=( python2_7 python3_4 python3_5 ) |
74 |
+ |
75 |
+inherit distutils-r1 |
76 |
+ |
77 |
+DESCRIPTION="Python bindings to the OpenStack Object Storage API" |
78 |
+HOMEPAGE="https://launchpad.net/python-swiftclient" |
79 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
80 |
+ |
81 |
+LICENSE="Apache-2.0" |
82 |
+SLOT="0" |
83 |
+KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" |
84 |
+IUSE="doc test" |
85 |
+ |
86 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
87 |
+ dev-python/pbr[${PYTHON_USEDEP}] |
88 |
+ test? ( |
89 |
+ >=dev-python/coverage-3.6[${PYTHON_USEDEP}] |
90 |
+ >=dev-python/mock-1.2[${PYTHON_USEDEP}] |
91 |
+ >=dev-python/oslo-sphinx-4.7.0[${PYTHON_USEDEP}] |
92 |
+ >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}] |
93 |
+ !~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}] |
94 |
+ <dev-python/sphinx-1.3[${PYTHON_USEDEP}] |
95 |
+ >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] |
96 |
+ ) |
97 |
+ doc? ( |
98 |
+ >=dev-python/oslo-sphinx-4.7.0[${PYTHON_USEDEP}] |
99 |
+ >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}] |
100 |
+ !~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}] |
101 |
+ <dev-python/sphinx-1.3[${PYTHON_USEDEP}] |
102 |
+ )" |
103 |
+RDEPEND="virtual/python-futures[${PYTHON_USEDEP}] |
104 |
+ >=dev-python/requests-1.1[${PYTHON_USEDEP}] |
105 |
+ >=dev-python/six-1.5.2[${PYTHON_USEDEP}]" |
106 |
+ |
107 |
+#PATCHES=( "${FILESDIR}/CVE-2013-6396.patch" ) |
108 |
+ |
109 |
+python_prepare_all() { |
110 |
+ sed -i '/hacking/d' "${S}/test-requirements.txt" || die "sed failed" |
111 |
+ distutils-r1_python_prepare_all |
112 |
+} |
113 |
+ |
114 |
+python_compile_all() { |
115 |
+ use doc && emake -C doc html |
116 |
+} |
117 |
+ |
118 |
+python_test() { |
119 |
+ testr init |
120 |
+ testr run || die "tests failed under python2_7" |
121 |
+ flake8 tests && einfo "run of tests folder by flake8 passed" |
122 |
+ flake8 bin/swift && einfo "run of ./bin/swift by flake8 passed" |
123 |
+} |
124 |
+ |
125 |
+python_install_all() { |
126 |
+ use doc && local HTML_DOCS=( ../${P}-python2_7/doc/build/html/. ) |
127 |
+ distutils-r1_python_install_all |
128 |
+} |