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-05-28 19:23:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/azure-cli-core (Old)
 and      /work/SRC/openSUSE:Factory/.azure-cli-core.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "azure-cli-core"

Sun May 28 19:23:39 2023 rev:53 rq:1089370 version:2.49.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/azure-cli-core/azure-cli-core.changes    
2023-05-04 17:10:12.804238093 +0200
+++ /work/SRC/openSUSE:Factory/.azure-cli-core.new.1533/azure-cli-core.changes  
2023-05-28 19:23:56.293353309 +0200
@@ -1,0 +2,11 @@
+Wed May 24 07:01:14 UTC 2023 - John Paul Adrian Glaubitz 
<adrian.glaub...@suse.com>
+
+- New upstream release
+  + Version 2.49.0
+  + For detailed information about changes see the
+    HISTORY.rst file provided with this package
+- Add patch to update argcomplete dependency (bsc#1206869)
+  + acc_update-argcomplete.patch
+- Update Requires from setup.py
+
+-------------------------------------------------------------------

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

New:
----
  acc_update-argcomplete.patch
  azure-cli-core-2.49.0.tar.gz

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

Other differences:
------------------
++++++ azure-cli-core.spec ++++++
--- /var/tmp/diff_new_pack.s2lN99/_old  2023-05-28 19:23:56.765356117 +0200
+++ /var/tmp/diff_new_pack.s2lN99/_new  2023-05-28 19:23:56.773356165 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           azure-cli-core
-Version:        2.48.1
+Version:        2.49.0
 Release:        0
 Summary:        Microsoft Azure CLI Core Module
 License:        MIT
@@ -26,6 +26,7 @@
 Source:         
https://files.pythonhosted.org/packages/source/a/azure-cli-core/azure-cli-core-%{version}.tar.gz
 Source1:        LICENSE.txt
 Patch0:         acc_disable-update-check.patch
+Patch1:         acc_update-argcomplete.patch
 BuildRequires:  azure-cli-nspkg
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -34,8 +35,8 @@
 Requires:       azure-cli-nspkg
 Requires:       azure-cli-telemetry >= 1.0.8
 Requires:       python3-PyJWT >= 2.1.0
-Requires:       python3-argcomplete < 3.0
-Requires:       python3-argcomplete >= 2.0
+Requires:       python3-argcomplete < 4.0
+Requires:       python3-argcomplete >= 3.0
 Requires:       python3-azure-mgmt-core < 2.0.0
 Requires:       python3-azure-mgmt-core >= 1.2.0
 Requires:       python3-azure-nspkg >= 3.0.0
@@ -75,6 +76,7 @@
 %prep
 %setup -q -n azure-cli-core-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 install -m 644 %{SOURCE1} %{_builddir}/azure-cli-core-%{version}

++++++ acc_update-argcomplete.patch ++++++
diff -Nru azure-cli-core-2.49.0.orig/setup.py azure-cli-core-2.49.0/setup.py
--- azure-cli-core-2.49.0.orig/setup.py 2023-05-19 10:19:28.000000000 +0200
+++ azure-cli-core-2.49.0/setup.py      2023-05-24 09:00:00.184417378 +0200
@@ -43,7 +43,7 @@
 ]
 
 DEPENDENCIES = [
-    'argcomplete~=2.0',
+    'argcomplete~=3.0',
     'azure-cli-telemetry==1.0.8.*',
     'azure-mgmt-core>=1.2.0,<2',
     'cryptography',

++++++ azure-cli-core-2.48.1.tar.gz -> azure-cli-core-2.49.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-core-2.48.1/HISTORY.rst 
new/azure-cli-core-2.49.0/HISTORY.rst
--- old/azure-cli-core-2.48.1/HISTORY.rst       2023-04-25 06:21:03.000000000 
+0200
+++ new/azure-cli-core-2.49.0/HISTORY.rst       2023-05-19 10:19:28.000000000 
+0200
@@ -3,6 +3,10 @@
 Release History
 ===============
 
+2.49.0
+++++++
+* Dynamically install extensions without prompt when not in a TTY (#26219)
+
 2.48.1
 ++++++
 * No changes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-core-2.48.1/PKG-INFO 
new/azure-cli-core-2.49.0/PKG-INFO
--- old/azure-cli-core-2.48.1/PKG-INFO  2023-04-25 06:21:41.873754700 +0200
+++ new/azure-cli-core-2.49.0/PKG-INFO  2023-05-19 10:19:44.972120800 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: azure-cli-core
-Version: 2.48.1
+Version: 2.49.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.48.1/azure/cli/core/__init__.py 
new/azure-cli-core-2.49.0/azure/cli/core/__init__.py
--- old/azure-cli-core-2.48.1/azure/cli/core/__init__.py        2023-04-25 
06:21:03.000000000 +0200
+++ new/azure-cli-core-2.49.0/azure/cli/core/__init__.py        2023-05-19 
10:19:28.000000000 +0200
@@ -4,7 +4,7 @@
 # 
--------------------------------------------------------------------------------------------
 # pylint: disable=line-too-long
 
-__version__ = "2.48.1"
+__version__ = "2.49.0"
 
 import os
 import sys
@@ -449,6 +449,20 @@
                 if raw_cmd in self.command_group_table:
                     logger.debug("Found a match in the command group table for 
'%s'.", raw_cmd)
                     return self.command_table
+                if self.cli_ctx.data['completer_active']:
+                    # If the command is not complete in autocomplete mode, we 
should match shorter command.
+                    # For example, `account sho` should match `account`.
+                    logger.debug("Could not find a match in the command or 
command group table for '%s'", raw_cmd)
+                    trimmed_raw_cmd = ' '.join(raw_cmd.split()[:-1])
+                    logger.debug("In autocomplete mode, try to match trimmed 
raw cmd: '%s'", trimmed_raw_cmd)
+                    if not trimmed_raw_cmd:
+                        # If full command is 'az acc', raw_cmd is 'acc', 
trimmed_raw_cmd is ''.
+                        logger.debug("Trimmed raw cmd is empty, return command 
table.")
+                        return self.command_table
+                    if trimmed_raw_cmd in self.command_group_table:
+                        logger.debug("Found a match in the command group table 
for trimmed raw cmd: '%s'.",
+                                     trimmed_raw_cmd)
+                        return self.command_table
 
                 logger.debug("Could not find a match in the command or command 
group table for '%s'. "
                              "The index may be outdated.", raw_cmd)
@@ -527,6 +541,7 @@
         if cli_ctx:
             self.version = __version__
             self.cloud_profile = cli_ctx.cloud.profile
+        self.cli_ctx = cli_ctx
 
     def get(self, args):
         """Get the corresponding module and extension list of a command.
@@ -555,6 +570,13 @@
         # Check the command index for (command: [module]) mapping, like
         # "network": ["azure.cli.command_modules.natgateway", 
"azure.cli.command_modules.network", "azext_firewall"]
         index_modules_extensions = index.get(top_command)
+        if not index_modules_extensions and 
self.cli_ctx.data['completer_active']:
+            # If user type `az acco`, command begin with `acco` will be 
matched.
+            logger.debug("In autocomplete mode, load commands starting with: 
'%s'", top_command)
+            index_modules_extensions = []
+            for command in index:
+                if command.startswith(top_command):
+                    index_modules_extensions += index[command]
 
         if index_modules_extensions:
             # This list contains both built-in modules and extensions
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-core-2.48.1/azure/cli/core/aaz/_poller.py 
new/azure-cli-core-2.49.0/azure/cli/core/aaz/_poller.py
--- old/azure-cli-core-2.48.1/azure/cli/core/aaz/_poller.py     2023-04-25 
06:21:03.000000000 +0200
+++ new/azure-cli-core-2.49.0/azure/cli/core/aaz/_poller.py     2023-05-19 
10:19:28.000000000 +0200
@@ -12,6 +12,9 @@
 from azure.core.polling.base_polling import LROBasePolling
 from azure.core.tracing.common import with_current_context
 from azure.core.tracing.decorator import distributed_trace
+# import requests in main thread to resolve import deadlock between threads in 
python
+# reference https://github.com/psf/requests/issues/2925 and 
https://github.com/Azure/azure-cli/issues/26272
+import requests  # pylint: disable=unused-import
 
 _LOGGER = logging.getLogger(__name__)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-core-2.48.1/azure/cli/core/auth/landing_pages/success.html 
new/azure-cli-core-2.49.0/azure/cli/core/auth/landing_pages/success.html
--- old/azure-cli-core-2.48.1/azure/cli/core/auth/landing_pages/success.html    
2023-04-25 06:21:03.000000000 +0200
+++ new/azure-cli-core-2.49.0/azure/cli/core/auth/landing_pages/success.html    
2023-05-19 10:19:28.000000000 +0200
@@ -6,7 +6,7 @@
     <title>Login successfully</title>
     <style>
         body {
-            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
+            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
         }
 
         code {
@@ -22,8 +22,8 @@
     <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>
+    <p>[Windows only] Azure CLI is collecting feedback on using the <a 
href="https://learn.microsoft.com/windows/uwp/security/web-account-manager";>Web 
Account Manager</a> (WAM) broker for the login experience.</p>
+    <p>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>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-core-2.48.1/azure/cli/core/extension/dynamic_install.py 
new/azure-cli-core-2.49.0/azure/cli/core/extension/dynamic_install.py
--- old/azure-cli-core-2.48.1/azure/cli/core/extension/dynamic_install.py       
2023-04-25 06:21:03.000000000 +0200
+++ new/azure-cli-core-2.49.0/azure/cli/core/extension/dynamic_install.py       
2023-05-19 10:19:28.000000000 +0200
@@ -121,7 +121,14 @@
 
 
 def _get_extension_use_dynamic_install_config(cli_ctx):
-    default_value = 'yes_prompt'
+    from knack.prompting import verify_is_a_tty, NoTTYException
+    try:
+        verify_is_a_tty()
+        # prompt when it's in tty
+        default_value = 'yes_prompt'
+    except NoTTYException:
+        # without prompt when it's not in tty
+        default_value = 'yes_without_prompt'
     use_dynamic_install = cli_ctx.config.get(
         'extension', 'use_dynamic_install', default_value).lower() if cli_ctx 
else default_value
     if use_dynamic_install not in ['no', 'yes_prompt', 'yes_without_prompt']:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-core-2.48.1/azure/cli/core/profiles/_shared.py 
new/azure-cli-core-2.49.0/azure/cli/core/profiles/_shared.py
--- old/azure-cli-core-2.48.1/azure/cli/core/profiles/_shared.py        
2023-04-25 06:21:03.000000000 +0200
+++ new/azure-cli-core-2.49.0/azure/cli/core/profiles/_shared.py        
2023-05-19 10:19:28.000000000 +0200
@@ -65,10 +65,13 @@
     MGMT_MONITOR = ('azure.mgmt.monitor', 'MonitorManagementClient')
     MGMT_MSI = ('azure.mgmt.msi', 'ManagedServiceIdentityClient')
     DATA_KEYVAULT = ('azure.keyvault', 'KeyVaultClient')
+    DATA_KEYVAULT_CERTIFICATES = ('azure.keyvault.certificates', 
'CertificateClient')
     DATA_KEYVAULT_KEYS = ('azure.keyvault.keys', 'KeyClient')
+    DATA_KEYVAULT_SECRETS = ('azure.keyvault.secrets', 'SecretClient')
     DATA_PRIVATE_KEYVAULT = 
('azure.cli.command_modules.keyvault.vendored_sdks.azure_keyvault_t1', 
'KeyVaultClient')
     DATA_KEYVAULT_ADMINISTRATION_BACKUP = ('azure.keyvault.administration', 
'KeyVaultBackupClient')
     DATA_KEYVAULT_ADMINISTRATION_ACCESS_CONTROL = 
('azure.keyvault.administration', 'KeyVaultAccessControlClient')
+    DATA_KEYVAULT_ADMINISTRATION_SETTING = ('azure.keyvault.administration', 
'KeyVaultSettingsClient')
     MGMT_EVENTHUB = ('azure.mgmt.eventhub', 'EventHubManagementClient')
     MGMT_SERVICEBUS = ('azure.mgmt.servicebus', 'ServiceBusManagementClient')
     MGMT_APPSERVICE = ('azure.mgmt.web', 'WebSiteManagementClient')
@@ -198,11 +201,14 @@
         }),
         # The order does make things different.
         # Please keep ResourceType.DATA_KEYVAULT_KEYS before 
ResourceType.DATA_KEYVAULT
+        ResourceType.DATA_KEYVAULT_CERTIFICATES: None,
         ResourceType.DATA_KEYVAULT_KEYS: None,
+        ResourceType.DATA_KEYVAULT_SECRETS: None,
+        ResourceType.DATA_KEYVAULT_ADMINISTRATION_SETTING: None,
         ResourceType.DATA_KEYVAULT: '7.0',
         ResourceType.DATA_PRIVATE_KEYVAULT: '7.2',
-        ResourceType.DATA_KEYVAULT_ADMINISTRATION_BACKUP: '7.2-preview',
-        ResourceType.DATA_KEYVAULT_ADMINISTRATION_ACCESS_CONTROL: 
'7.2-preview',
+        ResourceType.DATA_KEYVAULT_ADMINISTRATION_BACKUP: '7.4',
+        ResourceType.DATA_KEYVAULT_ADMINISTRATION_ACCESS_CONTROL: '7.4',
         ResourceType.DATA_STORAGE: '2018-11-09',
         ResourceType.DATA_STORAGE_BLOB: '2021-06-08',
         ResourceType.DATA_STORAGE_FILEDATALAKE: '2021-08-06',
@@ -252,7 +258,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('2023-02-01', {
+        ResourceType.MGMT_CONTAINERSERVICE: SDKProfile('2023-04-01', {
             'container_services': '2017-07-01',
             'open_shift_managed_clusters': '2019-09-30-preview'
         }),
@@ -291,7 +297,9 @@
         }),
         # The order does make things different.
         # Please keep ResourceType.DATA_KEYVAULT_KEYS before 
ResourceType.DATA_KEYVAULT
+        ResourceType.DATA_KEYVAULT_CERTIFICATES: None,
         ResourceType.DATA_KEYVAULT_KEYS: None,
+        ResourceType.DATA_KEYVAULT_SECRETS: None,
         ResourceType.DATA_KEYVAULT: '2016-10-01',
         ResourceType.DATA_STORAGE: '2018-11-09',
         ResourceType.DATA_STORAGE_BLOB: '2019-07-07',
@@ -336,7 +344,9 @@
         }),
         # The order does make things different.
         # Please keep ResourceType.DATA_KEYVAULT_KEYS before 
ResourceType.DATA_KEYVAULT
+        ResourceType.DATA_KEYVAULT_CERTIFICATES: None,
         ResourceType.DATA_KEYVAULT_KEYS: None,
+        ResourceType.DATA_KEYVAULT_SECRETS: None,
         ResourceType.DATA_KEYVAULT: '2016-10-01',
         ResourceType.DATA_STORAGE: '2017-11-09',
         ResourceType.DATA_STORAGE_BLOB: '2017-11-09',
@@ -373,7 +383,9 @@
         }),
         # The order does make things different.
         # Please keep ResourceType.DATA_KEYVAULT_KEYS before 
ResourceType.DATA_KEYVAULT
+        ResourceType.DATA_KEYVAULT_CERTIFICATES: None,
         ResourceType.DATA_KEYVAULT_KEYS: None,
+        ResourceType.DATA_KEYVAULT_SECRETS: None,
         ResourceType.DATA_KEYVAULT: '2016-10-01',
         ResourceType.DATA_STORAGE: '2017-04-17',
         ResourceType.DATA_STORAGE_BLOB: '2017-04-17',
@@ -402,7 +414,9 @@
         }),
         # The order does make things different.
         # Please keep ResourceType.DATA_KEYVAULT_KEYS before 
ResourceType.DATA_KEYVAULT
+        ResourceType.DATA_KEYVAULT_CERTIFICATES: None,
         ResourceType.DATA_KEYVAULT_KEYS: None,
+        ResourceType.DATA_KEYVAULT_SECRETS: None,
         ResourceType.DATA_KEYVAULT: '2016-10-01',
         ResourceType.DATA_STORAGE: '2015-04-05',
         ResourceType.DATA_STORAGE_BLOB: '2015-04-05',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-core-2.48.1/azure/cli/core/util.py 
new/azure-cli-core-2.49.0/azure/cli/core/util.py
--- old/azure-cli-core-2.48.1/azure/cli/core/util.py    2023-04-25 
06:21:03.000000000 +0200
+++ new/azure-cli-core-2.49.0/azure/cli/core/util.py    2023-05-19 
10:19:28.000000000 +0200
@@ -163,8 +163,7 @@
         az_error = azclierror.CLIInternalError(error_msg)
         az_error.set_exception_trace(ex)
         az_error.set_recommendation(
-            "To check existing issues, please visit: 
https://github.com/Azure/azure-cli/issues\n";
-            "To open a new issue, please run `az feedback`")
+            "To check existing issues, please visit: 
https://github.com/Azure/azure-cli/issues";)
 
     if isinstance(az_error, azclierror.ResourceNotFoundError):
         exit_code = 3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-core-2.48.1/azure_cli_core.egg-info/PKG-INFO 
new/azure-cli-core-2.49.0/azure_cli_core.egg-info/PKG-INFO
--- old/azure-cli-core-2.48.1/azure_cli_core.egg-info/PKG-INFO  2023-04-25 
06:21:41.000000000 +0200
+++ new/azure-cli-core-2.49.0/azure_cli_core.egg-info/PKG-INFO  2023-05-19 
10:19:44.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: azure-cli-core
-Version: 2.48.1
+Version: 2.49.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.48.1/setup.py 
new/azure-cli-core-2.49.0/setup.py
--- old/azure-cli-core-2.48.1/setup.py  2023-04-25 06:21:03.000000000 +0200
+++ new/azure-cli-core-2.49.0/setup.py  2023-05-19 10:19:28.000000000 +0200
@@ -8,7 +8,7 @@
 from codecs import open
 from setuptools import setup, find_packages
 
-VERSION = "2.48.1"
+VERSION = "2.49.0"
 
 # If we have source, validate that our version numbers match
 # This should prevent uploading releases with mismatched versions.

Reply via email to