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 6C31F1382C5 for ; Tue, 23 Mar 2021 23:29:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80E1BE0802; Tue, 23 Mar 2021 23:29:36 +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 061BCE0802 for ; Tue, 23 Mar 2021 23:29:35 +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 33E5B340A7F for ; Tue, 23 Mar 2021 23:29:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AFE744F1 for ; Tue, 23 Mar 2021 23:29:32 +0000 (UTC) From: "Patrick McLean" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick McLean" Message-ID: <1616542154.bc7bfb88c6c872ddffc49ebc657e5c3da3833b0a.chutzpah@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pycurl-requests/files/, dev-python/pycurl-requests/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pycurl-requests/Manifest dev-python/pycurl-requests/files/pycurl-requests-0.2.0-test.patch dev-python/pycurl-requests/metadata.xml dev-python/pycurl-requests/pycurl-requests-0.2.0.ebuild X-VCS-Directories: dev-python/pycurl-requests/files/ dev-python/pycurl-requests/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: bc7bfb88c6c872ddffc49ebc657e5c3da3833b0a X-VCS-Branch: master Date: Tue, 23 Mar 2021 23:29:32 +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: 8f787b20-d5b3-4adb-9b6f-770093edf6eb X-Archives-Hash: a15c14bb97590ef59dbccdb10dbb8a83 commit: bc7bfb88c6c872ddffc49ebc657e5c3da3833b0a Author: Patrick McLean sony com> AuthorDate: Tue Mar 23 23:29:14 2021 +0000 Commit: Patrick McLean gentoo org> CommitDate: Tue Mar 23 23:29:14 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc7bfb88 dev-python/pycurl-requests: New package Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Patrick McLean gentoo.org> dev-python/pycurl-requests/Manifest | 1 + .../files/pycurl-requests-0.2.0-test.patch | 20 +++++++++++++++++ dev-python/pycurl-requests/metadata.xml | 9 ++++++++ .../pycurl-requests/pycurl-requests-0.2.0.ebuild | 26 ++++++++++++++++++++++ 4 files changed, 56 insertions(+) diff --git a/dev-python/pycurl-requests/Manifest b/dev-python/pycurl-requests/Manifest new file mode 100644 index 00000000000..3da4d1e9024 --- /dev/null +++ b/dev-python/pycurl-requests/Manifest @@ -0,0 +1 @@ +DIST pycurl-requests-0.2.0.tar.gz 22962 BLAKE2B 9e28422e910ab88f2f6ace1684cd35a89eccde9eed9d63f48cb2d6f0caa30811016365fbbffc2bdd2dd8b05a3b248142a5822c092c9d40ebaabeed4ef068c659 SHA512 3bf091ff47e376a23f9046dbcc5631199da9434911d4140f5d09e5091b81f05c8cd8094528b7ac7d74f7a4b085a6dfd40bec81c66fde020a0680e2237b7af5b2 diff --git a/dev-python/pycurl-requests/files/pycurl-requests-0.2.0-test.patch b/dev-python/pycurl-requests/files/pycurl-requests-0.2.0-test.patch new file mode 100644 index 00000000000..47869defd5e --- /dev/null +++ b/dev-python/pycurl-requests/files/pycurl-requests-0.2.0-test.patch @@ -0,0 +1,20 @@ +diff --git a/pycurl_requests/tests/test_requests.py b/pycurl_requests/tests/test_requests.py +index 7d2c627..850d530 100644 +--- a/pycurl_requests/tests/test_requests.py ++++ b/pycurl_requests/tests/test_requests.py +@@ -160,6 +160,7 @@ def test_get_timeout_urllib3(http_server, timeout): + requests.get(http_server.base_url + '/slow', timeout=timeout) + + ++@pytest.mark.skip("not compatible with network-sandbox") + @pytest.mark.parametrize('timeout', [0.1, (0.1, None)]) + def test_get_connect_timeout(http_server, timeout): + with pytest.raises(requests.Timeout): +@@ -168,6 +169,7 @@ def test_get_connect_timeout(http_server, timeout): + requests.get(http_server.base_url + '/slow', timeout=timeout) + + ++@pytest.mark.skip("not compatible with network-sandbox") + @pytest.mark.skipif('urllib3' not in sys.modules, reason='urllib3 not available') + @pytest.mark.parametrize('timeout', [Timeout(connect=0.1), Timeout(total=0.1)]) + def test_get_connect_timeout_urllib3(http_server, timeout): diff --git a/dev-python/pycurl-requests/metadata.xml b/dev-python/pycurl-requests/metadata.xml new file mode 100644 index 00000000000..3fd97649420 --- /dev/null +++ b/dev-python/pycurl-requests/metadata.xml @@ -0,0 +1,9 @@ + + + + + chutzpah@gentoo.org + Patrick McLean + + + diff --git a/dev-python/pycurl-requests/pycurl-requests-0.2.0.ebuild b/dev-python/pycurl-requests/pycurl-requests-0.2.0.ebuild new file mode 100644 index 00000000000..a49a99ff742 --- /dev/null +++ b/dev-python/pycurl-requests/pycurl-requests-0.2.0.ebuild @@ -0,0 +1,26 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) +inherit distutils-r1 + +DESCRIPTION="Requests-compatible interface for PycURL" +HOMEPAGE="https://github.com/dcoles/pycurl-requests" +SRC_URI="https://github.com/dcoles/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/chardet[${PYTHON_USEDEP}] + dev-python/pycurl[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}/pycurl-requests-0.2.0-test.patch" +) + +distutils_enable_tests pytest