1 |
commit: 36403507f79029c46e86f824d5ed32984df57942 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 20 15:19:59 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 20 16:35:42 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36403507 |
7 |
|
8 |
dev-python/urllib3: Version Bump |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
12 |
|
13 |
dev-python/urllib3/Manifest | 1 + |
14 |
dev-python/urllib3/urllib3-1.13.1.ebuild | 89 ++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 90 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/urllib3/Manifest b/dev-python/urllib3/Manifest |
18 |
index 16d9cb0..8e8bdc3 100644 |
19 |
--- a/dev-python/urllib3/Manifest |
20 |
+++ b/dev-python/urllib3/Manifest |
21 |
@@ -2,4 +2,5 @@ DIST urllib3-1.10.3.tar.gz 136894 SHA256 ce1bb9a3f103610a062ace3ae6e56ebf2fa0fbe |
22 |
DIST urllib3-1.10.4.tar.gz 138538 SHA256 52131e6a561466f1206e1a648d9a73dda2a804d0f70e83782bd88494542ded09 SHA512 83118aa5bf23add5bb5dafd98d32459315d971246ac2a49f7f0d0fcad6414099885f6d4fc7847de17e983b949c8a21fa4ed71c0216e578bdfc8eb351672f7c09 WHIRLPOOL 03431b6c575f3399bf8876d7dfad126986864e3a3f09d05e7e682b5b374ed420854c776a3d7bac91538086e43a9b832975aaf0b1b2e3fcde1ba8cfe93417bdc3 |
23 |
DIST urllib3-1.10.tar.gz 128200 SHA256 25b4a7fbbd9112e0190f31f8877aa0523caeab8630872ad1bbddaba01cdd6599 SHA512 32f9162f82a676146fae6bba462d21eb81635d8660ca4676b5e8dd3d18b68525a265695c646f06c099a78c24d9b108f0610d3e17f20578d473771bebd42cc52d WHIRLPOOL a8a84b79fd0edeecdd19eaef0ee809d1c5d842ff6bcf089df9a1111744a2f42bec1a366b76b6e7334a51cad83d42b166f133a4156bbbfb7be24518353ee71081 |
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.9.1.tar.gz 171086 SHA256 d858379ef5988d4534bb8909432d697422100aaff272299d661339836b6dae9b SHA512 c972e4dc9dabf6378da75e0abce5e53bec29624f2dc0faff3c8ce762474d490da6aec7d2e374c57d0d18e640311845750eb257fc7829ac9d25a3d9c957c59c6f WHIRLPOOL 666b82e712939b3ff5dfe109ba0498c16dbea7f2c0f0c2e1c317cf7e6f03711ce4a9468bb72327abe7821aa75c0257d30dbce5c196ba59215df3dba4084c7360 |
27 |
|
28 |
diff --git a/dev-python/urllib3/urllib3-1.13.1.ebuild b/dev-python/urllib3/urllib3-1.13.1.ebuild |
29 |
new file mode 100644 |
30 |
index 0000000..ba3e423 |
31 |
--- /dev/null |
32 |
+++ b/dev-python/urllib3/urllib3-1.13.1.ebuild |
33 |
@@ -0,0 +1,89 @@ |
34 |
+# Copyright 1999-2015 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+# $Id$ |
37 |
+ |
38 |
+EAPI=5 |
39 |
+ |
40 |
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy ) |
41 |
+ |
42 |
+inherit distutils-r1 |
43 |
+ |
44 |
+DESCRIPTION="HTTP library with thread-safe connection pooling, file post, and more" |
45 |
+HOMEPAGE="https://github.com/shazow/urllib3" |
46 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="MIT" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
51 |
+IUSE="doc test" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ dev-python/certifi[${PYTHON_USEDEP}] |
55 |
+ dev-python/six[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}] |
57 |
+ $(python_gen_cond_dep 'dev-python/backports-ssl-match-hostname[${PYTHON_USEDEP}]' python2_7 pypy) |
58 |
+ $(python_gen_cond_dep 'dev-python/ndg-httpsclient[${PYTHON_USEDEP}]' python2_7 pypy) |
59 |
+ $(python_gen_cond_dep 'dev-python/pyasn1[${PYTHON_USEDEP}]' python2_7 pypy) |
60 |
+ " |
61 |
+DEPEND=" |
62 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
63 |
+ test? ( |
64 |
+ ${RDEPEND} |
65 |
+ >=www-servers/tornado-4.2.1[$(python_gen_usedep 'python*')] |
66 |
+ >=dev-python/mock-1.3.0[${PYTHON_USEDEP}] |
67 |
+ >=dev-python/nose-1.3.7[${PYTHON_USEDEP}] |
68 |
+ >=dev-python/nose-exclude-0.4.1[${PYTHON_USEDEP}] |
69 |
+ ) |
70 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
71 |
+ " |
72 |
+ |
73 |
+# Testsuite written requiring mock to be installed under all Cpythons |
74 |
+ |
75 |
+python_prepare_all() { |
76 |
+ # Replace bundled copy of dev-python/six |
77 |
+ cat > urllib3/packages/six.py <<-EOF |
78 |
+ from __future__ import absolute_import |
79 |
+ from six import * |
80 |
+ EOF |
81 |
+ |
82 |
+ sed \ |
83 |
+ -e 's:\.packages\.six:six:g' \ |
84 |
+ -e 's:\.six:six:g' \ |
85 |
+ -i urllib3/util/response.py urllib3/response.py || die |
86 |
+ |
87 |
+ sed -i '/cover-min-percentage/d' setup.cfg || die |
88 |
+ # Fix tests |
89 |
+ sed -i 's/urllib3.packages.six/six/' test/test_retry.py || die |
90 |
+ |
91 |
+ # Reset source of objects.inv |
92 |
+ if use doc; then |
93 |
+ local PYTHON_DOC_ATOM=$(best_version --host-root dev-python/python-docs:2.7) |
94 |
+ local PYTHON_DOC_VERSION="${PYTHON_DOC_ATOM#dev-python/python-docs-}" |
95 |
+ local PYTHON_DOC="/usr/share/doc/python-docs-${PYTHON_DOC_VERSION}/html" |
96 |
+ local PYTHON_DOC_INVENTORY="${PYTHON_DOC}/objects.inv" |
97 |
+ sed \ |
98 |
+ -e "s|'python': ('http://docs.python.org/2.7', None|'${PYTHON_DOC}': ('${PYTHON_DOC_INVENTORY}'|" \ |
99 |
+ -i docs/conf.py || die |
100 |
+ fi |
101 |
+ |
102 |
+ distutils-r1_python_prepare_all |
103 |
+} |
104 |
+ |
105 |
+python_compile_all() { |
106 |
+ use doc && emake -C docs html |
107 |
+} |
108 |
+ |
109 |
+python_test() { |
110 |
+ # Failures still occur under py2.7. |
111 |
+ # https://github.com/shazow/urllib3/issues/621 |
112 |
+ |
113 |
+ [[ "${EPYTHON}" == pypy ]] && return |
114 |
+ |
115 |
+ nosetests -v test || die "Tests fail with ${EPYTHON}" |
116 |
+} |
117 |
+ |
118 |
+python_install_all() { |
119 |
+ use doc && local HTML_DOCS=( docs/_build/html/. ) |
120 |
+ |
121 |
+ distutils-r1_python_install_all |
122 |
+} |