* [gentoo-commits] repo/gentoo:master commit in: dev-python/pycurl-requests/files/, dev-python/pycurl-requests/
@ 2021-03-23 23:29 Patrick McLean
0 siblings, 0 replies; only message in thread
From: Patrick McLean @ 2021-03-23 23:29 UTC (permalink / raw
To: gentoo-commits
commit: bc7bfb88c6c872ddffc49ebc657e5c3da3833b0a
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
AuthorDate: Tue Mar 23 23:29:14 2021 +0000
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> 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 <chutzpah <AT> 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chutzpah@gentoo.org</email>
+ <name>Patrick McLean</name>
+ </maintainer>
+ <stabilize-allarches/>
+</pkgmetadata>
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-23 23:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-23 23:29 [gentoo-commits] repo/gentoo:master commit in: dev-python/pycurl-requests/files/, dev-python/pycurl-requests/ Patrick McLean
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox