Marcel Telka
2024-03-28 d05562cde9fcafce4892d825c52f3cab58a5a087
python/httpcore: update to 1.0.5

1 files deleted
5 files modified
134 ■■■■ changed files
components/python/httpcore/Makefile 6 ●●●●● patch | view | raw | blame | history
components/python/httpcore/patches/01-no-trio.patch 8 ●●●● patch | view | raw | blame | history
components/python/httpcore/patches/02-no-httpbin.patch 12 ●●●● patch | view | raw | blame | history
components/python/httpcore/patches/03-no-socksio.patch 84 ●●●●● patch | view | raw | blame | history
components/python/httpcore/python-integrate-project.conf 2 ●●● patch | view | raw | blame | history
components/python/httpcore/test/results-all.master 22 ●●●● patch | view | raw | blame | history
components/python/httpcore/Makefile
@@ -19,11 +19,11 @@
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME =        httpcore
HUMAN_VERSION =            1.0.4
HUMAN_VERSION =            1.0.5
COMPONENT_SUMMARY =        httpcore - A minimal low-level HTTP client.
COMPONENT_PROJECT_URL =        https://www.encode.io/httpcore/
COMPONENT_ARCHIVE_HASH =    \
    sha256:cb2839ccfcba0d2d3c1131d3c3e26dfc327326fbe7a5dc0dbfe9f6c9151bb022
    sha256:34a38e2f9291467ee3b44e89dd52615370e152954ba21721378a87b2960f7a61
COMPONENT_LICENSE =        BSD-3-Clause
COMPONENT_LICENSE_FILE =    LICENSE.md
@@ -34,6 +34,7 @@
# This project does not support tox so we need to provide test requirements
# manually.
TEST_REQUIREMENTS_EXTRAS += http2
TEST_REQUIREMENTS_EXTRAS += socks
TEST_REQUIREMENTS_EXTRAS += asyncio
# Test dependencies we are unable to detect automatically
@@ -48,3 +49,4 @@
PYTHON_REQUIRED_PACKAGES += runtime/python
TEST_REQUIRED_PACKAGES.python += library/python/anyio
TEST_REQUIRED_PACKAGES.python += library/python/h2
TEST_REQUIRED_PACKAGES.python += library/python/socksio
components/python/httpcore/patches/01-no-trio.patch
@@ -1,7 +1,7 @@
we have no trio
--- httpcore-1.0.4/tests/test_models.py.orig
+++ httpcore-1.0.4/tests/test_models.py
--- httpcore-1.0.5/tests/test_models.py.orig
+++ httpcore-1.0.5/tests/test_models.py
@@ -150,28 +150,3 @@
     async def __aiter__(self) -> typing.AsyncIterator[bytes]:
         for chunk in self._chunks:
@@ -31,8 +31,8 @@
-    with pytest.raises(RuntimeError):
-        async for chunk in response.aiter_stream():
-            pass  # pragma: nocover
--- httpcore-1.0.4/tests/_async/test_connection_pool.py.orig
+++ httpcore-1.0.4/tests/_async/test_connection_pool.py
--- httpcore-1.0.5/tests/_async/test_connection_pool.py.orig
+++ httpcore-1.0.5/tests/_async/test_connection_pool.py
@@ -4,7 +4,7 @@
 import hpack
 import hyperframe.frame
components/python/httpcore/patches/02-no-httpbin.patch
@@ -1,5 +1,5 @@
--- httpcore-1.0.4/tests/_async/test_integration.py.orig
+++ httpcore-1.0.4/tests/_async/test_integration.py
--- httpcore-1.0.5/tests/_async/test_integration.py.orig
+++ httpcore-1.0.5/tests/_async/test_integration.py
@@ -6,6 +6,7 @@
 
 
@@ -24,8 +24,8 @@
 async def test_extra_info(httpbin_secure):
     ssl_context = ssl.create_default_context()
     ssl_context.check_hostname = False
--- httpcore-1.0.4/tests/_sync/test_integration.py.orig
+++ httpcore-1.0.4/tests/_sync/test_integration.py
--- httpcore-1.0.5/tests/_sync/test_integration.py.orig
+++ httpcore-1.0.5/tests/_sync/test_integration.py
@@ -6,6 +6,7 @@
 
 
@@ -50,8 +50,8 @@
 def test_extra_info(httpbin_secure):
     ssl_context = ssl.create_default_context()
     ssl_context.check_hostname = False
--- httpcore-1.0.4/tests/test_api.py.orig
+++ httpcore-1.0.4/tests/test_api.py
--- httpcore-1.0.5/tests/test_api.py.orig
+++ httpcore-1.0.5/tests/test_api.py
@@ -1,18 +1,23 @@
 import json
 
components/python/httpcore/patches/03-no-socksio.patch
File was deleted
components/python/httpcore/python-integrate-project.conf
@@ -15,12 +15,12 @@
%patch% 01-no-trio.patch
%patch% 02-no-httpbin.patch
%patch% 03-no-socksio.patch
%include-3%
# This project does not support tox so we need to provide test requirements
# manually.
TEST_REQUIREMENTS_EXTRAS += http2
TEST_REQUIREMENTS_EXTRAS += socks
TEST_REQUIREMENTS_EXTRAS += asyncio
# Test dependencies we are unable to detect automatically
components/python/httpcore/test/results-all.master
@@ -45,11 +45,11 @@
tests/_async/test_integration.py::test_extra_info[asyncio] SKIPPED (...)
tests/_async/test_integration.py::test_request[asyncio] SKIPPED (we ...)
tests/_async/test_integration.py::test_ssl_request[asyncio] SKIPPED
tests/_async/test_socks_proxy.py::test_authenticated_socks5_request[asyncio] SKIPPED
tests/_async/test_socks_proxy.py::test_socks5_request[asyncio] SKIPPED
tests/_async/test_socks_proxy.py::test_socks5_request_connect_failed[asyncio] SKIPPED
tests/_async/test_socks_proxy.py::test_socks5_request_failed_to_provide_auth[asyncio] SKIPPED
tests/_async/test_socks_proxy.py::test_socks5_request_incorrect_auth[asyncio] SKIPPED
tests/_async/test_socks_proxy.py::test_authenticated_socks5_request[asyncio] PASSED
tests/_async/test_socks_proxy.py::test_socks5_request[asyncio] PASSED
tests/_async/test_socks_proxy.py::test_socks5_request_connect_failed[asyncio] PASSED
tests/_async/test_socks_proxy.py::test_socks5_request_failed_to_provide_auth[asyncio] PASSED
tests/_async/test_socks_proxy.py::test_socks5_request_incorrect_auth[asyncio] PASSED
tests/_sync/test_connection.py::test_concurrent_requests_not_available_on_http11_connections PASSED
tests/_sync/test_connection.py::test_connection_retries PASSED
tests/_sync/test_connection.py::test_connection_retries_tls PASSED
@@ -108,11 +108,11 @@
tests/_sync/test_integration.py::test_extra_info SKIPPED (we have no...)
tests/_sync/test_integration.py::test_request SKIPPED (we have no ht...)
tests/_sync/test_integration.py::test_ssl_request SKIPPED (we have n...)
tests/_sync/test_socks_proxy.py::test_authenticated_socks5_request SKIPPED
tests/_sync/test_socks_proxy.py::test_socks5_request SKIPPED (we hav...)
tests/_sync/test_socks_proxy.py::test_socks5_request_connect_failed SKIPPED
tests/_sync/test_socks_proxy.py::test_socks5_request_failed_to_provide_auth SKIPPED
tests/_sync/test_socks_proxy.py::test_socks5_request_incorrect_auth SKIPPED
tests/_sync/test_socks_proxy.py::test_authenticated_socks5_request PASSED
tests/_sync/test_socks_proxy.py::test_socks5_request PASSED
tests/_sync/test_socks_proxy.py::test_socks5_request_connect_failed PASSED
tests/_sync/test_socks_proxy.py::test_socks5_request_failed_to_provide_auth PASSED
tests/_sync/test_socks_proxy.py::test_socks5_request_incorrect_auth PASSED
tests/test_api.py::test_request SKIPPED (we have no httpbin)
tests/test_api.py::test_request_with_content SKIPPED (we have no htt...)
tests/test_api.py::test_stream SKIPPED (we have no httpbin)
@@ -138,4 +138,4 @@
=================================== XPASSES ====================================
=========================== short test summary info ============================
======== 108 passed, 20 skipped, 3 xpassed ========
======== 118 passed, 10 skipped, 3 xpassed ========