From 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 28 Apr 2021 20:21:43 +0100 Subject: gentoo resync : 28.04.2021 --- dev-python/httpcore/Manifest | 2 + dev-python/httpcore/httpcore-0.13.0.ebuild | 63 ++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 dev-python/httpcore/httpcore-0.13.0.ebuild (limited to 'dev-python/httpcore') diff --git a/dev-python/httpcore/Manifest b/dev-python/httpcore/Manifest index 21c0643a01ca..004a1772fbb8 100644 --- a/dev-python/httpcore/Manifest +++ b/dev-python/httpcore/Manifest @@ -1,3 +1,5 @@ DIST httpcore-0.12.3.tar.gz 57587 BLAKE2B 3c0e7a210b21e54564c4c6077fadf66344b887662c71b05a1ad4a2c0224a4d703eccdf576d4443341176edee03b6776bfd49aaef2ea2f29f02614677e1dfad85 SHA512 b31535231dc2b6a5f1c9c0c538628f75360f04b4747b447ab0a7168ed32d0eabd463335c2f7fa782dcabb4cbc32891a2839ae50e0999d5a791c01b02533d38f0 +DIST httpcore-0.13.0.tar.gz 58310 BLAKE2B 29ed4ad768088c6226ece27cb82e2a1d8df32eba4cf446015b43360c330ec65b433f571ac8e13e4b8f8994ff6e097ce5bf79ae1b9561d940298172c66d539153 SHA512 28ed65d3b3b30a62e3f198d98ae77a3cc26bd80250f10a506851433b5572a6fdcab38bf0d670caea94dec43d5b61de21a3ea967a445041536cad68eb98cc12bc EBUILD httpcore-0.12.3.ebuild 2176 BLAKE2B 919e436b249c0f06db0be31c034f416fe5b45822de6236fca8aa463237631c3aa4b887cf6a583185c70a86ef094428b23e0d7a5fb15947608ed643ed3aeea008 SHA512 f0ad494b042433a60ca1475951aa7ef8697906138af616f8ab083fbd179d3bb79e52323e658f36d92172066017f44be640dd73b4880eaf76a4f6383e739d4a25 +EBUILD httpcore-0.13.0.ebuild 2132 BLAKE2B e598e1cad25c700b9bfbf7f74c3af6832be9271e2fe44cefbd818808f93275378f3768f5bb3019e193ade7b3a0dcd489d9c682d4c9d65d127f4f2fafbc68a336 SHA512 87e7ab3276d7a43be8c3fddd688fb1db4f51b42971446612d7d5463c89d5d7b7dc211f46c8dc0f7aa5a46a069ed4f4adc46087c66d1edfd0d3f4f7250806ca3b MISC metadata.xml 453 BLAKE2B 9ecaf4c2d0b1da4ef7272fb7fd65dd2ea9bcf0ac036420317c838ed2cdf16119270d1a7ce1673057f6bb2c81b0e0776ac6291eab9830b30ba2954ba0d373ea61 SHA512 c885cf0a5bd4c74962160739702d07c34c834b252d050fbfca9f6fdbf469defba4a27c615c312bead882a4e126eb244982e3fdec6428626c51c6935ca8c004e3 diff --git a/dev-python/httpcore/httpcore-0.13.0.ebuild b/dev-python/httpcore/httpcore-0.13.0.ebuild new file mode 100644 index 000000000000..65db85718369 --- /dev/null +++ b/dev-python/httpcore/httpcore-0.13.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-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="A minimal low-level HTTP client" +HOMEPAGE="https://www.encode.io/httpcore/" +SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + =dev-python/h11-0*[${PYTHON_USEDEP}] + =dev-python/sniffio-1*[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/trustme[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + # anyio and trio are not in the tree + sed -i 's/^@pytest.mark.\(anyio\|trio\)/@pytest.mark.skip/' \ + tests/async_tests/test_*.py || die + sed -i '/^import trio/d' tests/utils.py || die + # pproxy is not in the tree, the associated fixture + # must be disabled to prevent errors during test setup + sed -i 's/def proxy_server().*/&\n pytest.skip()/' \ + tests/conftest.py || die + distutils-r1_python_prepare_all +} + +python_test() { + local skipped_tests=( + # Require Internet access or hypercorn (not in the tree) + tests/test_threadsafety.py::test_threadsafe_basic + tests/sync_tests/test_interfaces.py::test_http_request + tests/sync_tests/test_interfaces.py::test_https_request + tests/sync_tests/test_interfaces.py::test_http2_request + tests/sync_tests/test_interfaces.py::test_closing_http_request + tests/sync_tests/test_interfaces.py::test_connection_pool_get_connection_info + tests/sync_tests/test_interfaces.py::test_max_keepalive_connections_handled_correctly + tests/sync_tests/test_interfaces.py::test_explicit_backend_name + tests/sync_tests/test_interfaces.py::test_connection_timeout_tcp + tests/sync_tests/test_interfaces.py::test_broken_socket_detection_many_open_files + tests/sync_tests/test_retries.py::test_no_retries + tests/sync_tests/test_retries.py::test_retries_exceeded + tests/sync_tests/test_retries.py::test_retries_enabled + # Require hypercorn + tests/sync_tests/test_interfaces.py::test_connection_timeout_uds + ) + epytest ${skipped_tests[@]/#/--deselect } +} -- cgit v1.2.3