1 |
commit: 963dd73fa94b48a9b86b61c6149d4198cc8efb71 |
2 |
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 29 17:47:49 2017 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 29 22:03:19 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=963dd73f |
7 |
|
8 |
dev-python/requests: version bump. introduced use flags for ssl and socks. |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
dev-python/requests/Manifest | 1 + |
13 |
dev-python/requests/metadata.xml | 6 ++++ |
14 |
dev-python/requests/requests-2.18.1.ebuild | 46 ++++++++++++++++++++++++++++++ |
15 |
3 files changed, 53 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/requests/Manifest b/dev-python/requests/Manifest |
18 |
index 507ef33c624..c62eaec4b65 100644 |
19 |
--- a/dev-python/requests/Manifest |
20 |
+++ b/dev-python/requests/Manifest |
21 |
@@ -2,4 +2,5 @@ DIST requests-2.11.1.tar.gz 485936 SHA256 5acf980358283faba0b897c73959cecf8b8412 |
22 |
DIST requests-2.12.5.tar.gz 548336 SHA256 d902a54f08d086a7cc6e58c20e2bb225b1ae82c19c35e5925269ee94fb9fce00 SHA512 3ad60b953c6db98d26c043c7e77c3be8b28389ee1dbf32e75663cf48a8ddc2e487df27c54c64736ff42b79e35a6dbd2788065469a61a520a9818183970274cd9 WHIRLPOOL bc347e966743a940c09ed9bc98fed7422648a9b0354d36aaf94820fb306169842fafe5d34a48effb46547bb44fb46b2499cb1ba7dfd3ec029426cf97418d9c68 |
23 |
DIST requests-2.13.0.tar.gz 557508 SHA256 5722cd09762faa01276230270ff16af7acf7c5c45d623868d9ba116f15791ce8 SHA512 d3e9c25d1ce7ecf51bd4b137645d06c07170542a78fc847b1c30cad6efa9bcbf36d4b0c809389cbf260dc7d73128ab6bbed1e197cba9497b6ad791b48014ae14 WHIRLPOOL febfabea45aa45093eb04758f40a35b6479e16f833fd83abc798d2b5786bed025bb00c45e8dea9161aff735bde693573e6f5db7e5ee09ad3d2b140673e2cbcf8 |
24 |
DIST requests-2.14.2.tar.gz 521027 SHA256 a274abba399a23e8713ffd2b5706535ae280ebe2b8069ee6a941cb089440d153 SHA512 f6531ada6d854a261cad874044daa9e7f79d55c8f8fcfec1b25862563127318fbf717ed640644ddf0dbe4d7fe1298d478fcd76825a3604e06cefae5990fa9dd4 WHIRLPOOL e242d8182312b437a27bdc1d4a099d7db0c6135b3de29c0285ba60f6a72e1102941603cc551d8f3a4597f479c7d9409eef073c25b2411df93d0903d9f87b316f |
25 |
+DIST requests-2.18.1.tar.gz 124229 SHA256 c6f3bdf4a4323ac7b45d01e04a6f6c20e32a052cd04de81e05103abc049ad9b9 SHA512 d7482ddce36ce633bee830bc8d9f9a207e1c20595378f7c60dcef01cab016a16704965f3b52e3faac63dd50fbe7c61d575742e71f51a2b8d41c1922df2dbaa06 WHIRLPOOL c1cf2544fdb4a7eb6536ff97847a15d786a9f1dcb7509e089a9d73e9372e5c6735b35a1c0d6e33580d933f573b3b3c3a1b48af2755563f04893daf66a114c8df |
26 |
DIST requests-2.8.1.tar.gz 480803 SHA256 84fe8d5bf4dcdcc49002446c47a146d17ac10facf00d9086659064ac43b6c25b SHA512 bccec89165596df3af3f46eb43b5b28b595752485b00ed73978ef76fa6b8a8961c3db046c3f91ff34fa390f037322f6e13b141ba9b600a836a6d798086bd13fb WHIRLPOOL 445e0e12f5900c3396ae7a76d0010b9c4a4ff2c79c51dfc88f117918e436a4d67ea25de39f252cacaabd737b7b1542374172a2b6f482d7ffe1f7514d1cb4a06b |
27 |
|
28 |
diff --git a/dev-python/requests/metadata.xml b/dev-python/requests/metadata.xml |
29 |
index a04fa3017f1..7f45ae4e314 100644 |
30 |
--- a/dev-python/requests/metadata.xml |
31 |
+++ b/dev-python/requests/metadata.xml |
32 |
@@ -5,6 +5,12 @@ |
33 |
<email>python@g.o</email> |
34 |
<name>Python</name> |
35 |
</maintainer> |
36 |
+ <longdescription lang="en"> |
37 |
+ Most existing Python modules for sending HTTP requests are extremely verbose and |
38 |
+ cumbersome. Python’s built-in urllib2 module provides most of the HTTP |
39 |
+ capabilities you should need, but the API is thoroughly broken. This library is |
40 |
+ designed to make HTTP requests easy for developers. |
41 |
+ </longdescription> |
42 |
<upstream> |
43 |
<remote-id type="pypi">requests</remote-id> |
44 |
</upstream> |
45 |
|
46 |
diff --git a/dev-python/requests/requests-2.18.1.ebuild b/dev-python/requests/requests-2.18.1.ebuild |
47 |
new file mode 100644 |
48 |
index 00000000000..bbf594bc0e5 |
49 |
--- /dev/null |
50 |
+++ b/dev-python/requests/requests-2.18.1.ebuild |
51 |
@@ -0,0 +1,46 @@ |
52 |
+# Copyright 1999-2017 Gentoo Foundation |
53 |
+# Distributed under the terms of the GNU General Public License v2 |
54 |
+ |
55 |
+EAPI=6 |
56 |
+ |
57 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) |
58 |
+PYTHON_REQ_USE="threads(+)" |
59 |
+ |
60 |
+inherit distutils-r1 |
61 |
+ |
62 |
+DESCRIPTION="HTTP library for human beings" |
63 |
+HOMEPAGE="http://python-requests.org/" |
64 |
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
65 |
+ |
66 |
+LICENSE="Apache-2.0" |
67 |
+SLOT="0" |
68 |
+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" |
69 |
+IUSE="socks5 +ssl test" |
70 |
+ |
71 |
+RDEPEND=" |
72 |
+ >=dev-python/certifi-2017.4.17[${PYTHON_USEDEP}] |
73 |
+ >=dev-python/chardet-3.0.2[${PYTHON_USEDEP}] |
74 |
+ >=dev-python/idna-2.5[${PYTHON_USEDEP}] |
75 |
+ >=dev-python/urllib3-1.21.1[${PYTHON_USEDEP}] |
76 |
+ socks5? ( >=dev-python/PySocks-1.5.6[${PYTHON_USEDEP}] ) |
77 |
+ ssl? ( |
78 |
+ >=dev-python/cryptography-1.3.4[${PYTHON_USEDEP}] |
79 |
+ >=dev-python/pyopenssl-0.14[$(python_gen_usedep 'python*' pypy)] |
80 |
+ ) |
81 |
+" |
82 |
+ |
83 |
+DEPEND="${RDEPEND} |
84 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
85 |
+" |
86 |
+# tests connect to various remote sites |
87 |
+RESTRICT="test" |
88 |
+# test? ( |
89 |
+# dev-python/pytest[${PYTHON_USEDEP}] |
90 |
+# dev-python/pytest-httpbin[${PYTHON_USEDEP}] |
91 |
+# dev-python/pytest-mock[${PYTHON_USEDEP}] |
92 |
+# dev-python/pytest-xdist[${PYTHON_USEDEP}] |
93 |
+# ) |
94 |
+ |
95 |
+python_test() { |
96 |
+ py.test -v --boxed || die |
97 |
+} |