Sync from SUSE:SLFO:Main python-httpcore revision e7722bb7060c3943e89c1767890354c5
This commit is contained in:
parent
a32929b98a
commit
f46a7f7c5d
BIN
httpcore-0.16.3.tar.gz
(Stored with Git LFS)
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
BIN
httpcore-1.0.5.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,17 +1,21 @@
|
|||||||
Index: httpcore-0.16.3/setup.cfg
|
---
|
||||||
===================================================================
|
pyproject.toml | 8 +++++++-
|
||||||
--- httpcore-0.16.3.orig/setup.cfg
|
1 file changed, 7 insertions(+), 1 deletion(-)
|
||||||
+++ httpcore-0.16.3/setup.cfg
|
|
||||||
@@ -30,6 +30,12 @@ markers =
|
--- a/pyproject.toml
|
||||||
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
|
+++ b/pyproject.toml
|
||||||
filterwarnings =
|
@@ -86,7 +86,13 @@ ignore_missing_imports = true
|
||||||
error
|
[tool.pytest.ini_options]
|
||||||
+ # requires anyio 4 with trio 0.22: https://github.com/agronholm/anyio/issues/470
|
addopts = ["-rxXs", "--strict-config", "--strict-markers"]
|
||||||
+ ignore:trio.MultiError is deprecated
|
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"]
|
||||||
+ # fixed by pytest-httpbin (2.0 not released yet): https://github.com/encode/httpcore/pull/511
|
-filterwarnings = ["error"]
|
||||||
+ ignore:unclosed <(socket\.socket|ssl\.SSLSocket) .*:ResourceWarning
|
+filterwarnings = [
|
||||||
+ ignore:ssl\.wrap_socket\(\) is deprecated, use SSLContext\.wrap_socket\(\):DeprecationWarning
|
+ "error",
|
||||||
+ ignore:ssl\.PROTOCOL_TLS is deprecated:DeprecationWarning
|
+ "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"
|
||||||
|
+]
|
||||||
|
|
||||||
[coverage:run]
|
[tool.coverage.run]
|
||||||
omit = venv/*, httpcore/_sync/*
|
omit = [
|
||||||
|
@ -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>
|
Fri Apr 21 12:26:21 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
@ -93,7 +184,7 @@ Tue Feb 1 07:47:22 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
|||||||
rather than having to assume it's HTTP/2 if the --http2 flag was passed.
|
rather than having to assume it's HTTP/2 if the --http2 flag was passed.
|
||||||
* Log SSL version info / certificate info.
|
* Log SSL version info / certificate info.
|
||||||
* Fix broken error messaging when URL scheme is missing, or a non HTTP(S)
|
* Fix broken error messaging when URL scheme is missing, or a non HTTP(S)
|
||||||
scheme is used. (Pull #403)
|
scheme is used. (Pull #403)
|
||||||
- Inject multibuild to stop a build loop
|
- Inject multibuild to stop a build loop
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
|
@ -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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-httpcore%{psuffix}
|
Name: python-httpcore%{psuffix}
|
||||||
Version: 0.16.3
|
Version: 1.0.5
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Minimal low-level Python HTTP client
|
Summary: Minimal low-level Python HTTP client
|
||||||
License: BSD-3-Clause
|
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
|
# PATCH-FIX-UPSTREAM httpcore-allow-deprecationwarnings-test.patch gh#encode/httpcore#511, gh#agronholm/anyio#470
|
||||||
Patch1: httpcore-allow-deprecationwarnings-test.patch
|
Patch1: httpcore-allow-deprecationwarnings-test.patch
|
||||||
BuildRequires: %{python_module base >= 3.7}
|
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: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-certifi
|
Requires: python-certifi
|
||||||
@ -68,10 +71,10 @@ Python minimal low-level HTTP client.
|
|||||||
|
|
||||||
%if !%{with test}
|
%if !%{with test}
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -81,6 +84,8 @@ Python minimal low-level HTTP client.
|
|||||||
donttest="socks5"
|
donttest="socks5"
|
||||||
# gh#encode/httpcore#622
|
# gh#encode/httpcore#622
|
||||||
donttest+=" or test_request_with_content"
|
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)"
|
%pytest -rsfE --asyncio-mode=strict -p no:unraisableexception -k "not ($donttest)"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user