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 A2F941382C5 for ; Wed, 5 May 2021 12:19:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E7D71E0876; Wed, 5 May 2021 12:19:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 C8A3CE0876 for ; Wed, 5 May 2021 12:19:30 +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 E43D834097F for ; Wed, 5 May 2021 12:19:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9DBEF71B for ; Wed, 5 May 2021 12:19:28 +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: <1620217136.b9cf679e65d9ada1bcd974fe31cb535606f9956d.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/requests/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/requests/requests-2.25.1-r1.ebuild dev-python/requests/requests-2.25.1-r2.ebuild X-VCS-Directories: dev-python/requests/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: b9cf679e65d9ada1bcd974fe31cb535606f9956d X-VCS-Branch: master Date: Wed, 5 May 2021 12:19:28 +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: 2da28790-b5dd-4725-a3ff-c4e4bf9af7a3 X-Archives-Hash: 06f3fb0421cf9a34e9f10a88e5a5a3a7 commit: b9cf679e65d9ada1bcd974fe31cb535606f9956d Author: Michał Górny gentoo org> AuthorDate: Wed May 5 10:29:26 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed May 5 12:18:56 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9cf679e dev-python/requests: Allow idna-3 Closes: https://bugs.gentoo.org/787584 Signed-off-by: Michał Górny gentoo.org> ...-2.25.1-r1.ebuild => requests-2.25.1-r2.ebuild} | 29 ++++++++++++++-------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/dev-python/requests/requests-2.25.1-r1.ebuild b/dev-python/requests/requests-2.25.1-r2.ebuild similarity index 65% rename from dev-python/requests/requests-2.25.1-r1.ebuild rename to dev-python/requests/requests-2.25.1-r2.ebuild index 0ade640f133..d628a9ac03e 100644 --- a/dev-python/requests/requests-2.25.1-r1.ebuild +++ b/dev-python/requests/requests-2.25.1-r2.ebuild @@ -22,7 +22,7 @@ RDEPEND=" >=dev-python/chardet-3.0.2[${PYTHON_USEDEP}] =dev-python/idna-2.5[${PYTHON_USEDEP}] - =dev-python/PySocks-1.5.6[${PYTHON_USEDEP}] ) " @@ -38,16 +38,23 @@ BDEPEND=" distutils_enable_tests pytest src_prepare() { + # allow idna-3 + sed -i -e '/idna/s:<3:<4:' setup.py || die + distutils-r1_src_prepare +} + +python_test() { + local deselect=( + # Internet + requests/__init__.py::requests + requests/api.py::requests.api.request + requests/models.py::requests.models.PreparedRequest + requests/sessions.py::requests.sessions.Session + tests/test_requests.py::TestRequests::test_https_warnings + tests/test_requests.py::TestTimeout::test_connect_timeout + tests/test_requests.py::TestTimeout::test_total_timeout_connect + ) - # 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 + epytest ${deselect[@]/#/--deselect } }