diff options
author | Ian Delaney <idella4@gentoo.org> | 2014-07-16 14:16:45 +0000 |
---|---|---|
committer | Ian Delaney <idella4@gentoo.org> | 2014-07-16 14:16:45 +0000 |
commit | 83cef5590ea1a501dd801432905c51b33c8999ca (patch) | |
tree | ea53c990f647d4ce0fca948a3ec92674b0a32a66 /dev-python | |
parent | Fix missing includes for standard functions. Stop running autotools in src_in... (diff) | |
download | gentoo-2-83cef5590ea1a501dd801432905c51b33c8999ca.tar.gz gentoo-2-83cef5590ea1a501dd801432905c51b33c8999ca.tar.bz2 gentoo-2-83cef5590ea1a501dd801432905c51b33c8999ca.zip |
bump; fix to tests ensuring imports from installed system six, fix patch by fau, fixes Bug #517078
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/urllib3/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/urllib3/urllib3-1.9.ebuild | 48 |
2 files changed, 55 insertions, 1 deletions
diff --git a/dev-python/urllib3/ChangeLog b/dev-python/urllib3/ChangeLog index 6e8d0b13d674..edafc9a762aa 100644 --- a/dev-python/urllib3/ChangeLog +++ b/dev-python/urllib3/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/urllib3 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/urllib3/ChangeLog,v 1.22 2014/06/26 22:21:59 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/urllib3/ChangeLog,v 1.23 2014/07/16 14:16:45 idella4 Exp $ + +*urllib3-1.9 (16 Jul 2014) + + 16 Jul 2014; Ian Delaney <idella4@gentoo.org> +urllib3-1.9.ebuild: + bump; fix to tests ensuring imports from installed system six, fix patch by + fau, fixes Bug #517078 *urllib3-1.8.3 (26 Jun 2014) diff --git a/dev-python/urllib3/urllib3-1.9.ebuild b/dev-python/urllib3/urllib3-1.9.ebuild new file mode 100644 index 000000000000..bb3fca0a133f --- /dev/null +++ b/dev-python/urllib3/urllib3-1.9.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/urllib3/urllib3-1.9.ebuild,v 1.1 2014/07/16 14:16:45 idella4 Exp $ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} 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="~amd64 ~arm ~x86" +IUSE="test" + +RDEPEND="dev-python/six[${PYTHON_USEDEP}] + $(python_gen_cond_dep \ + 'dev-python/backports-ssl-match-hostname[${PYTHON_USEDEP}]' \ + 'python2*' pypy)" +DEPEND=" + test? ( + >=www-servers/tornado-2.4.1[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + )" + +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 -i 's:cover-min-percentage = 100::' setup.cfg || die + # Fix tests + sed -i 's/urllib3.packages.six/six/' test/test_retry.py || die + sed -i '/clear_warnings/d' test/test_util.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + nosetests -v || die "Tests fail with ${EPYTHON}" +} |