Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-mistralai for 
openSUSE:Factory checked in at 2026-07-28 17:52:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-mistralai (Old)
 and      /work/SRC/openSUSE:Factory/.python-mistralai.new.2004 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-mistralai"

Tue Jul 28 17:52:50 2026 rev:8 rq:1367846 version:2.7.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-mistralai/python-mistralai.changes        
2026-07-08 17:37:55.080363029 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-mistralai.new.2004/python-mistralai.changes  
    2026-07-28 17:53:45.515763686 +0200
@@ -1,0 +2,17 @@
+Sun Jul 26 02:18:22 CEST 2026 - Matej Cepl <[email protected]>
+
+- Add test-cleanup-gc.patch to fix garbage collection test
+  failures (inter-test interference on workflow configs cleanup).
+
+-------------------------------------------------------------------
+Sat Jul 25 18:41:52 UTC 2026 - Matej Cepl <[email protected]>
+
+- Update to 2.7.2:
+  Based on Speakeasy CLI 1.763.6 (2.884.13)
+- Update to 2.6.0:
+  - PII/secrets redaction features when activating OpenTelemetry.
+    Defaults to a regex-based redaction policy, redacting most
+    PII/secrets while keeping observability value.
+- Add SDKConfiguration-close.patch to fix failing tests.
+
+-------------------------------------------------------------------

Old:
----
  mistralai-2.5.0.tar.gz

New:
----
  SDKConfiguration-close.patch
  mistralai-2.7.2.tar.gz
  test-cleanup-gc.patch

----------(New B)----------
  New:    PII/secrets while keeping observability value.
- Add SDKConfiguration-close.patch to fix failing tests.
  New:
- Add test-cleanup-gc.patch to fix garbage collection test
  failures (inter-test interference on workflow configs cleanup).
----------(New E)----------

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

Other differences:
------------------
++++++ python-mistralai.spec ++++++
--- /var/tmp/diff_new_pack.oE4MeH/_old  2026-07-28 17:53:47.675839224 +0200
+++ /var/tmp/diff_new_pack.oE4MeH/_new  2026-07-28 17:53:47.679839364 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           python-mistralai
-Version:        2.5.0
+Version:        2.7.2
 Release:        0
 Summary:        Python Client SDK for the Mistral AI API
 License:        Apache-2.0
@@ -25,6 +25,12 @@
 Source0:        
https://files.pythonhosted.org/packages/source/m/mistralai/mistralai-%{version}.tar.gz
 Source99:       python-mistralai.rpmlintrc
 Patch0:         correct-traceparent-hook.patch
+# PATCH-FIX-UPSTREAM SDKConfiguration-close.patch [email protected]
+# Fix unfinished resources
+Patch1:         SDKConfiguration-close.patch
+# PATCH-FIX-UPSTREAM test-cleanup-gc.patch [email protected]
+# Avoid inter-test garbage collection interference in workflow encoding tests
+Patch2:         test-cleanup-gc.patch
 BuildRequires:  %{python_module hatchling}
 BuildRequires:  %{python_module pip}
 BuildRequires:  fdupes

++++++ SDKConfiguration-close.patch ++++++
---
 src/mistralai/client/httpclient.py |    7 ++-----
 src/mistralai/client/sdk.py        |    1 -
 2 files changed, 2 insertions(+), 6 deletions(-)

Index: mistralai-2.7.2/src/mistralai/client/httpclient.py
===================================================================
--- mistralai-2.7.2.orig/src/mistralai/client/httpclient.py     2020-02-02 
01:00:00.000000000 +0100
+++ mistralai-2.7.2/src/mistralai/client/httpclient.py  2026-07-26 
21:24:15.908267077 +0200
@@ -92,7 +92,6 @@
 
 
 def close_clients(
-    owner: ClientOwner,
     sync_client: Union[HttpClient, None],
     sync_client_supplied: bool,
     async_client: Union[AsyncHttpClient, None],
@@ -104,16 +103,14 @@
     collected.
     """
 
-    # Unset the client/async_client properties so there are no more references
-    # to them from the owning SDK instance and they can be reaped.
-    owner.client = None
-    owner.async_client = None
+
     if sync_client is not None and not sync_client_supplied:
         try:
             sync_client.close()
         except Exception:
             pass
 
+
     if async_client is not None and not async_client_supplied:
         try:
             loop = asyncio.get_running_loop()
Index: mistralai-2.7.2/src/mistralai/client/sdk.py
===================================================================
--- mistralai-2.7.2.orig/src/mistralai/client/sdk.py    2020-02-02 
01:00:00.000000000 +0100
+++ mistralai-2.7.2/src/mistralai/client/sdk.py 2026-07-26 21:24:15.909267096 
+0200
@@ -160,7 +160,6 @@
         weakref.finalize(
             self,
             close_clients,
-            cast(ClientOwner, self.sdk_configuration),
             self.sdk_configuration.client,
             self.sdk_configuration.client_supplied,
             self.sdk_configuration.async_client,

++++++ _scmsync.obsinfo ++++++
--- /var/tmp/diff_new_pack.oE4MeH/_old  2026-07-28 17:53:47.755842022 +0200
+++ /var/tmp/diff_new_pack.oE4MeH/_new  2026-07-28 17:53:47.759842162 +0200
@@ -1,5 +1,5 @@
-mtime: 1782822093
-commit: 5e7fc3c4ddd93fedd92550776e1ac496da612711e243f9ffaba5e59d535ec98d
+mtime: 1785093940
+commit: 4852f494b1a010c27137b660c8c6c216dd63bf567e234e059bdf5787970e964d
 url: https://src.opensuse.org/AI/python-mistralai.git
 revision: factory
 

++++++ build.specials.obscpio ++++++

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2026-07-26 21:25:40.000000000 +0200
@@ -0,0 +1,6 @@
+*.obscpio
+*.osc
+_build.*
+_service:*
+.pbuild
+python-mistralai-*-build/

++++++ correct-traceparent-hook.patch ++++++
--- /var/tmp/diff_new_pack.oE4MeH/_old  2026-07-28 17:53:47.947848737 +0200
+++ /var/tmp/diff_new_pack.oE4MeH/_new  2026-07-28 17:53:47.951848876 +0200
@@ -1,8 +1,13 @@
-Index: mistralai-2.5.0/src/mistralai/client/_hooks/traceparent.py
+---
+ src/mistralai/client/_hooks/traceparent.py         |   13 ++++++++++++-
+ src/mistralai/extra/tests/test_traceparent_hook.py |    3 ++-
+ 2 files changed, 14 insertions(+), 2 deletions(-)
+
+Index: mistralai-2.7.2/src/mistralai/client/_hooks/traceparent.py
 ===================================================================
---- mistralai-2.5.0.orig/src/mistralai/client/_hooks/traceparent.py
-+++ mistralai-2.5.0/src/mistralai/client/_hooks/traceparent.py
-@@ -23,7 +23,18 @@ class TraceparentInjectionHook(BeforeReq
+--- mistralai-2.7.2.orig/src/mistralai/client/_hooks/traceparent.py    
2020-02-02 01:00:00.000000000 +0100
++++ mistralai-2.7.2/src/mistralai/client/_hooks/traceparent.py 2026-07-26 
21:24:13.101213801 +0200
+@@ -29,7 +29,18 @@
          carrier: Dict[str, str] = {}
          inject(carrier)
          traceparent = carrier.get("traceparent", "")
@@ -22,11 +27,11 @@
              trace_id = random.getrandbits(128)
              span_id = random.getrandbits(64)
              traceparent = f"00-{trace_id:032x}-{span_id:016x}-01"
-Index: mistralai-2.5.0/src/mistralai/extra/tests/test_traceparent_hook.py
+Index: mistralai-2.7.2/src/mistralai/extra/tests/test_traceparent_hook.py
 ===================================================================
---- mistralai-2.5.0.orig/src/mistralai/extra/tests/test_traceparent_hook.py
-+++ mistralai-2.5.0/src/mistralai/extra/tests/test_traceparent_hook.py
-@@ -85,7 +85,8 @@ class TestTraceparentInjectionHook(unitt
+--- mistralai-2.7.2.orig/src/mistralai/extra/tests/test_traceparent_hook.py    
2020-02-02 01:00:00.000000000 +0100
++++ mistralai-2.7.2/src/mistralai/extra/tests/test_traceparent_hook.py 
2026-07-26 21:24:13.102213820 +0200
+@@ -86,7 +86,8 @@
  
          assert isinstance(result, httpx.Request)
          injected = result.headers["traceparent"]

++++++ mistralai-2.5.0.tar.gz -> mistralai-2.7.2.tar.gz ++++++
++++ 24258 lines of diff (skipped)

++++++ test-cleanup-gc.patch ++++++
---
 src/mistralai/extra/tests/test_workflow_encoding.py |    1 +
 1 file changed, 1 insertion(+)

Index: mistralai-2.7.2/src/mistralai/extra/tests/test_workflow_encoding.py
===================================================================
--- mistralai-2.7.2.orig/src/mistralai/extra/tests/test_workflow_encoding.py    
2020-02-02 01:00:00.000000000 +0100
+++ mistralai-2.7.2/src/mistralai/extra/tests/test_workflow_encoding.py 
2026-07-26 21:25:08.535010934 +0200
@@ -76,6 +76,7 @@
     encryption_config: WorkflowEncodingConfig,
 ):
     """Test that PayloadEncoder is cleaned up when client is garbage 
collected."""
+    gc.collect()
     initial_config_count = len(_workflow_configs)
 
     # Create client and configure encoding

Reply via email to