Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-httpcore for openSUSE:Factory checked in at 2022-12-25 15:14:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-httpcore (Old)
and /work/SRC/openSUSE:Factory/.python-httpcore.new.1563 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-httpcore"
Sun Dec 25 15:14:31 2022 rev:8 rq:1045130 version:0.16.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-httpcore/python-httpcore.changes 2022-11-24 12:22:44.717113023 +0100
+++ /work/SRC/openSUSE:Factory/.python-httpcore.new.1563/python-httpcore.changes 2022-12-25 15:14:41.361317527 +0100
@@ -1,0 +2,27 @@
+Fri Dec 23 17:57:37 UTC 2022 - Ben Greiner
+
+- Update to 0.16.3
+ * Allow ws and wss schemes. Allows us to properly support
+ websocket upgrade connections. (#625)
+ * Forwarding HTTP proxies use a connection-per-remote-host.
+ Required by some proxy implementations. (#637)
+ * Don't raise RuntimeError when closing a connection pool with
+ active connections. Removes some error cases when cancellations
+ are used. (#631)
+ * Lazy import anyio, so that it's no longer a hard dependancy,
+ and isn't imported if unused. (#639)
+- Add httpcore-allow-deprecationwarnings-test.patch
+ gh#encode/httpcore#511, gh#agronholm/anyio#470
+
+-------------------------------------------------------------------
+Mon Dec 19 10:11:16 UTC 2022 - Dirk M��ller
+
+- update to 0.16.2:
+ * Revert 'Fix async cancellation behaviour', which introduced race conditions
+ * Raise RuntimeError if attempting to us UNIX domain sockets on Windows
+ * Fix HTTP/1.1 interim informational responses, such as "100 Continue"
+ * Support HTTP/1.1 informational responses.
+ * Fix async cancellation behaviour.
+ * Support h11 0.14
+
+-------------------------------------------------------------------
Old:
----
httpcore-0.15.0.tar.gz
New:
----
httpcore-0.16.3.tar.gz
httpcore-allow-deprecationwarnings-test.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-httpcore.spec ++++++
--- /var/tmp/diff_new_pack.xYhTX7/_old 2022-12-25 15:14:42.769325496 +0100
+++ /var/tmp/diff_new_pack.xYhTX7/_new 2022-12-25 15:14:42.773325519 +0100
@@ -26,20 +26,22 @@
%endif
Name: python-httpcore%{psuffix}
-Version: 0.15.0
+Version: 0.16.3
Release: 0
Summary: Minimal low-level Python HTTP client
License: BSD-3-Clause
URL: https://github.com/encode/httpcore
Source: https://github.com/encode/httpcore/archive/%{version}.tar.gz#/httpcore-%{version}.tar.gz
+# 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: fdupes
BuildRequires: python-rpm-macros
-Requires: python-anyio >= 3
Requires: python-certifi
-Requires: python-h11 >= 0.11.0
-Requires: python-sniffio >= 1.0
+Requires: (python-anyio >= 3 with python-anyio < 5)
+Requires: (python-h11 >= 0.13.0 with python-h11 < 0.15)
+Requires: (python-sniffio >= 1.0 with python-sniffio < 2)
Recommends: python-h2 >= 3.0
Recommends: python-socksio >= 1.0
BuildArch: noarch
@@ -52,7 +54,7 @@
BuildRequires: %{python_module pytest-asyncio >= 0.16.0}
BuildRequires: %{python_module pytest-httpbin}
BuildRequires: %{python_module pytest-trio >= 0.7.0}
-BuildRequires: %{python_module trio >= 0.19.0}
+BuildRequires: %{python_module trio >= 0.21.0}
%endif
# /SECTION
%python_subpackages
@@ -61,26 +63,24 @@
Python minimal low-level HTTP client.
%prep
-%setup -q -n httpcore-%{version}
-#sed -i 's/"localhost"/"127.0.0.1"/' tests/*sync_tests/test_interfaces.py tests/conftest.py
+%autosetup -p1 -n httpcore-%{version}
+%if !%{with test}
%build
%python_build
%install
-%if !%{with test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
-%check
-# ulimit -n 50000
-# test_no_retries and test_retries are very slow and fails
-# tests/async_tests + tests/sync_tests causes open file limit
-# socks5 -- we don't ship socksio
-# gh#encode/httpcore#622 - test_request_with_content
%if %{with test}
-%pytest -rs -k 'not (test_interfaces or test_no_retries or test_retries or test_threadsafe_basic or test_request_with_content or socks5)' --asyncio-mode=strict
+%check
+# we don't ship socksio
+donttest="socks5"
+# gh#encode/httpcore#622
+donttest+=" or test_request_with_content"
+%pytest -rsfE --asyncio-mode=strict -p no:unraisableexception -k "not ($donttest)"
%endif
%if !%{with test}
++++++ httpcore-0.15.0.tar.gz -> httpcore-0.16.3.tar.gz ++++++
++++ 1857 lines of diff (skipped)
++++++ httpcore-allow-deprecationwarnings-test.patch ++++++
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
[coverage:run]
omit = venv/*, httpcore/_sync/*