Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/requests/
Date: Sat, 17 Jul 2021 07:25:34
Message-Id: 1626506626.9d32b1ef2905393bc94516aa1deb7563ac2f7c6c.mgorny@gentoo
1 commit: 9d32b1ef2905393bc94516aa1deb7563ac2f7c6c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 17 07:19:53 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 17 07:23:46 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d32b1ef
7
8 dev-python/requests: Bump to 2.26.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/requests/Manifest | 1 +
13 dev-python/requests/requests-2.26.0.ebuild | 53 ++++++++++++++++++++++++++++++
14 2 files changed, 54 insertions(+)
15
16 diff --git a/dev-python/requests/Manifest b/dev-python/requests/Manifest
17 index c3b2f9c1b31..afb9f28b3e7 100644
18 --- a/dev-python/requests/Manifest
19 +++ b/dev-python/requests/Manifest
20 @@ -1 +1,2 @@
21 DIST requests-2.25.1.tar.gz 102161 BLAKE2B 1901ca3bb1eb7a6eb7689a81e01c1c23d3f359835507fda78de734162cbd8573b7640c9376cb50ed9397603d67d9a14624028573c2709086547f37993a959429 SHA512 ca6b0a257b448a999cade0ae173c29cddc9cfffb319d16fc3d051d3e1cd77161536e3cab279b3cba59c60d29d7864a9281c1fa1f689ce48d3bce2ca9f1cd8d45
22 +DIST requests-2.26.0.tar.gz 104433 BLAKE2B 49872a0602ab0e6b3838c4ff84d6611c5265dd584a1902b51d5903a2fc566b97f7a70973a9244adf190e9249bc6d1fa448a2164a31d125ab6b3dac172ae62e1c SHA512 c3397d77f0d2f1afb05661c4b98adad6c1ddaf360906254150b33ab0d9479fd306905bd6d61b8cf8becd9a40bdcf9b03542e8267c644ef19f03f44bfca0bc461
23
24 diff --git a/dev-python/requests/requests-2.26.0.ebuild b/dev-python/requests/requests-2.26.0.ebuild
25 new file mode 100644
26 index 00000000000..2d726cc2333
27 --- /dev/null
28 +++ b/dev-python/requests/requests-2.26.0.ebuild
29 @@ -0,0 +1,53 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
36 +PYTHON_REQ_USE="threads(+)"
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="HTTP library for human beings"
41 +HOMEPAGE="https://requests.readthedocs.io/"
42 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
43 +
44 +LICENSE="Apache-2.0"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE="socks5"
48 +
49 +RDEPEND="
50 + >=dev-python/certifi-2017.4.17[${PYTHON_USEDEP}]
51 + dev-python/charset_normalizer[${PYTHON_USEDEP}]
52 + <dev-python/idna-4[${PYTHON_USEDEP}]
53 + <dev-python/urllib3-1.27[${PYTHON_USEDEP}]
54 + socks5? ( >=dev-python/PySocks-1.5.6[${PYTHON_USEDEP}] )
55 +"
56 +
57 +BDEPEND="
58 + test? (
59 + dev-python/pytest-httpbin[${PYTHON_USEDEP}]
60 + dev-python/pytest-mock[${PYTHON_USEDEP}]
61 + >=dev-python/PySocks-1.5.6[${PYTHON_USEDEP}]
62 + )
63 +"
64 +
65 +distutils_enable_tests pytest
66 +
67 +python_test() {
68 + local deselect=(
69 + # Internet
70 + requests/__init__.py::requests
71 + requests/api.py::requests.api.request
72 + requests/models.py::requests.models.PreparedRequest
73 + requests/sessions.py::requests.sessions.Session
74 + tests/test_requests.py::TestRequests::test_https_warnings
75 + tests/test_requests.py::TestTimeout::test_connect_timeout
76 + tests/test_requests.py::TestTimeout::test_total_timeout_connect
77 + # TODO: openssl?
78 + tests/test_requests.py::TestRequests::test_pyopenssl_redirect
79 + )
80 +
81 + epytest ${deselect[@]/#/--deselect }
82 +}