summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Fabbro <bicatali@gentoo.org>2017-06-29 17:47:49 +0000
committerSébastien Fabbro <bicatali@gentoo.org>2017-06-29 22:03:19 +0000
commit963dd73fa94b48a9b86b61c6149d4198cc8efb71 (patch)
tree8cb6b3aa58f588b66a7fb8025f9cf5cafa008811 /dev-python/requests
parentdev-perl/LWP-Authen-Wsse: Add build fix for Perl 5.26, bug 617008 (diff)
downloadgentoo-963dd73fa94b48a9b86b61c6149d4198cc8efb71.tar.gz
gentoo-963dd73fa94b48a9b86b61c6149d4198cc8efb71.tar.bz2
gentoo-963dd73fa94b48a9b86b61c6149d4198cc8efb71.zip
dev-python/requests: version bump. introduced use flags for ssl and socks.
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'dev-python/requests')
-rw-r--r--dev-python/requests/Manifest1
-rw-r--r--dev-python/requests/metadata.xml6
-rw-r--r--dev-python/requests/requests-2.18.1.ebuild46
3 files changed, 53 insertions, 0 deletions
diff --git a/dev-python/requests/Manifest b/dev-python/requests/Manifest
index 507ef33c624e..c62eaec4b655 100644
--- a/dev-python/requests/Manifest
+++ b/dev-python/requests/Manifest
@@ -2,4 +2,5 @@ DIST requests-2.11.1.tar.gz 485936 SHA256 5acf980358283faba0b897c73959cecf8b8412
DIST requests-2.12.5.tar.gz 548336 SHA256 d902a54f08d086a7cc6e58c20e2bb225b1ae82c19c35e5925269ee94fb9fce00 SHA512 3ad60b953c6db98d26c043c7e77c3be8b28389ee1dbf32e75663cf48a8ddc2e487df27c54c64736ff42b79e35a6dbd2788065469a61a520a9818183970274cd9 WHIRLPOOL bc347e966743a940c09ed9bc98fed7422648a9b0354d36aaf94820fb306169842fafe5d34a48effb46547bb44fb46b2499cb1ba7dfd3ec029426cf97418d9c68
DIST requests-2.13.0.tar.gz 557508 SHA256 5722cd09762faa01276230270ff16af7acf7c5c45d623868d9ba116f15791ce8 SHA512 d3e9c25d1ce7ecf51bd4b137645d06c07170542a78fc847b1c30cad6efa9bcbf36d4b0c809389cbf260dc7d73128ab6bbed1e197cba9497b6ad791b48014ae14 WHIRLPOOL febfabea45aa45093eb04758f40a35b6479e16f833fd83abc798d2b5786bed025bb00c45e8dea9161aff735bde693573e6f5db7e5ee09ad3d2b140673e2cbcf8
DIST requests-2.14.2.tar.gz 521027 SHA256 a274abba399a23e8713ffd2b5706535ae280ebe2b8069ee6a941cb089440d153 SHA512 f6531ada6d854a261cad874044daa9e7f79d55c8f8fcfec1b25862563127318fbf717ed640644ddf0dbe4d7fe1298d478fcd76825a3604e06cefae5990fa9dd4 WHIRLPOOL e242d8182312b437a27bdc1d4a099d7db0c6135b3de29c0285ba60f6a72e1102941603cc551d8f3a4597f479c7d9409eef073c25b2411df93d0903d9f87b316f
+DIST requests-2.18.1.tar.gz 124229 SHA256 c6f3bdf4a4323ac7b45d01e04a6f6c20e32a052cd04de81e05103abc049ad9b9 SHA512 d7482ddce36ce633bee830bc8d9f9a207e1c20595378f7c60dcef01cab016a16704965f3b52e3faac63dd50fbe7c61d575742e71f51a2b8d41c1922df2dbaa06 WHIRLPOOL c1cf2544fdb4a7eb6536ff97847a15d786a9f1dcb7509e089a9d73e9372e5c6735b35a1c0d6e33580d933f573b3b3c3a1b48af2755563f04893daf66a114c8df
DIST requests-2.8.1.tar.gz 480803 SHA256 84fe8d5bf4dcdcc49002446c47a146d17ac10facf00d9086659064ac43b6c25b SHA512 bccec89165596df3af3f46eb43b5b28b595752485b00ed73978ef76fa6b8a8961c3db046c3f91ff34fa390f037322f6e13b141ba9b600a836a6d798086bd13fb WHIRLPOOL 445e0e12f5900c3396ae7a76d0010b9c4a4ff2c79c51dfc88f117918e436a4d67ea25de39f252cacaabd737b7b1542374172a2b6f482d7ffe1f7514d1cb4a06b
diff --git a/dev-python/requests/metadata.xml b/dev-python/requests/metadata.xml
index a04fa3017f1c..7f45ae4e314e 100644
--- a/dev-python/requests/metadata.xml
+++ b/dev-python/requests/metadata.xml
@@ -5,6 +5,12 @@
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
+ <longdescription lang="en">
+ Most existing Python modules for sending HTTP requests are extremely verbose and
+ cumbersome. Python’s built-in urllib2 module provides most of the HTTP
+ capabilities you should need, but the API is thoroughly broken. This library is
+ designed to make HTTP requests easy for developers.
+ </longdescription>
<upstream>
<remote-id type="pypi">requests</remote-id>
</upstream>
diff --git a/dev-python/requests/requests-2.18.1.ebuild b/dev-python/requests/requests-2.18.1.ebuild
new file mode 100644
index 000000000000..bbf594bc0e52
--- /dev/null
+++ b/dev-python/requests/requests-2.18.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} )
+PYTHON_REQ_USE="threads(+)"
+
+inherit distutils-r1
+
+DESCRIPTION="HTTP library for human beings"
+HOMEPAGE="http://python-requests.org/"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE="socks5 +ssl test"
+
+RDEPEND="
+ >=dev-python/certifi-2017.4.17[${PYTHON_USEDEP}]
+ >=dev-python/chardet-3.0.2[${PYTHON_USEDEP}]
+ >=dev-python/idna-2.5[${PYTHON_USEDEP}]
+ >=dev-python/urllib3-1.21.1[${PYTHON_USEDEP}]
+ socks5? ( >=dev-python/PySocks-1.5.6[${PYTHON_USEDEP}] )
+ ssl? (
+ >=dev-python/cryptography-1.3.4[${PYTHON_USEDEP}]
+ >=dev-python/pyopenssl-0.14[$(python_gen_usedep 'python*' pypy)]
+ )
+"
+
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+"
+# tests connect to various remote sites
+RESTRICT="test"
+# test? (
+# dev-python/pytest[${PYTHON_USEDEP}]
+# dev-python/pytest-httpbin[${PYTHON_USEDEP}]
+# dev-python/pytest-mock[${PYTHON_USEDEP}]
+# dev-python/pytest-xdist[${PYTHON_USEDEP}]
+# )
+
+python_test() {
+ py.test -v --boxed || die
+}