Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-elastic-transport for 
openSUSE:Factory checked in at 2026-03-31 15:46:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-elastic-transport (Old)
 and      /work/SRC/openSUSE:Factory/.python-elastic-transport.new.1999 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-elastic-transport"

Tue Mar 31 15:46:44 2026 rev:20 rq:1343856 version:9.2.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-elastic-transport/python-elastic-transport.changes
        2026-01-07 16:00:30.284844806 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-elastic-transport.new.1999/python-elastic-transport.changes
      2026-03-31 15:49:28.044402501 +0200
@@ -1,0 +2,7 @@
+Tue Mar 31 08:26:58 UTC 2026 - Dirk Müller <[email protected]>
+
+- update to 9.2.1:
+  * Use `path_prefix` to compute the base URL in the httpx node
+    class
+
+-------------------------------------------------------------------

Old:
----
  elastic-transport-python-9.2.0.tar.gz

New:
----
  elastic-transport-python-9.2.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-elastic-transport.spec ++++++
--- /var/tmp/diff_new_pack.AXvJzz/_old  2026-03-31 15:49:28.608426100 +0200
+++ /var/tmp/diff_new_pack.AXvJzz/_new  2026-03-31 15:49:28.612426267 +0200
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-elastic-transport
-Version:        9.2.0
+Version:        9.2.1
 Release:        0
 Summary:        Transport classes and utilities shared among Python Elastic 
client libraries
 License:        Apache-2.0

++++++ elastic-transport-python-9.2.0.tar.gz -> 
elastic-transport-python-9.2.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/elastic-transport-python-9.2.0/CHANGELOG.md 
new/elastic-transport-python-9.2.1/CHANGELOG.md
--- old/elastic-transport-python-9.2.0/CHANGELOG.md     2025-10-17 
18:06:17.000000000 +0200
+++ new/elastic-transport-python-9.2.1/CHANGELOG.md     2025-12-23 
12:43:38.000000000 +0100
@@ -1,5 +1,9 @@
 # Changelog
 
+## 9.2.1 (2025-12-23)
+
+* Use `path_prefix` to compute the base URL in the httpx node class 
([#243](https://github.com/elastic/elastic-transport-python/pull/243))
+
 ## 9.2.0 (2025-10-17)
 
 * Support Trio when using the httpx async client 
([#263](https://github.com/elastic/elastic-transport-python/pull/263))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/elastic-transport-python-9.2.0/elastic_transport/_node/_http_httpx.py 
new/elastic-transport-python-9.2.1/elastic_transport/_node/_http_httpx.py
--- old/elastic-transport-python-9.2.0/elastic_transport/_node/_http_httpx.py   
2025-10-17 18:06:17.000000000 +0200
+++ new/elastic-transport-python-9.2.1/elastic_transport/_node/_http_httpx.py   
2025-12-23 12:43:38.000000000 +0100
@@ -106,7 +106,7 @@
                     ssl_context.load_cert_chain(config.client_cert)
 
         self.client = httpx.AsyncClient(
-            base_url=f"{config.scheme}://{config.host}:{config.port}",
+            
base_url=f"{config.scheme}://{config.host}:{config.port}{config.path_prefix}",
             limits=httpx.Limits(max_connections=config.connections_per_node),
             verify=ssl_context or False,
             timeout=config.request_timeout,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/elastic-transport-python-9.2.0/elastic_transport/_version.py 
new/elastic-transport-python-9.2.1/elastic_transport/_version.py
--- old/elastic-transport-python-9.2.0/elastic_transport/_version.py    
2025-10-17 18:06:17.000000000 +0200
+++ new/elastic-transport-python-9.2.1/elastic_transport/_version.py    
2025-12-23 12:43:38.000000000 +0100
@@ -15,4 +15,4 @@
 #  specific language governing permissions and limitations
 #  under the License.
 
-__version__ = "9.2.0"
+__version__ = "9.2.1"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/elastic-transport-python-9.2.0/tests/node/test_http_httpx.py 
new/elastic-transport-python-9.2.1/tests/node/test_http_httpx.py
--- old/elastic-transport-python-9.2.0/tests/node/test_http_httpx.py    
2025-10-17 18:06:17.000000000 +0200
+++ new/elastic-transport-python-9.2.1/tests/node/test_http_httpx.py    
2025-12-23 12:43:38.000000000 +0100
@@ -81,6 +81,18 @@
                 str(exc.value) == "You cannot use 'ca_certs' when 
'verify_certs=False'"
             )
 
+    def test_path_prefix(self):
+        node = create_node(
+            NodeConfig(
+                "http",
+                "localhost",
+                9200,
+                path_prefix="/test",
+            )
+        )
+        assert node.base_url == "http://localhost:9200/test";
+        assert node.client.base_url == "http://localhost:9200/test/";
+
 
 @pytest.mark.anyio
 class TestHttpxAsyncNode:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/elastic-transport-python-9.2.0/tests/node/test_http_requests.py 
new/elastic-transport-python-9.2.1/tests/node/test_http_requests.py
--- old/elastic-transport-python-9.2.0/tests/node/test_http_requests.py 
2025-10-17 18:06:17.000000000 +0200
+++ new/elastic-transport-python-9.2.1/tests/node/test_http_requests.py 
2025-12-23 12:43:38.000000000 +0100
@@ -235,3 +235,14 @@
         node.perform_request("GET", "/")
         (request,), _ = node.session.send.call_args
         assert request.headers["authorization"] == "Basic 
dXNlcm5hbWU6cGFzc3dvcmQ="
+
+    def test_path_prefix(self):
+        node = self._get_mock_node(
+            NodeConfig(
+                "http",
+                "localhost",
+                9200,
+                path_prefix="/test",
+            )
+        )
+        assert node.base_url == "http://localhost:9200/test";

Reply via email to