Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-httpx-socks for openSUSE:Factory checked in at 2025-07-21 20:00:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-httpx-socks (Old) and /work/SRC/openSUSE:Factory/.python-httpx-socks.new.8875 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-httpx-socks" Mon Jul 21 20:00:23 2025 rev:5 rq:1294586 version:0.10.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-httpx-socks/python-httpx-socks.changes 2025-03-05 13:39:28.377914151 +0100 +++ /work/SRC/openSUSE:Factory/.python-httpx-socks.new.8875/python-httpx-socks.changes 2025-07-21 20:01:21.721736746 +0200 @@ -1,0 +2,6 @@ +Sun Jul 13 12:30:41 UTC 2025 - Dirk Müller <dmuel...@suse.com> + +- update to 0.10.1: + * Fix http2 issue + +------------------------------------------------------------------- Old: ---- httpx_socks-0.10.0.tar.gz New: ---- httpx_socks-0.10.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-httpx-socks.spec ++++++ --- /var/tmp/diff_new_pack.SkLMGL/_old 2025-07-21 20:01:22.377764047 +0200 +++ /var/tmp/diff_new_pack.SkLMGL/_new 2025-07-21 20:01:22.377764047 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-httpx-socks # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,7 +26,7 @@ %endif %{?sle15_python_module_pythons} Name: python-httpx-socks%{psuffix} -Version: 0.10.0 +Version: 0.10.1 Release: 0 Summary: Proxy (HTTP, SOCKS) transports for httpx License: Apache-2.0 ++++++ httpx_socks-0.10.0.tar.gz -> httpx_socks-0.10.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/httpx_socks-0.10.0/PKG-INFO new/httpx_socks-0.10.1/PKG-INFO --- old/httpx_socks-0.10.0/PKG-INFO 2024-12-10 07:09:55.918479400 +0100 +++ new/httpx_socks-0.10.1/PKG-INFO 2025-06-07 17:05:55.703266000 +0200 @@ -1,6 +1,6 @@ -Metadata-Version: 2.1 +Metadata-Version: 2.4 Name: httpx-socks -Version: 0.10.0 +Version: 0.10.1 Summary: Proxy (HTTP, SOCKS) transports for httpx Home-page: https://github.com/romis2012/httpx-socks Author: Roman Snegirev @@ -16,6 +16,17 @@ Requires-Dist: async-timeout>=3.0.1; extra == "asyncio" Provides-Extra: trio Requires-Dist: trio>=0.16.0; extra == "trio" +Dynamic: author +Dynamic: author-email +Dynamic: description +Dynamic: description-content-type +Dynamic: home-page +Dynamic: keywords +Dynamic: license +Dynamic: license-file +Dynamic: provides-extra +Dynamic: requires-dist +Dynamic: summary # httpx-socks diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/httpx_socks-0.10.0/httpx_socks/__init__.py new/httpx_socks-0.10.1/httpx_socks/__init__.py --- old/httpx_socks-0.10.0/httpx_socks/__init__.py 2024-12-10 06:54:22.000000000 +0100 +++ new/httpx_socks-0.10.1/httpx_socks/__init__.py 2025-06-07 16:55:06.000000000 +0200 @@ -1,5 +1,5 @@ __title__ = 'httpx-socks' -__version__ = '0.10.0' +__version__ = '0.10.1' from python_socks import ( ProxyError, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/httpx_socks-0.10.0/httpx_socks/_async_proxy.py new/httpx_socks-0.10.1/httpx_socks/_async_proxy.py --- old/httpx_socks-0.10.0/httpx_socks/_async_proxy.py 2024-11-06 16:53:27.000000000 +0100 +++ new/httpx_socks-0.10.1/httpx_socks/_async_proxy.py 2025-06-07 16:58:58.000000000 +0200 @@ -119,6 +119,11 @@ try: async with self._connect_lock: if self._connection is None: + + if self._ssl_context is not None: + alpn_protocols = ["http/1.1", "h2"] if self._http2 else ["http/1.1"] + self._ssl_context.set_alpn_protocols(alpn_protocols) + stream = await self._connect_via_proxy( origin=self._remote_origin, connect_timeout=timeout, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/httpx_socks-0.10.0/httpx_socks/_sync_proxy.py new/httpx_socks-0.10.1/httpx_socks/_sync_proxy.py --- old/httpx_socks-0.10.0/httpx_socks/_sync_proxy.py 2024-11-06 16:53:27.000000000 +0100 +++ new/httpx_socks-0.10.1/httpx_socks/_sync_proxy.py 2025-06-07 16:58:29.000000000 +0200 @@ -10,6 +10,7 @@ HTTP11Connection, ConnectionNotAvailable, ) + # from httpcore.backends.sync import SyncStream from ._sync_stream import SyncStream from httpcore._synchronization import Lock @@ -116,6 +117,11 @@ try: with self._connect_lock: if self._connection is None: + + if self._ssl_context is not None: + alpn_protocols = ["http/1.1", "h2"] if self._http2 else ["http/1.1"] + self._ssl_context.set_alpn_protocols(alpn_protocols) + stream = self._connect_via_proxy( origin=self._remote_origin, connect_timeout=timeout, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/httpx_socks-0.10.0/httpx_socks.egg-info/PKG-INFO new/httpx_socks-0.10.1/httpx_socks.egg-info/PKG-INFO --- old/httpx_socks-0.10.0/httpx_socks.egg-info/PKG-INFO 2024-12-10 07:09:55.000000000 +0100 +++ new/httpx_socks-0.10.1/httpx_socks.egg-info/PKG-INFO 2025-06-07 17:05:55.000000000 +0200 @@ -1,6 +1,6 @@ -Metadata-Version: 2.1 +Metadata-Version: 2.4 Name: httpx-socks -Version: 0.10.0 +Version: 0.10.1 Summary: Proxy (HTTP, SOCKS) transports for httpx Home-page: https://github.com/romis2012/httpx-socks Author: Roman Snegirev @@ -16,6 +16,17 @@ Requires-Dist: async-timeout>=3.0.1; extra == "asyncio" Provides-Extra: trio Requires-Dist: trio>=0.16.0; extra == "trio" +Dynamic: author +Dynamic: author-email +Dynamic: description +Dynamic: description-content-type +Dynamic: home-page +Dynamic: keywords +Dynamic: license +Dynamic: license-file +Dynamic: provides-extra +Dynamic: requires-dist +Dynamic: summary # httpx-socks