commit:     36403507f79029c46e86f824d5ed32984df57942
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 20 15:19:59 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sun Dec 20 16:35:42 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36403507

dev-python/urllib3: Version Bump

Package-Manager: portage-2.2.26
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>

 dev-python/urllib3/Manifest              |  1 +
 dev-python/urllib3/urllib3-1.13.1.ebuild | 89 ++++++++++++++++++++++++++++++++
 2 files changed, 90 insertions(+)

diff --git a/dev-python/urllib3/Manifest b/dev-python/urllib3/Manifest
index 16d9cb0..8e8bdc3 100644
--- a/dev-python/urllib3/Manifest
+++ b/dev-python/urllib3/Manifest
@@ -2,4 +2,5 @@ DIST urllib3-1.10.3.tar.gz 136894 SHA256 
ce1bb9a3f103610a062ace3ae6e56ebf2fa0fbe
 DIST urllib3-1.10.4.tar.gz 138538 SHA256 
52131e6a561466f1206e1a648d9a73dda2a804d0f70e83782bd88494542ded09 SHA512 
83118aa5bf23add5bb5dafd98d32459315d971246ac2a49f7f0d0fcad6414099885f6d4fc7847de17e983b949c8a21fa4ed71c0216e578bdfc8eb351672f7c09
 WHIRLPOOL 
03431b6c575f3399bf8876d7dfad126986864e3a3f09d05e7e682b5b374ed420854c776a3d7bac91538086e43a9b832975aaf0b1b2e3fcde1ba8cfe93417bdc3
 DIST urllib3-1.10.tar.gz 128200 SHA256 
25b4a7fbbd9112e0190f31f8877aa0523caeab8630872ad1bbddaba01cdd6599 SHA512 
32f9162f82a676146fae6bba462d21eb81635d8660ca4676b5e8dd3d18b68525a265695c646f06c099a78c24d9b108f0610d3e17f20578d473771bebd42cc52d
 WHIRLPOOL 
a8a84b79fd0edeecdd19eaef0ee809d1c5d842ff6bcf089df9a1111744a2f42bec1a366b76b6e7334a51cad83d42b166f133a4156bbbfb7be24518353ee71081
 DIST urllib3-1.12.tar.gz 151072 SHA256 
0ea512776971fe4e76192600fe41e4e7ee96b4b9a5b15aefc1ac31d2a63872c6 SHA512 
44f1cf9c5d5538e35d026551a2d1dc7119786c1148b9a769fa9f652f0368e996512962c6245c92d1f4bb1d8e816e2fb0ffebeb0060b01f92b2a5d6e01d15426f
 WHIRLPOOL 
d386e4fb47b2ea4d78d2ad690c9252d6be1b3f5a624e20670e22c9b3a28dc910e3d5ecd24ca54d8f8337f8e9a9875208efce06952cd392d9c8254257eadeee70
+DIST urllib3-1.13.1.tar.gz 156259 SHA256 
6eba1d713f8552e37ac4081c6bdf7be9f5a79f58447aed762bf24cc34c5e3983 SHA512 
663c0a10b0e6b8a2c337cf799e45b8d949cbf0f542e22204fe31af193c7275c499ddf0ac3470152cc51bed56a0f5b77f1897140801b732773f606e77e8cea420
 WHIRLPOOL 
d0c3ea06f7a8180eca9b22197ddad6f04ea9b9c5fe254ade00e12fb9a5ffeaa9264a5a160cc49ebd87a1822ba13af22bef357a241b7b76b2281f400f776e309e
 DIST urllib3-1.9.1.tar.gz 171086 SHA256 
d858379ef5988d4534bb8909432d697422100aaff272299d661339836b6dae9b SHA512 
c972e4dc9dabf6378da75e0abce5e53bec29624f2dc0faff3c8ce762474d490da6aec7d2e374c57d0d18e640311845750eb257fc7829ac9d25a3d9c957c59c6f
 WHIRLPOOL 
666b82e712939b3ff5dfe109ba0498c16dbea7f2c0f0c2e1c317cf7e6f03711ce4a9468bb72327abe7821aa75c0257d30dbce5c196ba59215df3dba4084c7360

diff --git a/dev-python/urllib3/urllib3-1.13.1.ebuild 
b/dev-python/urllib3/urllib3-1.13.1.ebuild
new file mode 100644
index 0000000..ba3e423
--- /dev/null
+++ b/dev-python/urllib3/urllib3-1.13.1.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="HTTP library with thread-safe connection pooling, file post, and 
more"
+HOMEPAGE="https://github.com/shazow/urllib3";
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="doc test"
+
+RDEPEND="
+       dev-python/certifi[${PYTHON_USEDEP}]
+       dev-python/six[${PYTHON_USEDEP}]
+       >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}]
+       $(python_gen_cond_dep 
'dev-python/backports-ssl-match-hostname[${PYTHON_USEDEP}]' python2_7 pypy)
+       $(python_gen_cond_dep 'dev-python/ndg-httpsclient[${PYTHON_USEDEP}]' 
python2_7 pypy)
+       $(python_gen_cond_dep 'dev-python/pyasn1[${PYTHON_USEDEP}]' python2_7 
pypy)
+       "
+DEPEND="
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       test? (
+               ${RDEPEND}
+               >=www-servers/tornado-4.2.1[$(python_gen_usedep 'python*')]
+               >=dev-python/mock-1.3.0[${PYTHON_USEDEP}]
+               >=dev-python/nose-1.3.7[${PYTHON_USEDEP}]
+               >=dev-python/nose-exclude-0.4.1[${PYTHON_USEDEP}]
+       )
+       doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+       "
+
+# Testsuite written requiring mock to be installed under all Cpythons
+
+python_prepare_all() {
+       # Replace bundled copy of dev-python/six
+       cat > urllib3/packages/six.py <<-EOF
+               from __future__ import absolute_import
+               from six import *
+       EOF
+
+       sed \
+               -e 's:\.packages\.six:six:g' \
+               -e 's:\.six:six:g' \
+               -i urllib3/util/response.py urllib3/response.py || die
+
+       sed -i '/cover-min-percentage/d' setup.cfg || die
+       # Fix tests
+       sed -i 's/urllib3.packages.six/six/' test/test_retry.py || die
+
+       # Reset source of objects.inv
+       if use doc; then
+               local PYTHON_DOC_ATOM=$(best_version --host-root 
dev-python/python-docs:2.7)
+               local 
PYTHON_DOC_VERSION="${PYTHON_DOC_ATOM#dev-python/python-docs-}"
+               local 
PYTHON_DOC="/usr/share/doc/python-docs-${PYTHON_DOC_VERSION}/html"
+               local PYTHON_DOC_INVENTORY="${PYTHON_DOC}/objects.inv"
+               sed \
+                       -e "s|'python': ('http://docs.python.org/2.7', 
None|'${PYTHON_DOC}': ('${PYTHON_DOC_INVENTORY}'|" \
+                       -i docs/conf.py || die
+       fi
+
+       distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+       use doc && emake -C docs html
+}
+
+python_test() {
+       # Failures still occur under py2.7.
+       # https://github.com/shazow/urllib3/issues/621
+
+       [[ "${EPYTHON}" == pypy ]] && return
+
+       nosetests -v test || die "Tests fail with ${EPYTHON}"
+}
+
+python_install_all() {
+       use doc && local HTML_DOCS=( docs/_build/html/. )
+
+       distutils-r1_python_install_all
+}

Reply via email to