summaryrefslogtreecommitdiff
path: root/dev-python/requests
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-02-29 18:01:47 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-02-29 18:01:47 +0000
commitceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (patch)
tree9f47ee47c31a0f13f9496879cd88a1042550aa81 /dev-python/requests
parent53cba99042fa967e2a93da9f8db806fe2d035543 (diff)
gentoo (leap year) resync : 29.02.2020
Diffstat (limited to 'dev-python/requests')
-rw-r--r--dev-python/requests/Manifest4
-rw-r--r--dev-python/requests/requests-2.22.0.ebuild2
-rw-r--r--dev-python/requests/requests-2.23.0.ebuild66
3 files changed, 70 insertions, 2 deletions
diff --git a/dev-python/requests/Manifest b/dev-python/requests/Manifest
index e8157c01a46a..a36a3ca96872 100644
--- a/dev-python/requests/Manifest
+++ b/dev-python/requests/Manifest
@@ -1,6 +1,8 @@
AUX requests-2.22.0-pytest-4.patch 1076 BLAKE2B 2631f9b2e0586072e3a16e132099bab467ccbcd2020ea41ca49299688e2f88127e0b7e67545eb62659ac2729ca02b46d1e5a8c015c1d6cdd6a5ee0f8170cd483 SHA512 1de7c78c51be49e4004decd28d40e183a44c15b1e321c41595abc114ddb829ad54fc02dfb573a620cfe71f0996b78c822cb37cd68b3fb2d8e395b5f829227496
DIST requests-2.21.0.tar.gz 111528 BLAKE2B 7b40f9f572a8efde41c177fb5d1e1eaf29ca60cad0661fa28ac0085f3700348380d619f68c0082f24044d1af82b16d6b1e7d5dd2c2a2329f85fcee7141b1fbf6 SHA512 385e1d80993a21c09e7c4682500ca8c24155962ba41ecd8e73612722b2ff6618b736e827fc48ad1683b0d2bc7a420cfe680f5107860aca52656ef777f1d60104
DIST requests-2.22.0.tar.gz 113406 BLAKE2B 36e1fa106f30af3d560c11edab3cd8f7e79116378c6f4d505052c8b19021846a22b4631567859b23331e7c9413896e77d7fc3288cd3af586f5f99da21c9181a6 SHA512 8b8e9da8a0c816fb4ff39be89ac7e1a9d5a99503ed93e44a0d78b28818f1c0eb253b151972a144151a616ba1b4bc5595245458a8268c5161391db54f740ac9a5
+DIST requests-2.23.0.tar.gz 114327 BLAKE2B 75bdf83e117e9f67c2032609ed5c20582f743519ab8364dd6b12685efd6b6e438f1c155fe9d3df87e48608747f59df6d99698d1f68e5df6c0cbced9e7d1a9b37 SHA512 a0f7db5cc9ce67af9f6f81b72e41491735a102f2a1da2fbde98e279846e2140cd26b6370aa5ec79c148c397885a7ae2bbce45c4587215f510dd02b8ac57cb46e
EBUILD requests-2.21.0-r1.ebuild 1424 BLAKE2B bfa096c5f523924543070a8f000318f57884deb297aa55796bf1d53acaf778e20d96138cda8deea9eb321272e11490c0cf28b9dcee7115f6e835d9067cc754a4 SHA512 76b59f87f7941979a7dfe6054648bd5e948a2521f9053b38a2c2a8f792dd18147a54e0d6b18f0fbae08a4474d296969390bf7e954418dcdf199d1e47b3a7706f
-EBUILD requests-2.22.0.ebuild 1871 BLAKE2B a15133d80012d22b6337168f77c6f8ccb811f51ce45221cec9c88dfc4494e8d6acd41b668297a78bd36125249b6e8596fea0a36b609588aa9087a4e3c1bdc95f SHA512 e816a679c4d05823e5a12755ad97944e9190dbc6f489b61c038862fd7c764ef44dcf35c21e5fa9bf66765d959fa76695e9b717eeee8afd4c6271dd929ad776b3
+EBUILD requests-2.22.0.ebuild 1878 BLAKE2B 987f8cec0ec5a5f5c20b69cd1df554386538a146f63b8ced41afc168db095868a48a09e3b12d3d3e7e3757f7cad914d466e50f57828f9adbdb1bba26bda4fab7 SHA512 61caba256516f985dda08409e1be12f7f74c21c46d323e1b067cd75d17eda857d55480fb93c380a34d68536f4403fbd81a5b9baaae0e638b8c8879f7d06af638
+EBUILD requests-2.23.0.ebuild 1745 BLAKE2B 3eac32a42bf1247a9adbcbebec638fb10e019eeb6a54aeaed95951e6e108e73c7f37160d02d8b854acde726fad507d2d58c10c8012cf39cba5d78bf8767ea4ab SHA512 f8af1a121fded338b1104cd562a812b6d0cb61cb124f0d8928835277828c2925b1b94f790e68a74bf1b32237650321b9930b1f52b4584a490bb8d6f83f210da5
MISC metadata.xml 674 BLAKE2B 8670395eb334921eeaa21367eaf1c7d3770c11a166dc680bcb9b99a05da91d797baec8ef3c0596c40143f732e427c322a75ea75da1a2e7d99e56426be077b35e SHA512 7aa5c27d949a076b09b4c2b9e905124047d9ececc40d9c3fd225c6405aa084db96cab585956db9885b115cd24c6c153ae853187872e77e7d44ae5790c323bac9
diff --git a/dev-python/requests/requests-2.22.0.ebuild b/dev-python/requests/requests-2.22.0.ebuild
index 6ce120594e8e..aec03d0cc4d1 100644
--- a/dev-python/requests/requests-2.22.0.ebuild
+++ b/dev-python/requests/requests-2.22.0.ebuild
@@ -14,7 +14,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~amd64 ~arm ~arm64 ~sparc ~x86 ~amd64-linux ~x86-linux"
IUSE="socks5 +ssl test"
RESTRICT="!test? ( test )"
diff --git a/dev-python/requests/requests-2.23.0.ebuild b/dev-python/requests/requests-2.23.0.ebuild
new file mode 100644
index 000000000000..e07f05359d86
--- /dev/null
+++ b/dev-python/requests/requests-2.23.0.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 )
+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="~amd64 ~arm ~arm64 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="socks5 +ssl test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=dev-python/certifi-2017.4.17[${PYTHON_USEDEP}]
+ >=dev-python/chardet-3.0.2[${PYTHON_USEDEP}]
+ <dev-python/chardet-4[${PYTHON_USEDEP}]
+ >=dev-python/idna-2.5[${PYTHON_USEDEP}]
+ <dev-python/idna-3[${PYTHON_USEDEP}]
+ <dev-python/urllib3-1.26[${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_USEDEP}]
+ )
+"
+
+BDEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ ${RDEPEND}
+ dev-python/pytest[${PYTHON_USEDEP}]
+ dev-python/pytest-httpbin[${PYTHON_USEDEP}]
+ dev-python/pytest-mock[${PYTHON_USEDEP}]
+ >=dev-python/PySocks-1.5.6[${PYTHON_USEDEP}]
+ )
+"
+
+src_prepare() {
+ distutils-r1_src_prepare
+
+ # strip tests that require some kind of network
+ sed -e 's:test_connect_timeout:_&:' \
+ -e 's:test_total_timeout_connect:_&:' \
+ -i tests/test_requests.py || die
+ # probably pyopenssl version dependent
+ sed -e 's:test_https_warnings:_&:' \
+ -i tests/test_requests.py || die
+ # doctests rely on networking
+ sed -e 's:--doctest-modules::' \
+ -i pytest.ini || die
+}
+
+python_test() {
+ # tests hang with pypy & pypy3
+# [[ ${EPYTHON} == pypy* ]] && continue
+
+ pytest -vv || die "Tests failed with ${EPYTHON}"
+}