Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/urllib3/
Date: Mon, 05 Dec 2016 02:45:25
Message-Id: 1480905910.82c311373a4a777948f6f39351719ce8f427e325.floppym@gentoo
1 commit: 82c311373a4a777948f6f39351719ce8f427e325
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 5 02:44:53 2016 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 5 02:45:10 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82c31137
7
8 dev-python/urllib3: remove old
9
10 Package-Manager: portage-2.3.2_p13
11
12 dev-python/urllib3/Manifest | 3 -
13 dev-python/urllib3/urllib3-1.10.4.ebuild | 71 -----------------
14 dev-python/urllib3/urllib3-1.13.1-r1.ebuild | 111 ---------------------------
15 dev-python/urllib3/urllib3-1.14.ebuild | 114 ----------------------------
16 4 files changed, 299 deletions(-)
17
18 diff --git a/dev-python/urllib3/Manifest b/dev-python/urllib3/Manifest
19 index 8c2e3a5..edf56fa 100644
20 --- a/dev-python/urllib3/Manifest
21 +++ b/dev-python/urllib3/Manifest
22 @@ -1,7 +1,4 @@
23 -DIST urllib3-1.10.4.tar.gz 138538 SHA256 52131e6a561466f1206e1a648d9a73dda2a804d0f70e83782bd88494542ded09 SHA512 83118aa5bf23add5bb5dafd98d32459315d971246ac2a49f7f0d0fcad6414099885f6d4fc7847de17e983b949c8a21fa4ed71c0216e578bdfc8eb351672f7c09 WHIRLPOOL 03431b6c575f3399bf8876d7dfad126986864e3a3f09d05e7e682b5b374ed420854c776a3d7bac91538086e43a9b832975aaf0b1b2e3fcde1ba8cfe93417bdc3
24 DIST urllib3-1.12.tar.gz 151072 SHA256 0ea512776971fe4e76192600fe41e4e7ee96b4b9a5b15aefc1ac31d2a63872c6 SHA512 44f1cf9c5d5538e35d026551a2d1dc7119786c1148b9a769fa9f652f0368e996512962c6245c92d1f4bb1d8e816e2fb0ffebeb0060b01f92b2a5d6e01d15426f WHIRLPOOL d386e4fb47b2ea4d78d2ad690c9252d6be1b3f5a624e20670e22c9b3a28dc910e3d5ecd24ca54d8f8337f8e9a9875208efce06952cd392d9c8254257eadeee70
25 -DIST urllib3-1.13.1.tar.gz 156259 SHA256 6eba1d713f8552e37ac4081c6bdf7be9f5a79f58447aed762bf24cc34c5e3983 SHA512 663c0a10b0e6b8a2c337cf799e45b8d949cbf0f542e22204fe31af193c7275c499ddf0ac3470152cc51bed56a0f5b77f1897140801b732773f606e77e8cea420 WHIRLPOOL d0c3ea06f7a8180eca9b22197ddad6f04ea9b9c5fe254ade00e12fb9a5ffeaa9264a5a160cc49ebd87a1822ba13af22bef357a241b7b76b2281f400f776e309e
26 -DIST urllib3-1.14.tar.gz 161497 SHA256 dd4fb13a4ce50b18338c7e4d665b21fd38632c5d4b1d9f1a1379276bd3c08d37 SHA512 8c315b442bc7454e421f2c801cc2bbfc011fb2eb5dcbd2ff7d6078dab0bb5254e3e1489496758cec190ebd0c249962fa1fe24fe6535e844a681350e9d7353562 WHIRLPOOL 3be475d5591328d304bbf48392ab563a7d5013907c96298abaf34b06a7a16fe81d56a03f6a73d50c9679334b140f00789a71a918f2ea1e6951e5351324852f3c
27 DIST urllib3-1.16.tar.gz 179763 SHA256 63d479478ddfc83bbc11577dc16d47835c5179ac13e550118ca143b62c4bf9ab SHA512 646b35a9a4490b2d1f068883a29cbb5be5050a6eea7bb7842f77cd666b7f88101a7612e8eb45ae0eb900d914518db5202f548ab688b8db1c20ed248ba2edac66 WHIRLPOOL a4a813a5fc560a1487a87e492185122ffe8a41ba263e3c5e5962a48b9f4577a6360fa5d47d474f3c97a56e7ef99b2854c0f742075c05b88461f41d69e10c7a04
28 DIST urllib3-1.19.1.tar.gz 187416 SHA256 53bc34c8ee268c3bd83ecf5e9c80fa783f3148484579bd4e20f4a7c1bb2dd6a0 SHA512 a23ce0dec72dd080a355a5dfde1886b7e831314785302d2dbb67db645e25d8a175169a2ed80534657ce0376bd6d38294d4cd479c9142324b179c7607cfe5d13b WHIRLPOOL 2e1b3c71476404a39750c19efd91678398ff3f3bc9f499be3b7af5ba095dac4a2158edaa5b9f4a0906c79cb83d55d77c414715df1beff85a038b148ee7c59674
29 DIST urllib3-1.19.tar.gz 187217 SHA256 87f362d061184191d07ced0b947d8526f3e1884f21b0fe97fab313dedcb895be SHA512 3c4a6cbcf8e6797c1ba0d0945ae4f767314607f746a79aeac95230130682c91de5c16826b299973e9e3374a284facc10be39df8cef3dea876d1dea4314c62d94 WHIRLPOOL 978f4c7c9fc9d858c423229d91b0c8d80256dcd0ad08400c8aaf9bfbbcbb7c0abad2eec86deddac3b41ed8dcf9348d70e7e8f2e2ae6e3edbe5c3827b2b44db21
30
31 diff --git a/dev-python/urllib3/urllib3-1.10.4.ebuild b/dev-python/urllib3/urllib3-1.10.4.ebuild
32 deleted file mode 100644
33 index e112ae1..00000000
34 --- a/dev-python/urllib3/urllib3-1.10.4.ebuild
35 +++ /dev/null
36 @@ -1,71 +0,0 @@
37 -# Copyright 1999-2015 Gentoo Foundation
38 -# Distributed under the terms of the GNU General Public License v2
39 -# $Id$
40 -
41 -EAPI=5
42 -PYTHON_COMPAT=( python{2_7,3_4} pypy )
43 -
44 -inherit distutils-r1
45 -
46 -DESCRIPTION="HTTP library with thread-safe connection pooling, file post, and more"
47 -HOMEPAGE="https://github.com/shazow/urllib3"
48 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
49 -
50 -LICENSE="MIT"
51 -SLOT="0"
52 -KEYWORDS="amd64 ~arm ~hppa ~ppc ~ppc64 x86"
53 -IUSE="doc test"
54 -
55 -RDEPEND="dev-python/six[${PYTHON_USEDEP}]
56 - $(python_gen_cond_dep \
57 - 'dev-python/backports-ssl-match-hostname[${PYTHON_USEDEP}]' python2_7 pypy)"
58 -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
59 - test? (
60 - ${RDEPEND}
61 - >=www-servers/tornado-4.1[$(python_gen_usedep 'python*')]
62 - dev-python/mock[${PYTHON_USEDEP}]
63 - dev-python/nose[${PYTHON_USEDEP}] )
64 - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
65 - "
66 -
67 -# Testsuite written requiring mock to be installed under all Cpythons
68 -
69 -python_prepare_all() {
70 - # Replace bundled copy of dev-python/six
71 - cat > urllib3/packages/six.py <<-EOF
72 - from __future__ import absolute_import
73 - from six import *
74 - EOF
75 -
76 - sed -i 's:cover-min-percentage = 100::' setup.cfg || die
77 - # Fix tests
78 - sed -i 's/urllib3.packages.six/six/' test/test_retry.py || die
79 -
80 - # Reset source of objects.inv
81 - if use doc; then
82 - local PYTHON_DOC_ATOM=$(best_version --host-root dev-python/python-docs:2.7)
83 - local PYTHON_DOC_VERSION="${PYTHON_DOC_ATOM#dev-python/python-docs-}"
84 - local PYTHON_DOC="/usr/share/doc/python-docs-${PYTHON_DOC_VERSION}/html"
85 - local PYTHON_DOC_INVENTORY="${PYTHON_DOC}/objects.inv"
86 - sed -i "s|'python': ('http://docs.python.org/2.7', None|'${PYTHON_DOC}': ('${PYTHON_DOC_INVENTORY}'|" docs/conf.py || die
87 - fi
88 -
89 - distutils-r1_python_prepare_all
90 -}
91 -
92 -python_compile_all() {
93 - use doc && emake -C docs html
94 -}
95 -
96 -python_test() {
97 - # Failures still occur under py2.7.
98 - # https://github.com/shazow/urllib3/issues/621
99 -
100 - nosetests test || die "Tests fail with ${EPYTHON}"
101 -}
102 -
103 -python_install_all() {
104 - use doc && local HTML_DOCS=( docs/_build/html/. )
105 -
106 - distutils-r1_python_install_all
107 -}
108
109 diff --git a/dev-python/urllib3/urllib3-1.13.1-r1.ebuild b/dev-python/urllib3/urllib3-1.13.1-r1.ebuild
110 deleted file mode 100644
111 index 03e47f8..00000000
112 --- a/dev-python/urllib3/urllib3-1.13.1-r1.ebuild
113 +++ /dev/null
114 @@ -1,111 +0,0 @@
115 -# Copyright 1999-2016 Gentoo Foundation
116 -# Distributed under the terms of the GNU General Public License v2
117 -# $Id$
118 -
119 -EAPI=6
120 -
121 -PYTHON_COMPAT=( python2_7 python3_{4,5} pypy )
122 -PYTHON_REQ_USE="ssl(+)"
123 -
124 -inherit distutils-r1
125 -
126 -DESCRIPTION="HTTP library with thread-safe connection pooling, file post, and more"
127 -HOMEPAGE="https://github.com/shazow/urllib3"
128 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
129 -
130 -LICENSE="MIT"
131 -SLOT="0"
132 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
133 -IUSE="doc test"
134 -
135 -RDEPEND="
136 - dev-python/certifi[${PYTHON_USEDEP}]
137 - dev-python/six[${PYTHON_USEDEP}]
138 - >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}]
139 - $(python_gen_cond_dep 'dev-python/backports-ssl-match-hostname[${PYTHON_USEDEP}]' python2_7 pypy)
140 - $(python_gen_cond_dep 'dev-python/ndg-httpsclient[${PYTHON_USEDEP}]' python2_7 pypy)
141 - $(python_gen_cond_dep 'dev-python/pyasn1[${PYTHON_USEDEP}]' python2_7 pypy)
142 - "
143 -DEPEND="
144 - dev-python/setuptools[${PYTHON_USEDEP}]
145 - test? (
146 - ${RDEPEND}
147 - >=www-servers/tornado-4.2.1[$(python_gen_usedep 'python*')]
148 - >=dev-python/mock-1.3.0[${PYTHON_USEDEP}]
149 - >=dev-python/nose-1.3.7[${PYTHON_USEDEP}]
150 - >=dev-python/nose-exclude-0.4.1[${PYTHON_USEDEP}]
151 - )
152 - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
153 - "
154 -
155 -# Testsuite written requiring mock to be installed under all Cpythons
156 -
157 -PATCHES=( "${FILESDIR}"/${P}-unbundle.patch )
158 -
159 -python_prepare_all() {
160 - # Replace bundled copy of dev-python/six
161 - cat > urllib3/packages/six.py <<-EOF
162 - from __future__ import absolute_import
163 - from six import *
164 - EOF
165 -
166 - rm -r urllib3/packages/ssl_match_hostname || die
167 - cat > urllib3/packages/ssl_match_hostname.py <<- EOF
168 - from __future__ import absolute_import
169 - try:
170 - from backports.ssl_match_hostname import CertificateError, match_hostname
171 - except ImportError:
172 - from ssl import CertificateError, match_hostname
173 - EOF
174 -
175 - cat > urllib3/packages/ordered_dict.py <<- EOF
176 - from __future__ import absolute_import
177 - from collections import OrderedDict
178 - EOF
179 -
180 - sed \
181 - -e 's:\.packages\.six:six:g' \
182 - -e 's:\.six:six:g' \
183 - -i urllib3/util/response.py urllib3/response.py || die
184 -
185 - sed -i '/cover-min-percentage/d' setup.cfg || die
186 - # Fix tests
187 - sed -i 's/urllib3.packages.six/six/' test/test_retry.py || die
188 -
189 - # Reset source of objects.inv
190 - if use doc; then
191 - local PYTHON_DOC_ATOM=$(best_version --host-root dev-python/python-docs:2.7)
192 - local PYTHON_DOC_VERSION="${PYTHON_DOC_ATOM#dev-python/python-docs-}"
193 - local PYTHON_DOC="/usr/share/doc/python-docs-${PYTHON_DOC_VERSION}/html"
194 - local PYTHON_DOC_INVENTORY="${PYTHON_DOC}/objects.inv"
195 - sed \
196 - -e "s|'python': ('http://docs.python.org/2.7', None|'${PYTHON_DOC}': ('${PYTHON_DOC_INVENTORY}'|" \
197 - -i docs/conf.py || die
198 - fi
199 -
200 - distutils-r1_python_prepare_all
201 -}
202 -
203 -python_compile_all() {
204 - use doc && emake -C docs html
205 -}
206 -
207 -python_test() {
208 - # Failures still occur under py2.7.
209 - # https://github.com/shazow/urllib3/issues/621
210 -
211 - [[ "${EPYTHON}" == pypy ]] && return
212 -
213 - nosetests -v \
214 - --exclude test_headerdict \
215 - --exclude test_headers \
216 - --exclude test_source_address_error \
217 - --exclude test_no_ssl \
218 - test || die "Tests fail with ${EPYTHON}"
219 -}
220 -
221 -python_install_all() {
222 - use doc && local HTML_DOCS=( docs/_build/html/. )
223 -
224 - distutils-r1_python_install_all
225 -}
226
227 diff --git a/dev-python/urllib3/urllib3-1.14.ebuild b/dev-python/urllib3/urllib3-1.14.ebuild
228 deleted file mode 100644
229 index 5af2339..00000000
230 --- a/dev-python/urllib3/urllib3-1.14.ebuild
231 +++ /dev/null
232 @@ -1,114 +0,0 @@
233 -# Copyright 1999-2016 Gentoo Foundation
234 -# Distributed under the terms of the GNU General Public License v2
235 -# $Id$
236 -
237 -EAPI=6
238 -
239 -PYTHON_COMPAT=( python2_7 python3_{4,5} pypy )
240 -PYTHON_REQ_USE="ssl(+)"
241 -
242 -inherit distutils-r1
243 -
244 -DESCRIPTION="HTTP library with thread-safe connection pooling, file post, and more"
245 -HOMEPAGE="https://github.com/shazow/urllib3"
246 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
247 -
248 -LICENSE="MIT"
249 -SLOT="0"
250 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-fbsd ~x86-linux"
251 -IUSE="doc test"
252 -
253 -RDEPEND="
254 - dev-python/PySocks[${PYTHON_USEDEP}]
255 - dev-python/certifi[${PYTHON_USEDEP}]
256 - dev-python/six[${PYTHON_USEDEP}]
257 - >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}]
258 - $(python_gen_cond_dep 'dev-python/backports-ssl-match-hostname[${PYTHON_USEDEP}]' python2_7 pypy)
259 - $(python_gen_cond_dep 'dev-python/ndg-httpsclient[${PYTHON_USEDEP}]' python2_7 pypy)
260 - $(python_gen_cond_dep 'dev-python/pyasn1[${PYTHON_USEDEP}]' python2_7 pypy)
261 - "
262 -DEPEND="
263 - dev-python/setuptools[${PYTHON_USEDEP}]
264 - test? (
265 - ${RDEPEND}
266 - >=www-servers/tornado-4.2.1[$(python_gen_usedep 'python*')]
267 - >=dev-python/mock-1.3.0[${PYTHON_USEDEP}]
268 - >=dev-python/nose-1.3.7[${PYTHON_USEDEP}]
269 - >=dev-python/nose-exclude-0.4.1[${PYTHON_USEDEP}]
270 - )
271 - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
272 - "
273 -
274 -# Testsuite written requiring mock to be installed under all Cpythons
275 -
276 -PATCHES=( "${FILESDIR}"/${PN}-1.13.1-unbundle.patch )
277 -
278 -python_prepare_all() {
279 - # Replace bundled copy of dev-python/six
280 - cat > urllib3/packages/six.py <<-EOF
281 - from __future__ import absolute_import
282 - from six import *
283 - EOF
284 -
285 - rm -r urllib3/packages/ssl_match_hostname || die
286 - cat > urllib3/packages/ssl_match_hostname.py <<- EOF
287 - from __future__ import absolute_import
288 - try:
289 - from backports.ssl_match_hostname import CertificateError, match_hostname
290 - except ImportError:
291 - from ssl import CertificateError, match_hostname
292 - EOF
293 -
294 - cat > urllib3/packages/ordered_dict.py <<- EOF
295 - from __future__ import absolute_import
296 - from collections import OrderedDict
297 - EOF
298 -
299 - sed \
300 - -e 's:\.packages\.six:six:g' \
301 - -e 's:\.six:six:g' \
302 - -i urllib3/util/response.py urllib3/response.py || die
303 -
304 - sed -i '/cover-min-percentage/d' setup.cfg || die
305 - # Fix tests
306 - sed -i 's/urllib3.packages.six/six/' test/test_retry.py || die
307 -
308 - # Reset source of objects.inv
309 - if use doc; then
310 - local PYTHON_DOC_ATOM=$(best_version --host-root dev-python/python-docs:2.7)
311 - local PYTHON_DOC_VERSION="${PYTHON_DOC_ATOM#dev-python/python-docs-}"
312 - local PYTHON_DOC="/usr/share/doc/python-docs-${PYTHON_DOC_VERSION}/html"
313 - local PYTHON_DOC_INVENTORY="${PYTHON_DOC}/objects.inv"
314 - sed \
315 - -e "s|'python': ('http://docs.python.org/2.7', None|'${PYTHON_DOC}': ('${PYTHON_DOC_INVENTORY}'|" \
316 - -i docs/conf.py || die
317 - fi
318 -
319 - distutils-r1_python_prepare_all
320 -}
321 -
322 -python_compile_all() {
323 - use doc && emake -C docs html
324 -}
325 -
326 -python_test() {
327 - # Failures still occur under py2.7.
328 - # https://github.com/shazow/urllib3/issues/621
329 -
330 - [[ "${EPYTHON}" == pypy ]] && return
331 -
332 - nosetests -v \
333 - --exclude test_headerdict \
334 - --exclude test_headers \
335 - --exclude test_source_address_error \
336 - --exclude test_no_ssl \
337 - --exclude test_ca_dir_verified \
338 - --exclude test_verified \
339 - test || die "Tests fail with ${EPYTHON}"
340 -}
341 -
342 -python_install_all() {
343 - use doc && local HTML_DOCS=( docs/_build/html/. )
344 -
345 - distutils-r1_python_install_all
346 -}