diff options
author | Tim Harder <radhermit@gentoo.org> | 2014-01-23 02:27:23 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2014-01-23 02:27:23 +0000 |
commit | 86351f739ab8aaaa54a125a8cb2b95f70ac7d9c4 (patch) | |
tree | 7a0a4ad69d6925b7b174ef32e18f86539a020537 /dev-python/requests | |
parent | Automated update. (diff) | |
download | gentoo-2-86351f739ab8aaaa54a125a8cb2b95f70ac7d9c4.tar.gz gentoo-2-86351f739ab8aaaa54a125a8cb2b95f70ac7d9c4.tar.bz2 gentoo-2-86351f739ab8aaaa54a125a8cb2b95f70ac7d9c4.zip |
Version bump. Drop python3.2 support since it was dropped upstream and tests fail.
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'dev-python/requests')
-rw-r--r-- | dev-python/requests/ChangeLog | 11 | ||||
-rw-r--r-- | dev-python/requests/files/requests-2.2.0-system-chardet.patch | 21 | ||||
-rw-r--r-- | dev-python/requests/requests-2.2.0.ebuild | 44 |
3 files changed, 74 insertions, 2 deletions
diff --git a/dev-python/requests/ChangeLog b/dev-python/requests/ChangeLog index 18f19f8594d7..cb2f3b6981ce 100644 --- a/dev-python/requests/ChangeLog +++ b/dev-python/requests/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-python/requests -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/requests/ChangeLog,v 1.51 2013/12/10 03:38:01 patrick Exp $ +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/requests/ChangeLog,v 1.52 2014/01/23 02:27:23 radhermit Exp $ + +*requests-2.2.0 (23 Jan 2014) + + 23 Jan 2014; Tim Harder <radhermit@gentoo.org> +requests-2.2.0.ebuild, + +files/requests-2.2.0-system-chardet.patch: + Version bump. Drop python3.2 support since it was dropped upstream and tests + fail. *requests-2.1.0 (10 Dec 2013) diff --git a/dev-python/requests/files/requests-2.2.0-system-chardet.patch b/dev-python/requests/files/requests-2.2.0-system-chardet.patch new file mode 100644 index 000000000000..18fc7a992bf5 --- /dev/null +++ b/dev-python/requests/files/requests-2.2.0-system-chardet.patch @@ -0,0 +1,21 @@ +--- requests-2.2.0/requests/compat.py ++++ requests-2.2.0/requests/compat.py +@@ -4,7 +4,7 @@ + pythoncompat + """ + +-from .packages import chardet ++import chardet + + import sys + +--- requests-2.2.0/setup.py ++++ requests-2.2.0/setup.py +@@ -17,7 +17,6 @@ + packages = [ + 'requests', + 'requests.packages', +- 'requests.packages.chardet', + 'requests.packages.urllib3', + 'requests.packages.urllib3.packages', + 'requests.packages.urllib3.contrib', diff --git a/dev-python/requests/requests-2.2.0.ebuild b/dev-python/requests/requests-2.2.0.ebuild new file mode 100644 index 000000000000..4fb6bf5a3d2e --- /dev/null +++ b/dev-python/requests/requests-2.2.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/requests/requests-2.2.0.ebuild,v 1.1 2014/01/23 02:27:23 radhermit Exp $ + +EAPI=5 +PYTHON_COMPAT=( python{2_6,2_7,3_3} pypy2_0 ) + +inherit distutils-r1 + +DESCRIPTION="HTTP library for human beings" +HOMEPAGE="http://python-requests.org/ http://pypi.python.org/pypi/requests" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~mips ~x86" +IUSE="" + +# bundles dev-python/urllib3 snapshot +RDEPEND="app-misc/ca-certificates + >=dev-python/chardet-2.2.1[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +# tests connect to various remote sites +RESTRICT="test" + +DOCS=( README.rst HISTORY.rst ) + +python_prepare_all() { + local PATCHES=( + "${FILESDIR}"/${PN}-1.2.0-system-cacerts.patch + "${FILESDIR}"/${P}-system-chardet.patch + ) + + # use system chardet + rm -r requests/packages/chardet || die + + distutils-r1_python_prepare_all +} + +python_test() { + "${PYTHON}" test_requests.py || die "Tests fail with ${EPYTHON}" +} |