Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package azure-cli-core for openSUSE:Factory 
checked in at 2023-03-08 14:52:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/azure-cli-core (Old)
 and      /work/SRC/openSUSE:Factory/.azure-cli-core.new.31432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "azure-cli-core"

Wed Mar  8 14:52:55 2023 rev:50 rq:1070007 version:2.46.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/azure-cli-core/azure-cli-core.changes    
2023-02-11 21:57:42.671767400 +0100
+++ /work/SRC/openSUSE:Factory/.azure-cli-core.new.31432/azure-cli-core.changes 
2023-03-08 14:53:01.130821847 +0100
@@ -1,0 +2,9 @@
+Tue Mar  7 11:57:51 UTC 2023 - John Paul Adrian Glaubitz 
<adrian.glaub...@suse.com>
+
+- New upstream release (bsc#1199592)
+  + Version 2.46.0
+  + For detailed information about changes see the
+    HISTORY.rst file provided with this package
+- Update Requires from setup.py
+
+-------------------------------------------------------------------

Old:
----
  azure-cli-core-2.45.0.tar.gz

New:
----
  azure-cli-core-2.46.0.tar.gz

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

Other differences:
------------------
++++++ azure-cli-core.spec ++++++
--- /var/tmp/diff_new_pack.XmUhWQ/_old  2023-03-08 14:53:01.954826334 +0100
+++ /var/tmp/diff_new_pack.XmUhWQ/_new  2023-03-08 14:53:01.986826508 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           azure-cli-core
-Version:        2.45.0
+Version:        2.46.0
 Release:        0
 Summary:        Microsoft Azure CLI Core Module
 License:        MIT
@@ -51,9 +51,8 @@
 Requires:       python3-msal-extensions >= 1.0.0
 Requires:       python3-msrestazure < 0.7.0
 Requires:       python3-msrestazure >= 0.6.4
-Requires:       python3-packaging < 24.0
 Requires:       python3-packaging >= 20.9
-Requires:       python3-paramiko < 3.0.0
+Requires:       python3-paramiko < 4.0.0
 Requires:       python3-paramiko >= 2.0.8
 Requires:       python3-pip
 Requires:       python3-pkginfo >= 1.5.0.1

++++++ azure-cli-core-2.45.0.tar.gz -> azure-cli-core-2.46.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-core-2.45.0/HISTORY.rst 
new/azure-cli-core-2.46.0/HISTORY.rst
--- old/azure-cli-core-2.45.0/HISTORY.rst       2023-02-03 10:37:38.000000000 
+0100
+++ new/azure-cli-core-2.46.0/HISTORY.rst       2023-03-06 10:39:15.000000000 
+0100
@@ -3,6 +3,10 @@
 Release History
 ===============
 
+2.46.0
+++++++
+* Add announcement for WAM-based login (#25416)
+
 2.45.0
 ++++++
 * `aaz`: Support AAZFileArg (#25075)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-core-2.45.0/PKG-INFO 
new/azure-cli-core-2.46.0/PKG-INFO
--- old/azure-cli-core-2.45.0/PKG-INFO  2023-02-03 10:38:12.493968200 +0100
+++ new/azure-cli-core-2.46.0/PKG-INFO  2023-03-06 10:39:38.014681800 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: azure-cli-core
-Version: 2.45.0
+Version: 2.46.0
 Summary: Microsoft Azure Command-Line Tools Core Module
 Home-page: https://github.com/Azure/azure-cli
 Author: Microsoft Corporation
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-core-2.45.0/azure/cli/core/__init__.py 
new/azure-cli-core-2.46.0/azure/cli/core/__init__.py
--- old/azure-cli-core-2.45.0/azure/cli/core/__init__.py        2023-02-03 
10:37:38.000000000 +0100
+++ new/azure-cli-core-2.46.0/azure/cli/core/__init__.py        2023-03-06 
10:39:15.000000000 +0100
@@ -4,7 +4,7 @@
 # 
--------------------------------------------------------------------------------------------
 # pylint: disable=line-too-long
 
-__version__ = "2.45.0"
+__version__ = "2.46.0"
 
 import os
 import sys
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-core-2.45.0/azure/cli/core/auth/landing_pages/error.html 
new/azure-cli-core-2.46.0/azure/cli/core/auth/landing_pages/error.html
--- old/azure-cli-core-2.45.0/azure/cli/core/auth/landing_pages/error.html      
2023-02-03 10:37:38.000000000 +0100
+++ new/azure-cli-core-2.46.0/azure/cli/core/auth/landing_pages/error.html      
2023-03-06 10:39:15.000000000 +0100
@@ -3,9 +3,14 @@
 <head>
     <meta charset="utf-8" />
     <title>Login failed</title>
+    <style>
+        body {
+            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
+        }
+    </style>
 </head>
 <body>
-    <h4>Authentication failed</h4>
+    <h3>Authentication failed</h3>
     <p>$error: $error_description. ($error_uri)</p>
     <p>You can log an issue at <a 
href="https://github.com/azure/azure-cli/issues";>Azure CLI GitHub 
Repository</a> and we will assist you in resolving it.</p>
 </body>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-core-2.45.0/azure/cli/core/auth/landing_pages/success.html 
new/azure-cli-core-2.46.0/azure/cli/core/auth/landing_pages/success.html
--- old/azure-cli-core-2.45.0/azure/cli/core/auth/landing_pages/success.html    
2023-02-03 10:37:38.000000000 +0100
+++ new/azure-cli-core-2.46.0/azure/cli/core/auth/landing_pages/success.html    
2023-03-06 10:39:15.000000000 +0100
@@ -2,11 +2,32 @@
 <html>
 <head>
     <meta charset="utf-8" />
-    <meta http-equiv="refresh" 
content="10;url=https://docs.microsoft.com/cli/azure/";>
+    <meta http-equiv="refresh" 
content="60;url=https://docs.microsoft.com/cli/azure/";>
     <title>Login successfully</title>
+    <style>
+        body {
+            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
+        }
+
+        code {
+            font-family: Consolas, 'Liberation Mono', Menlo, Courier, 
monospace;
+            display: inline-block;
+            background-color: rgb(242, 242, 242);
+            padding: 12px 16px;
+            margin: 8px 0px;
+        }
+    </style>
 </head>
 <body>
-    <h4>You have logged into Microsoft Azure!</h4>
-    <p>You can close this window, or we will redirect you to the <a 
href="https://docs.microsoft.com/cli/azure/";>Azure CLI documentation</a> in 10 
seconds.</p>
+    <h3>You have logged into Microsoft Azure!</h3>
+    <p>You can close this window, or we will redirect you to the <a 
href="https://docs.microsoft.com/cli/azure/";>Azure CLI documentation</a> in 1 
minute.</p>
+    <h3>Announcements</h3>
+    <p>[Windows only] Starting in May 2023, Azure CLI will authenticate using 
the <a 
href="https://learn.microsoft.com/windows/uwp/security/web-account-manager";>Web 
Account Manager</a> (WAM) broker by default.</p>
+    <p>To help us collect feedback on the new login experience, you may opt-in 
to use WAM by running the following commands:</p>
+    <code>
+        az config set core.allow_broker=true<br>
+        az account clear<br>
+        az login
+    </code>
 </body>
 </html>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-core-2.45.0/azure/cli/core/commands/arm.py 
new/azure-cli-core-2.46.0/azure/cli/core/commands/arm.py
--- old/azure-cli-core-2.45.0/azure/cli/core/commands/arm.py    2023-02-03 
10:37:38.000000000 +0100
+++ new/azure-cli-core-2.46.0/azure/cli/core/commands/arm.py    2023-03-06 
10:39:15.000000000 +0100
@@ -711,7 +711,7 @@
 
 def assign_identity(cli_ctx, getter, setter, identity_role=None, 
identity_scope=None):
     import time
-    from msrestazure.azure_exceptions import CloudError
+    from azure.core.exceptions import HttpResponseError
 
     # get
     resource = getter()
@@ -726,7 +726,8 @@
         RoleAssignmentCreateParameters = get_sdk(cli_ctx, 
ResourceType.MGMT_AUTHORIZATION,
                                                  
'RoleAssignmentCreateParameters', mod='models',
                                                  
operation_group='role_assignments')
-        parameters = 
RoleAssignmentCreateParameters(role_definition_id=identity_role_id, 
principal_id=principal_id)
+        parameters = 
RoleAssignmentCreateParameters(role_definition_id=identity_role_id, 
principal_id=principal_id,
+                                                    principal_type=None)
 
         logger.info("Creating an assignment with a role '%s' on the scope of 
'%s'", identity_role_id, identity_scope)
         retry_times = 36
@@ -736,7 +737,7 @@
                 assignments_client.create(scope=identity_scope, 
role_assignment_name=assignment_name,
                                           parameters=parameters)
                 break
-            except CloudError as ex:
+            except HttpResponseError as ex:
                 if 'role assignment already exists' in ex.message:
                     logger.info('Role assignment already exists')
                     break
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-core-2.45.0/azure/cli/core/profiles/_shared.py 
new/azure-cli-core-2.46.0/azure/cli/core/profiles/_shared.py
--- old/azure-cli-core-2.45.0/azure/cli/core/profiles/_shared.py        
2023-02-03 10:37:38.000000000 +0100
+++ new/azure-cli-core-2.46.0/azure/cli/core/profiles/_shared.py        
2023-03-06 10:39:15.000000000 +0100
@@ -96,7 +96,6 @@
     MGMT_CONSUMPTION = ('azure.mgmt.consumption', None)
     MGMT_CONTAINERINSTANCE = ('azure.mgmt.containerinstance', None)
     MGMT_COSMOSDB = ('azure.mgmt.cosmosdb', None)
-    MGMT_DEPLOYMENTMANAGER = ('azure.mgmt.deploymentmanager', None)
     MGMT_DATALAKE_ANALYTICS = ('azure.mgmt.datalake.analytics', None)
     MGMT_DATALAKE_STORE = ('azure.mgmt.datalake.store', None)
     MGMT_DATAMIGRATION = ('azure.mgmt.datamigration', None)
@@ -179,9 +178,9 @@
         ResourceType.MGMT_RESOURCE_PRIVATELINKS: '2020-05-01',
         ResourceType.MGMT_NETWORK_DNS: '2018-05-01',
         ResourceType.MGMT_KEYVAULT: '2022-07-01',
-        ResourceType.MGMT_AUTHORIZATION: SDKProfile('2020-04-01-preview', {
+        ResourceType.MGMT_AUTHORIZATION: SDKProfile('2022-04-01', {
             'classic_administrators': '2015-06-01',
-            'role_definitions': '2018-01-01-preview',
+            'role_definitions': '2022-04-01',
             'provider_operations_metadata': '2018-01-01-preview'
         }),
         ResourceType.MGMT_CONTAINERREGISTRY: SDKProfile('2022-02-01-preview', {
@@ -189,7 +188,9 @@
             'tasks': '2019-06-01-preview',
             'task_runs': '2019-06-01-preview',
             'runs': '2019-06-01-preview',
-            'network_rule': '2021-08-01-preview'
+            'network_rule': '2021-08-01-preview',
+            'cache_rules': '2023-01-01-preview',
+            'credential_sets': '2023-01-01-preview'
         }),
         # The order does make things different.
         # Please keep ResourceType.DATA_KEYVAULT_KEYS before 
ResourceType.DATA_KEYVAULT
@@ -204,7 +205,7 @@
         ResourceType.DATA_STORAGE_FILESHARE: '2021-06-08',
         ResourceType.DATA_STORAGE_QUEUE: '2018-03-28',
         ResourceType.DATA_COSMOS_TABLE: '2017-04-17',
-        ResourceType.MGMT_SERVICEBUS: '2022-01-01-preview',
+        ResourceType.MGMT_SERVICEBUS: '2022-10-01-preview',
         ResourceType.MGMT_EVENTHUB: '2022-01-01-preview',
         ResourceType.MGMT_MONITOR: SDKProfile('2019-06-01', {
             'action_groups': '2022-06-01',
@@ -239,7 +240,7 @@
             'private_endpoint_connections': '2019-10-17-preview',
             'subscription_diagnostic_settings': '2017-05-01-preview'
         }),
-        ResourceType.MGMT_MSI: '2022-01-31-preview',
+        ResourceType.MGMT_MSI: '2023-01-31',
         ResourceType.MGMT_APPSERVICE: '2022-03-01',
         ResourceType.MGMT_IOTHUB: '2022-04-30-preview',
         ResourceType.MGMT_IOTDPS: '2021-10-15',
@@ -247,7 +248,7 @@
         ResourceType.MGMT_ARO: '2022-09-04',
         ResourceType.MGMT_DATABOXEDGE: '2021-02-01-preview',
         ResourceType.MGMT_CUSTOMLOCATION: '2021-03-15-preview',
-        ResourceType.MGMT_CONTAINERSERVICE: SDKProfile('2022-11-01', {
+        ResourceType.MGMT_CONTAINERSERVICE: SDKProfile('2023-01-01', {
             'container_services': '2017-07-01',
             'open_shift_managed_clusters': '2019-09-30-preview'
         }),
@@ -297,7 +298,7 @@
         ResourceType.DATA_COSMOS_TABLE: '2017-04-17',
         ResourceType.MGMT_APPSERVICE: '2018-02-01',
         ResourceType.MGMT_EVENTHUB: '2022-01-01-preview',
-        ResourceType.MGMT_SERVICEBUS: '2022-01-01-preview',
+        ResourceType.MGMT_SERVICEBUS: '2022-10-01-preview',
         ResourceType.MGMT_IOTHUB: '2019-07-01-preview',
         ResourceType.MGMT_DATABOXEDGE: '2019-08-01',
         ResourceType.MGMT_CONTAINERREGISTRY: '2019-05-01',
@@ -344,7 +345,7 @@
         # API versions
         ResourceType.MGMT_APPSERVICE: '2018-02-01',
         ResourceType.MGMT_EVENTHUB: '2022-01-01-preview',
-        ResourceType.MGMT_SERVICEBUS: '2022-01-01-preview',
+        ResourceType.MGMT_SERVICEBUS: '2022-10-01-preview',
         ResourceType.MGMT_IOTHUB: '2019-03-22',
         ResourceType.MGMT_DATABOXEDGE: '2019-08-01'
     },
@@ -424,6 +425,9 @@
     ResourceType.MGMT_CONTAINERSERVICE: {
         # 
src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_custom.py:50
         'ManagedClusterAddonProfile': '2020-03-01',
+    },
+    ResourceType.MGMT_MSI: {
+        'user_assigned_identities': '2022-01-31-preview',
     }
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-core-2.45.0/azure/cli/core/telemetry.py 
new/azure-cli-core-2.46.0/azure/cli/core/telemetry.py
--- old/azure-cli-core-2.45.0/azure/cli/core/telemetry.py       2023-02-03 
10:37:38.000000000 +0100
+++ new/azure-cli-core-2.46.0/azure/cli/core/telemetry.py       2023-03-06 
10:39:15.000000000 +0100
@@ -51,6 +51,8 @@
         self.extension_management_detail = None
         self.raw_command = None
         self.show_survey_message = False
+        self.region_input = None
+        self.region_identified = None
         self.mode = 'default'
         # The AzCLIError sub-class name
         self.error_type = 'None'
@@ -143,6 +145,10 @@
             'Context.Default.VS.Core.OS.Type': platform.system().lower(),  # 
eg. darwin, windows
             'Context.Default.VS.Core.OS.Version': platform.version().lower(),  
# eg. 10.0.14942
             'Context.Default.VS.Core.OS.Platform': 
platform.platform().lower(),  # eg. windows-10-10.0.19041-sp0
+            # the distro info is complement of platform info for linux
+            'Context.Default.VS.Core.Distro.Name': _get_distro_name(),  # eg. 
'CentOS Linux 8'
+            'Context.Default.VS.Core.Distro.Id': _get_distro_id(),  # eg. 
'centos'
+            'Context.Default.VS.Core.Distro.Version': _get_distro_version(),  
# eg. '8.4.2105'
             'Context.Default.VS.Core.User.Id': _get_installation_id(),
             'Context.Default.VS.Core.User.IsMicrosoftInternal': 'False',
             'Context.Default.VS.Core.User.IsOptedIn': 'True',
@@ -207,6 +213,8 @@
         set_custom_properties(result, 'PollEndTime', str(self.poll_end_time))
         set_custom_properties(result, 'CloudName', _get_cloud_name())
         set_custom_properties(result, 'ShowSurveyMessage', 
str(self.show_survey_message))
+        set_custom_properties(result, 'RegionInput', self.region_input)
+        set_custom_properties(result, 'RegionIdentified', 
self.region_identified)
         set_custom_properties(result, 'AllowBroker', str(self.allow_broker))
 
         return result
@@ -428,6 +436,14 @@
 
 
 @decorators.suppress_all_exceptions()
+def set_region_identified(region_input, region_identified):
+    # Record the region input by customers
+    _session.region_input = region_input
+    # Record the region we have recommended to customers
+    _session.region_identified = region_identified
+
+
+@decorators.suppress_all_exceptions()
 def set_broker_info(allow_broker):
     # whether customer has configured `allow_broker` to enable WAM(Web Account 
Manager) login for authentication
     _session.allow_broker = allow_broker
@@ -557,6 +573,33 @@
 
 
 @decorators.suppress_all_exceptions(fallback_return='')
+def _get_distro_name():
+    try:
+        import distro
+        return distro.name(pretty=True)
+    except ImportError:
+        return ''
+
+
+@decorators.suppress_all_exceptions(fallback_return='')
+def _get_distro_id():
+    try:
+        import distro
+        return distro.id()
+    except ImportError:
+        return ''
+
+
+@decorators.suppress_all_exceptions(fallback_return='')
+def _get_distro_version():
+    try:
+        import distro
+        return distro.version()
+    except ImportError:
+        return ''
+
+
+@decorators.suppress_all_exceptions(fallback_return='')
 @decorators.hash256_result
 def _get_user_azure_id():
     try:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-core-2.45.0/azure_cli_core.egg-info/PKG-INFO 
new/azure-cli-core-2.46.0/azure_cli_core.egg-info/PKG-INFO
--- old/azure-cli-core-2.45.0/azure_cli_core.egg-info/PKG-INFO  2023-02-03 
10:38:12.000000000 +0100
+++ new/azure-cli-core-2.46.0/azure_cli_core.egg-info/PKG-INFO  2023-03-06 
10:39:37.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: azure-cli-core
-Version: 2.45.0
+Version: 2.46.0
 Summary: Microsoft Azure Command-Line Tools Core Module
 Home-page: https://github.com/Azure/azure-cli
 Author: Microsoft Corporation
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-core-2.45.0/azure_cli_core.egg-info/requires.txt 
new/azure-cli-core-2.46.0/azure_cli_core.egg-info/requires.txt
--- old/azure-cli-core-2.45.0/azure_cli_core.egg-info/requires.txt      
2023-02-03 10:38:12.000000000 +0100
+++ new/azure-cli-core-2.46.0/azure_cli_core.egg-info/requires.txt      
2023-03-06 10:39:37.000000000 +0100
@@ -8,8 +8,8 @@
 msal-extensions~=1.0.0
 msal[broker]==1.20.0
 msrestazure~=0.6.4
-packaging<22.0,>=20.9
-paramiko<3.0.0,>=2.0.8
+packaging>=20.9
+paramiko<4.0.0,>=2.0.8
 pkginfo>=1.5.0.1
 PyJWT>=2.1.0
 pyopenssl>=17.1.0
@@ -17,3 +17,6 @@
 
 [:sys_platform != "cygwin"]
 psutil~=5.9
+
+[:sys_platform == "linux"]
+distro
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-core-2.45.0/setup.py 
new/azure-cli-core-2.46.0/setup.py
--- old/azure-cli-core-2.45.0/setup.py  2023-02-03 10:37:38.000000000 +0100
+++ new/azure-cli-core-2.46.0/setup.py  2023-03-06 10:39:15.000000000 +0100
@@ -8,7 +8,7 @@
 from codecs import open
 from setuptools import setup, find_packages
 
-VERSION = "2.45.0"
+VERSION = "2.46.0"
 
 # If we have source, validate that our version numbers match
 # This should prevent uploading releases with mismatched versions.
@@ -47,14 +47,16 @@
     'azure-cli-telemetry==1.0.8.*',
     'azure-mgmt-core>=1.2.0,<2',
     'cryptography',
+    # On Linux, the distribution (Ubuntu, Debian, etc) and version are logged 
in telemetry
+    'distro; sys_platform == "linux"',
     'humanfriendly~=10.0',
     'jmespath',
     'knack~=0.10.1',
     'msal-extensions~=1.0.0',
     'msal[broker]==1.20.0',
     'msrestazure~=0.6.4',
-    'packaging>=20.9,<22.0',
-    'paramiko>=2.0.8,<3.0.0',
+    'packaging>=20.9',
+    'paramiko>=2.0.8,<4.0.0',
     'pkginfo>=1.5.0.1',
     # psutil can't install on cygwin: 
https://github.com/Azure/azure-cli/issues/9399
     'psutil~=5.9; sys_platform != "cygwin"',

Reply via email to