From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E2EAF13835B for ; Wed, 16 Dec 2020 23:04:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 11AA1E09F0; Wed, 16 Dec 2020 23:04:47 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D59B7E09F0 for ; Wed, 16 Dec 2020 23:04:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A9995340F01 for ; Wed, 16 Dec 2020 23:04:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4E29FCB for ; Wed, 16 Dec 2020 23:04:42 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1608159786.001a94ad6bea3ccd57c18cf0e55dfbeb341fd59d.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/requests/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/requests/Manifest dev-python/requests/requests-2.25.1.ebuild X-VCS-Directories: dev-python/requests/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 001a94ad6bea3ccd57c18cf0e55dfbeb341fd59d X-VCS-Branch: master Date: Wed, 16 Dec 2020 23:04:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 84fe8346-0018-46eb-b66f-66e1859bfc99 X-Archives-Hash: 9491f80a76af392428acf630b6fcfecf commit: 001a94ad6bea3ccd57c18cf0e55dfbeb341fd59d Author: Michał Górny gentoo org> AuthorDate: Wed Dec 16 22:38:33 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Dec 16 23:03:06 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=001a94ad dev-python/requests: Bump to 2.25.1 Signed-off-by: Michał Górny gentoo.org> dev-python/requests/Manifest | 1 + dev-python/requests/requests-2.25.1.ebuild | 56 ++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/dev-python/requests/Manifest b/dev-python/requests/Manifest index 1466b6610d0..4123a69f944 100644 --- a/dev-python/requests/Manifest +++ b/dev-python/requests/Manifest @@ -1,2 +1,3 @@ DIST requests-2.24.0.tar.gz 115071 BLAKE2B ae98be1d023b2a7b883e15a7a5d214ecbf482234e9de6bfc9cd06d1f04d1b57d101d41a2c6fdd07b7a6b468875463514841d2e023391ac8ae0797a2cb58b3424 SHA512 46ca8ab70eb39be8398c242404b9b3ffb6baddd5c78eaad125b55c719154eb8c7b6a737a8dc587b0cb51b3b9a074abaa8b2ff347a64d38f4f90cdba4db16a119 DIST requests-2.25.0.tar.gz 101897 BLAKE2B 5de8f4f5059915f929ebb71d8209bfefbe95bb381544ed0b6875cc01cb958e6fe8861cd8321143463da5dd872ad4ff8c828008bcd6409b41857c4d2037db3f67 SHA512 dd13ccb6bcd95bdd31a414dba67e5a0914ff172ae6f5d255849837e8e2a7e404e3c02fc3d07e5ff6dc81c12d0fe56c3b83bc62bc377dd3f504b00b97b144db74 +DIST requests-2.25.1.tar.gz 102161 BLAKE2B 1901ca3bb1eb7a6eb7689a81e01c1c23d3f359835507fda78de734162cbd8573b7640c9376cb50ed9397603d67d9a14624028573c2709086547f37993a959429 SHA512 ca6b0a257b448a999cade0ae173c29cddc9cfffb319d16fc3d051d3e1cd77161536e3cab279b3cba59c60d29d7864a9281c1fa1f689ce48d3bce2ca9f1cd8d45 diff --git a/dev-python/requests/requests-2.25.1.ebuild b/dev-python/requests/requests-2.25.1.ebuild new file mode 100644 index 00000000000..ca363758505 --- /dev/null +++ b/dev-python/requests/requests-2.25.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="HTTP library for human beings" +HOMEPAGE="https://requests.readthedocs.io/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="socks5 +ssl" + +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/PySocks-1.5.6[${PYTHON_USEDEP}] ) + ssl? ( + >=dev-python/cryptography-1.3.4[${PYTHON_USEDEP}] + ) +" + +BDEPEND=" + test? ( + dev-python/pytest-httpbin[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + >=dev-python/PySocks-1.5.6[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +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 +}