diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-03-27 06:06:27 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-03-27 06:06:27 +0000 |
commit | 8d5dbd847cbc704a6a06405856e94b461011afe3 (patch) | |
tree | 4d26462d027b14926335894749d2e01d982234d0 /dev-python/pycurl-requests | |
parent | 5bb9ff1ee56d2b5e75e01a7f066d8b0cec84ec02 (diff) |
gentoo resync : 27.03.2021
Diffstat (limited to 'dev-python/pycurl-requests')
-rw-r--r-- | dev-python/pycurl-requests/Manifest | 4 | ||||
-rw-r--r-- | dev-python/pycurl-requests/files/pycurl-requests-0.2.0-test.patch | 33 | ||||
-rw-r--r-- | dev-python/pycurl-requests/metadata.xml | 9 | ||||
-rw-r--r-- | dev-python/pycurl-requests/pycurl-requests-0.2.0.ebuild | 26 |
4 files changed, 72 insertions, 0 deletions
diff --git a/dev-python/pycurl-requests/Manifest b/dev-python/pycurl-requests/Manifest new file mode 100644 index 000000000000..d781e10b2917 --- /dev/null +++ b/dev-python/pycurl-requests/Manifest @@ -0,0 +1,4 @@ +AUX pycurl-requests-0.2.0-test.patch 1603 BLAKE2B 7f0a8964aaac2e73e5198e8e54f7ef4521c06118002950c58f214f95539f9b1be59a9cbeca7f5a790b05b877cb1d537ff59544ced47954dfebc32c4cd23088fe SHA512 6c9e4d89124ebad203847d1b905572a089faaa1e61bba8ac0105da78a0d906c2c7f602df120009775b3ffd21b522fbc999c521780972fea41c74f65a66cf328b +DIST pycurl-requests-0.2.0.tar.gz 22962 BLAKE2B 9e28422e910ab88f2f6ace1684cd35a89eccde9eed9d63f48cb2d6f0caa30811016365fbbffc2bdd2dd8b05a3b248142a5822c092c9d40ebaabeed4ef068c659 SHA512 3bf091ff47e376a23f9046dbcc5631199da9434911d4140f5d09e5091b81f05c8cd8094528b7ac7d74f7a4b085a6dfd40bec81c66fde020a0680e2237b7af5b2 +EBUILD pycurl-requests-0.2.0.ebuild 598 BLAKE2B 36b01ae377faa61ab4af1f4251712f2eca435d6c16dcdc26961fbefb05811c64f9c6887bf3e509f49f63aa4211aef25fbc49c7af60765f061f51d27e9ec13c21 SHA512 9d77670c3bc07c50bb812cc9378346fe159b91ec32f3e607ead5b3e061ac82e64319b77c255bd00a84740fca9333d12ba0013eb504ace1aa6fd6b801e19d1620 +MISC metadata.xml 273 BLAKE2B e63a5ac24d72d1f4d149064a48900b9e8fb5613ee7ac52dc1ece604ededdee3083f6e7eaa88501c4f07aa954ad515cbbf22e0b2b187266f613b7276a9e1874b8 SHA512 0140397ca54e88f4d4cfbf84b87fcfad82e3064358c65f164aae2eab3f0787b568b7ea968fef442c6c6cc0a854f60340bbd02ce6e25b702dea0ce9ba58040683 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 000000000000..2bed5e3c93c2 --- /dev/null +++ b/dev-python/pycurl-requests/files/pycurl-requests-0.2.0-test.patch @@ -0,0 +1,33 @@ +diff --git a/pycurl_requests/tests/test_exceptions.py b/pycurl_requests/tests/test_exceptions.py +index 2415ba8..6960615 100644 +--- a/pycurl_requests/tests/test_exceptions.py ++++ b/pycurl_requests/tests/test_exceptions.py +@@ -32,7 +32,7 @@ def test_connecterror_resolve(): + if IS_PYCURL_REQUESTS: + assert isinstance(exception.__cause__, pycurl.error) + assert exception.curl_code == pycurl.E_COULDNT_RESOLVE_HOST +- assert 'Could not resolve host' in exception.curl_message ++ assert 't resolve host' in exception.curl_message + + + def test_toomanyredirects(http_server): +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 000000000000..3fd976494203 --- /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 000000000000..479af0c574d3 --- /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 Apache-2.0" +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 |