Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-azure-storage-blob for 
openSUSE:Factory checked in at 2023-10-05 20:03:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-azure-storage-blob (Old)
 and      /work/SRC/openSUSE:Factory/.python-azure-storage-blob.new.28202 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-azure-storage-blob"

Thu Oct  5 20:03:46 2023 rev:27 rq:1115597 version:12.18.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-azure-storage-blob/python-azure-storage-blob.changes
      2023-09-15 22:09:57.690759695 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-azure-storage-blob.new.28202/python-azure-storage-blob.changes
   2023-10-05 20:04:43.630124941 +0200
@@ -1,0 +2,8 @@
+Fri Sep 15 16:56:15 UTC 2023 - John Paul Adrian Glaubitz 
<adrian.glaub...@suse.com>
+
+- New upstream release
+  + Version 12.18.1
+  + For detailed information about changes see the
+    CHANGELOG.md file provided with this package
+
+-------------------------------------------------------------------

Old:
----
  azure-storage-blob-12.18.0.tar.gz

New:
----
  azure-storage-blob-12.18.1.tar.gz

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

Other differences:
------------------
++++++ python-azure-storage-blob.spec ++++++
--- /var/tmp/diff_new_pack.XLfuDS/_old  2023-10-05 20:04:44.694163381 +0200
+++ /var/tmp/diff_new_pack.XLfuDS/_new  2023-10-05 20:04:44.698163526 +0200
@@ -21,7 +21,7 @@
 %define skip_python2 1
 %endif
 Name:           python-azure-storage-blob
-Version:        12.18.0
+Version:        12.18.1
 Release:        0
 Summary:        Microsoft Azure Storage Blob Client Library for Python
 License:        MIT

++++++ azure-storage-blob-12.18.0.tar.gz -> azure-storage-blob-12.18.1.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-storage-blob-12.18.0/CHANGELOG.md 
new/azure-storage-blob-12.18.1/CHANGELOG.md
--- old/azure-storage-blob-12.18.0/CHANGELOG.md 2023-09-12 22:57:33.000000000 
+0200
+++ new/azure-storage-blob-12.18.1/CHANGELOG.md 2023-09-13 23:18:55.000000000 
+0200
@@ -1,5 +1,11 @@
 # Release History
 
+## 12.18.1 (2023-09-13)
+
+### Bugs Fixed
+- Fixed breaking `KeyError: 'sdk_moniker'` in `create_configuration`.
+NOTE: This is not an exported method and therefore should not be 
imported/called directly.
+
 ## 12.18.0 (2023-09-12)
 
 ### Features Added
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-storage-blob-12.18.0/PKG-INFO 
new/azure-storage-blob-12.18.1/PKG-INFO
--- old/azure-storage-blob-12.18.0/PKG-INFO     2023-09-12 22:58:32.854908700 
+0200
+++ new/azure-storage-blob-12.18.1/PKG-INFO     2023-09-13 23:19:53.780467300 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: azure-storage-blob
-Version: 12.18.0
+Version: 12.18.1
 Summary: Microsoft Azure Blob Storage Client Library for Python
 Home-page: 
https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob
 Author: Microsoft Corporation
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-storage-blob-12.18.0/azure/storage/blob/_shared/base_client.py 
new/azure-storage-blob-12.18.1/azure/storage/blob/_shared/base_client.py
--- old/azure-storage-blob-12.18.0/azure/storage/blob/_shared/base_client.py    
2023-09-12 22:57:33.000000000 +0200
+++ new/azure-storage-blob-12.18.1/azure/storage/blob/_shared/base_client.py    
2023-09-13 23:18:55.000000000 +0200
@@ -410,9 +410,12 @@
 
 def create_configuration(**kwargs):
     # type: (**Any) -> Configuration
+    # Backwards compatibility if someone is not passing sdk_moniker
+    if not kwargs.get("sdk_moniker"):
+        kwargs["sdk_moniker"] = 
f"storage-{kwargs.pop('storage_sdk')}/{VERSION}"
     config = Configuration(**kwargs)
     config.headers_policy = StorageHeadersPolicy(**kwargs)
-    config.user_agent_policy = 
UserAgentPolicy(sdk_moniker=kwargs.pop('sdk_moniker'), **kwargs)
+    config.user_agent_policy = UserAgentPolicy(**kwargs)
     config.retry_policy = kwargs.get("retry_policy") or 
ExponentialRetry(**kwargs)
     config.logging_policy = StorageLoggingPolicy(**kwargs)
     config.proxy_policy = ProxyPolicy(**kwargs)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-storage-blob-12.18.0/azure/storage/blob/_version.py 
new/azure-storage-blob-12.18.1/azure/storage/blob/_version.py
--- old/azure-storage-blob-12.18.0/azure/storage/blob/_version.py       
2023-09-12 22:57:33.000000000 +0200
+++ new/azure-storage-blob-12.18.1/azure/storage/blob/_version.py       
2023-09-13 23:18:55.000000000 +0200
@@ -4,4 +4,4 @@
 # license information.
 # --------------------------------------------------------------------------
 
-VERSION = "12.18.0"
+VERSION = "12.18.1"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-storage-blob-12.18.0/azure_storage_blob.egg-info/PKG-INFO 
new/azure-storage-blob-12.18.1/azure_storage_blob.egg-info/PKG-INFO
--- old/azure-storage-blob-12.18.0/azure_storage_blob.egg-info/PKG-INFO 
2023-09-12 22:58:32.000000000 +0200
+++ new/azure-storage-blob-12.18.1/azure_storage_blob.egg-info/PKG-INFO 
2023-09-13 23:19:53.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: azure-storage-blob
-Version: 12.18.0
+Version: 12.18.1
 Summary: Microsoft Azure Blob Storage Client Library for Python
 Home-page: 
https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob
 Author: Microsoft Corporation
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-storage-blob-12.18.0/tests/test_blob_client.py 
new/azure-storage-blob-12.18.1/tests/test_blob_client.py
--- old/azure-storage-blob-12.18.0/tests/test_blob_client.py    2023-09-12 
22:57:33.000000000 +0200
+++ new/azure-storage-blob-12.18.1/tests/test_blob_client.py    2023-09-13 
23:18:55.000000000 +0200
@@ -9,7 +9,6 @@
 
 import pytest
 from azure.core.credentials import AzureSasCredential
-from azure.core.exceptions import AzureError
 from azure.storage.blob import (
     AccountSasPermissions,
     BlobClient,
@@ -19,6 +18,7 @@
     ResourceTypes,
     VERSION,
 )
+from azure.storage.blob._shared.base_client import create_configuration
 
 from devtools_testutils import recorded_by_proxy
 from devtools_testutils.storage import StorageRecordedTestCase
@@ -718,4 +718,17 @@
                 self.account_url(storage_account_name, "blob"), 
credential=storage_account_key, container_name='foo', blob_name='bar')
             service.close()
 
+    @BlobPreparer()
+    def test_create_configuration_legacy(self, **kwargs):
+        # Arrange
+        sdk_name = 'Blob-test'
+
+        # Act
+        config = create_configuration(storage_sdk=sdk_name)
+
+        # Assert
+        assert config is not None
+        assert config.max_block_size == 4 * 1024 * 1024
+        assert sdk_name in config.user_agent_policy.user_agent
+
 # 
------------------------------------------------------------------------------

Reply via email to