Sync from SUSE:SLFO:Main python-httpcore revision e7722bb7060c3943e89c1767890354c5

This commit is contained in:
Adrian Schröter 2024-12-13 11:33:19 +01:00
parent a32929b98a
commit f46a7f7c5d
5 changed files with 126 additions and 26 deletions

BIN
httpcore-0.16.3.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
httpcore-1.0.5.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,17 +1,21 @@
Index: httpcore-0.16.3/setup.cfg
===================================================================
--- httpcore-0.16.3.orig/setup.cfg
+++ httpcore-0.16.3/setup.cfg
@@ -30,6 +30,12 @@ markers =
copied_from(source, changes=None): mark test as copied from somewhere else, along with a description of changes made to accodomate e.g. our test setup
filterwarnings =
error
+ # requires anyio 4 with trio 0.22: https://github.com/agronholm/anyio/issues/470
+ ignore:trio.MultiError is deprecated
+ # fixed by pytest-httpbin (2.0 not released yet): https://github.com/encode/httpcore/pull/511
+ ignore:unclosed <(socket\.socket|ssl\.SSLSocket) .*:ResourceWarning
+ ignore:ssl\.wrap_socket\(\) is deprecated, use SSLContext\.wrap_socket\(\):DeprecationWarning
+ ignore:ssl\.PROTOCOL_TLS is deprecated:DeprecationWarning
---
pyproject.toml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
[coverage:run]
omit = venv/*, httpcore/_sync/*
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -86,7 +86,13 @@ ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = ["-rxXs", "--strict-config", "--strict-markers"]
markers = ["copied_from(source, changes=None): mark test as copied from somewhere else, along with a description of changes made to accodomate e.g. our test setup"]
-filterwarnings = ["error"]
+filterwarnings = [
+ "error",
+ "ignore:trio.MultiError is deprecated",
+ "ignore:unclosed <(socket.socket|ssl.SSLSocket) .*:ResourceWarning",
+ "ignore:ssl.wrap_socket() is deprecated, use SSLContext.wrap_socket():DeprecationWarning",
+ "ignore:ssl.PROTOCOL_TLS is deprecated:DeprecationWarning"
+]
[tool.coverage.run]
omit = [

View File

@ -1,3 +1,94 @@
-------------------------------------------------------------------
Wed Apr 3 07:04:47 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 1.0.5:
* Handle `EndOfStream` exception for anyio backend.
* Allow trio `0.25.*` series in package dependancies.
-------------------------------------------------------------------
Tue Mar 19 07:11:39 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 1.0.4:
* Add `target` request extension.
* Fix support for connection `Upgrade` and `CONNECT` when some
data in the stream has been read.
* Fix support for async cancellations.
* Fix trace extension when used with socks proxy.
* Fix SSL context for connections using the "wss" scheme
-------------------------------------------------------------------
Thu Dec 7 22:46:51 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 1.0.2:
* Fix `float("inf")` timeouts in `Event.wait` function. (#846)
* Fix pool timeout to account for the total time spent
retrying. (#823)
* Raise a neater RuntimeError when the correct async deps are
not installed. (#826)
* Add support for synchronous TLS-in-TLS streams. (#840)
* From version 1.0 our async support is now optional, as the
package has minimal dependencies by default.
* For async support use either `pip install
'httpcore[asyncio]'` or `pip install 'httpcore[trio]'`.
* The project versioning policy is now explicitly governed by
SEMVER. See https://semver.org/.
* Async support becomes fully optional. (#809)
* Add support for Python 3.12. (#807)
-------------------------------------------------------------------
Wed Oct 25 11:30:12 UTC 2023 - Matej Cepl <mcepl@cepl.eu>
- Update to 0.18.0:
- Add support for HTTPS proxies.
- Handle sni_hostname extension with SOCKS proxy.
- Change the type of Extensions from Mapping[Str, Any] to
MutableMapping[Str, Any].
- Handle HTTP/1.1 half-closed connections gracefully.
- Drop Python 3.7 support.
- Update httpcore-allow-deprecationwarnings-test.patch
- Skip failing tests test_ssl_request and test_extra_info
(gh#encode/httpcore!832)
-------------------------------------------------------------------
Sun Sep 10 11:05:24 UTC 2023 - Torsten Gruner <simmphonie@opensuse.org>
- update to 0.17.3
* Support async cancellations, ensuring that the connection pool
is left in a clean state when cancellations occur. (#726)
* The networking backend interface has been added to the public API.
Some classes which were previously private implementation detail
are now part of the top-level public API. (#699)
* Graceful handling of HTTP/2 GoAway frames, with requests being
transparently retried on a new connection. (#730)
* Add exceptions when a synchronous trace callback is passed to an
asynchronous request or an asynchronous trace callback is passed
to a synchronous request. (#717)
- version 0.17.2
* Add socket_options argument to ConnectionPool and HTTProxy classes. (#668)
* Improve logging with per-module logger names. (#690)
* Add sni_hostname request extension. (#696)
* Resolve race condition during import of anyio package. (#692)
* Enable TCP_NODELAY for all synchronous sockets. (#651)
- version 0.17.1
* If 'retries' is set, then allow retries if an SSL handshake
error occurs. (#669)
* Improve correctness of tracebacks on network exceptions, by
raising properly chained exceptions. (#678)
* Prevent connection-hanging behaviour when HTTP/2 connections
are closed by a server-sent 'GoAway' frame". (#679)
* Fix edge-case exception when removing requests from the connection pool. (#680)
* Fix pool timeout edge-case. (#688)
-------------------------------------------------------------------
Wed May 3 08:46:32 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 0.17.0:
* Add DEBUG level logging. (#648)
* Respect HTTP/2 max concurrent streams when settings updates
are sent by server. (#652)
* Increase the allowable HTTP header size to 100kB. (#647)
* Add `retries` option to SOCKS proxy classes. (#643)
-------------------------------------------------------------------
Fri Apr 21 12:26:21 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file
# spec file for package python-httpcore
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -27,7 +27,7 @@
%{?sle15_python_module_pythons}
Name: python-httpcore%{psuffix}
Version: 0.16.3
Version: 1.0.5
Release: 0
Summary: Minimal low-level Python HTTP client
License: BSD-3-Clause
@ -36,7 +36,10 @@ Source: https://github.com/encode/httpcore/archive/%{version}.tar.gz#/ht
# PATCH-FIX-UPSTREAM httpcore-allow-deprecationwarnings-test.patch gh#encode/httpcore#511, gh#agronholm/anyio#470
Patch1: httpcore-allow-deprecationwarnings-test.patch
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module hatch-fancy-pypi-readme}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-certifi
@ -68,10 +71,10 @@ Python minimal low-level HTTP client.
%if !%{with test}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
@ -81,6 +84,8 @@ Python minimal low-level HTTP client.
donttest="socks5"
# gh#encode/httpcore#622
donttest+=" or test_request_with_content"
# gh#encode/httpcore!832
donttest+=" or test_ssl_request or test_extra_info"
%pytest -rsfE --asyncio-mode=strict -p no:unraisableexception -k "not ($donttest)"
%endif