Hello community,

here is the log from the commit of package azure-cli-configure for 
openSUSE:Factory checked in at 2018-02-14 09:30:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/azure-cli-configure (Old)
 and      /work/SRC/openSUSE:Factory/.azure-cli-configure.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "azure-cli-configure"

Wed Feb 14 09:30:22 2018 rev:2 rq:574802 version:2.0.13

Changes:
--------
--- /work/SRC/openSUSE:Factory/azure-cli-configure/azure-cli-configure.changes  
2017-11-10 14:53:15.269068520 +0100
+++ 
/work/SRC/openSUSE:Factory/.azure-cli-configure.new/azure-cli-configure.changes 
    2018-02-14 09:30:23.210165481 +0100
@@ -1,0 +2,9 @@
+Wed Feb  7 15:13:23 UTC 2018 - adrian.glaub...@suse.com
+
+- New upstream release
+  + Version 2.0.13
+  + For detailed information about changes see the
+    HISTORY.rst file provided with this package
+- Install HISTORY.rst into doc directory
+
+-------------------------------------------------------------------

Old:
----
  azure-cli-configure-2.0.11.tar.gz

New:
----
  azure-cli-configure-2.0.13.tar.gz

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

Other differences:
------------------
++++++ azure-cli-configure.spec ++++++
--- /var/tmp/diff_new_pack.A433YC/_old  2018-02-14 09:30:24.210129246 +0100
+++ /var/tmp/diff_new_pack.A433YC/_new  2018-02-14 09:30:24.214129101 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package azure-cli-configure
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,8 +15,9 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 Name:           azure-cli-configure
-Version:        2.0.11
+Version:        2.0.13
 Release:        0
 Summary:        Microsoft Azure CLI 'configure' Command Module
 License:        MIT
@@ -24,16 +25,16 @@
 Url:            https://github.com/Azure/azure-cli
 Source:         
https://files.pythonhosted.org/packages/source/a/azure-cli-configure/azure-cli-configure-%{version}.tar.gz
 Source1:        LICENSE.txt
-BuildRequires:  python3-devel
-BuildRequires:  python3-setuptools
-BuildRequires:  unzip
 BuildRequires:  azure-cli-command-modules-nspkg
 BuildRequires:  azure-cli-nspkg
 BuildRequires:  python3-azure-nspkg
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+BuildRequires:  unzip
 Requires:       azure-cli-command-modules-nspkg
+Requires:       azure-cli-core
 Requires:       azure-cli-nspkg
 Requires:       python3-azure-nspkg
-Requires:       azure-cli-core
 Conflicts:      azure-cli < 2.0.0
 
 BuildArch:      noarch
@@ -62,7 +63,8 @@
 
 %files
 %defattr(-,root,root,-)
-%doc LICENSE.txt README.rst
+%doc HISTORY.rst LICENSE.txt README.rst
 %{python3_sitelib}/azure/cli/command_modules/configure
 %{python3_sitelib}/azure_cli_configure-*.egg-info
+
 %changelog

++++++ azure-cli-configure-2.0.11.tar.gz -> azure-cli-configure-2.0.13.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-configure-2.0.11/HISTORY.rst 
new/azure-cli-configure-2.0.13/HISTORY.rst
--- old/azure-cli-configure-2.0.11/HISTORY.rst  2017-09-23 01:47:00.000000000 
+0200
+++ new/azure-cli-configure-2.0.13/HISTORY.rst  2018-01-05 22:11:35.000000000 
+0100
@@ -2,6 +2,15 @@
 
 Release History
 ===============
+
+2.0.13
+++++++
+* Update for CLI core changes.
+
+2.0.12
+++++++
+* minor fixes
+
 2.0.11 (2017-09-22)
 +++++++++++++++++++
 * minor fixes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-configure-2.0.11/PKG-INFO 
new/azure-cli-configure-2.0.13/PKG-INFO
--- old/azure-cli-configure-2.0.11/PKG-INFO     2017-09-23 01:49:42.000000000 
+0200
+++ new/azure-cli-configure-2.0.13/PKG-INFO     2018-01-05 22:12:17.000000000 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: azure-cli-configure
-Version: 2.0.11
+Version: 2.0.13
 Summary: Microsoft Azure Command-Line Tools Configure Command Module
 Home-page: https://github.com/Azure/azure-cli
 Author: Microsoft Corporation
@@ -18,6 +18,15 @@
         
         Release History
         ===============
+        
+        2.0.13
+        ++++++
+        * Update for CLI core changes.
+        
+        2.0.12
+        ++++++
+        * minor fixes
+        
         2.0.11 (2017-09-22)
         +++++++++++++++++++
         * minor fixes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-configure-2.0.11/azure/cli/command_modules/configure/__init__.py 
new/azure-cli-configure-2.0.13/azure/cli/command_modules/configure/__init__.py
--- 
old/azure-cli-configure-2.0.11/azure/cli/command_modules/configure/__init__.py  
    2017-09-23 01:47:00.000000000 +0200
+++ 
new/azure-cli-configure-2.0.13/azure/cli/command_modules/configure/__init__.py  
    2018-01-05 22:11:35.000000000 +0100
@@ -3,12 +3,30 @@
 # Licensed under the MIT License. See License.txt in the project root for 
license information.
 # 
--------------------------------------------------------------------------------------------
 
+from azure.cli.core import AzCommandsLoader
+from azure.cli.core.commands import CliCommandType
+
 import azure.cli.command_modules.configure._help  # pylint: 
disable=unused-import
 
 
-def load_params(_):
-    import azure.cli.command_modules.configure._params  # pylint: 
disable=redefined-outer-name, unused-variable
+class ConfigureCommandsLoader(AzCommandsLoader):
+
+    def __init__(self, cli_ctx=None):
+        super(ConfigureCommandsLoader, self).__init__(cli_ctx=cli_ctx)
+
+    def load_command_table(self, args):
+
+        configure_custom = 
CliCommandType(operations_tmpl='azure.cli.command_modules.configure.custom#{}')
+
+        with self.command_group('', configure_custom) as g:
+            g.command('configure', 'handle_configure')
+
+        return self.command_table
+
+    def load_arguments(self, command):
+
+        with self.argument_context('configure') as c:
+            c.argument('defaults', nargs='+', options_list=('--defaults', 
'-d'))
 
 
-def load_commands():
-    import azure.cli.command_modules.configure.commands  # pylint: 
disable=redefined-outer-name, unused-variable
+COMMAND_LOADER_CLS = ConfigureCommandsLoader
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-configure-2.0.11/azure/cli/command_modules/configure/_help.py 
new/azure-cli-configure-2.0.13/azure/cli/command_modules/configure/_help.py
--- old/azure-cli-configure-2.0.11/azure/cli/command_modules/configure/_help.py 
2017-09-23 01:47:00.000000000 +0200
+++ new/azure-cli-configure-2.0.13/azure/cli/command_modules/configure/_help.py 
2018-01-05 22:11:35.000000000 +0100
@@ -3,10 +3,19 @@
 # Licensed under the MIT License. See License.txt in the project root for 
license information.
 # 
--------------------------------------------------------------------------------------------
 
-from azure.cli.core.help_files import helps
+from knack.help_files import helps
 
 
 helps['configure'] = """
-        type: command
-        short-summary: Display and manage the Azure CLI 2.0 configuration. 
This command is interactive.
+    type: command
+    short-summary: Display and manage the Azure CLI 2.0 configuration. This 
command is interactive.
+    parameters:
+        - name: --defaults -d
+          short-summary: >
+            Space separated 'name=value' pairs for common argument defaults.
+    examples:
+        - name: Set default resource group, webapp and VM names.
+          text: az configure --defaults group=myRG web=myweb vm=myvm
+        - name: Clear default webapp and VM names.
+          text: az configure --defaults vm='' web=''
 """
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-configure-2.0.11/azure/cli/command_modules/configure/_params.py 
new/azure-cli-configure-2.0.13/azure/cli/command_modules/configure/_params.py
--- 
old/azure-cli-configure-2.0.11/azure/cli/command_modules/configure/_params.py   
    2017-09-23 01:47:00.000000000 +0200
+++ 
new/azure-cli-configure-2.0.13/azure/cli/command_modules/configure/_params.py   
    1970-01-01 01:00:00.000000000 +0100
@@ -1,10 +0,0 @@
-# 
--------------------------------------------------------------------------------------------
-# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the MIT License. See License.txt in the project root for 
license information.
-# 
--------------------------------------------------------------------------------------------
-
-from azure.cli.core.commands import register_cli_argument
-
-# pylint: disable=line-too-long
-register_cli_argument('configure', 'defaults', nargs='+', 
options_list=('--defaults', '-d'),
-                      help="space separated 'name=value' pairs for common 
arguments defaults, e.g. '--defaults group=myRG web=myweb vm=myvm'. Use '' to 
clear the defaults, e.g. --defaults vm='' web=''")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-configure-2.0.11/azure/cli/command_modules/configure/commands.py 
new/azure-cli-configure-2.0.13/azure/cli/command_modules/configure/commands.py
--- 
old/azure-cli-configure-2.0.11/azure/cli/command_modules/configure/commands.py  
    2017-09-23 01:47:00.000000000 +0200
+++ 
new/azure-cli-configure-2.0.13/azure/cli/command_modules/configure/commands.py  
    1970-01-01 01:00:00.000000000 +0100
@@ -1,8 +0,0 @@
-# 
--------------------------------------------------------------------------------------------
-# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the MIT License. See License.txt in the project root for 
license information.
-# 
--------------------------------------------------------------------------------------------
-
-from azure.cli.core.commands import cli_command
-
-cli_command(__name__, 'configure', 
'azure.cli.command_modules.configure.custom#handle_configure')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-configure-2.0.11/azure/cli/command_modules/configure/custom.py 
new/azure-cli-configure-2.0.13/azure/cli/command_modules/configure/custom.py
--- 
old/azure-cli-configure-2.0.11/azure/cli/command_modules/configure/custom.py    
    2017-09-23 01:47:00.000000000 +0200
+++ 
new/azure-cli-configure-2.0.13/azure/cli/command_modules/configure/custom.py    
    2018-01-05 22:11:35.000000000 +0100
@@ -7,15 +7,10 @@
 import os
 from six.moves import configparser
 
-import azure.cli.core.azlogging as azlogging
-from azure.cli.core._config import (GLOBAL_CONFIG_PATH, ENV_VAR_PREFIX, 
set_global_config,
-                                    set_global_config_value, DEFAULTS_SECTION, 
get_config_parser)
-from azure.cli.core.util import CLIError
-from azure.cli.core.prompting import (prompt,
-                                      prompt_y_n,
-                                      prompt_choice_list,
-                                      prompt_pass,
-                                      NoTTYException)
+from knack.log import get_logger
+from knack.prompting import prompt, prompt_y_n, prompt_choice_list, 
prompt_pass, NoTTYException
+from knack.util import CLIError
+
 from azure.cli.command_modules.configure._consts import (OUTPUT_LIST, 
LOGIN_METHOD_LIST,
                                                          MSG_INTRO,
                                                          MSG_CLOSING,
@@ -29,12 +24,13 @@
                                                          
MSG_PROMPT_FILE_LOGGING)
 from azure.cli.command_modules.configure._utils import get_default_from_config
 
-logger = azlogging.get_az_logger(__name__)
-
 answers = {}
 
+logger = get_logger(__name__)
+
 
 def _print_cur_configuration(file_config):
+    from azure.cli.core._config import ENV_VAR_PREFIX
     print(MSG_HEADING_CURRENT_CONFIG_INFO)
     for section in file_config.sections():
         print()
@@ -47,14 +43,14 @@
         print('\n'.join(['{} = {}'.format(ev, os.environ[ev]) for ev in 
env_vars]))
 
 
-def _config_env_public_azure(_):
+def _config_env_public_azure(cli_ctx, _):
     from adal.adal_error import AdalError
     from azure.cli.core.commands.client_factory import get_mgmt_service_client
     from azure.mgmt.resource import ResourceManagementClient
     from azure.cli.core._profile import Profile
     # Determine if user logged in
     try:
-        
list(get_mgmt_service_client(ResourceManagementClient).resources.list())
+        list(get_mgmt_service_client(cli_ctx, 
ResourceManagementClient).resources.list())
     except CLIError:
         # Not logged in
         login_successful = False
@@ -62,7 +58,7 @@
             method_index = prompt_choice_list(MSG_PROMPT_LOGIN, 
LOGIN_METHOD_LIST)
             answers['login_index'] = method_index
             answers['login_options'] = str(LOGIN_METHOD_LIST)
-            profile = Profile()
+            profile = Profile(cli_ctx=cli_ctx)
             interactive = False
             username = None
             password = None
@@ -94,14 +90,12 @@
                 logger.error(err)
 
 
-def _handle_global_configuration():
+def _handle_global_configuration(config):
     # print location of global configuration
-    print(MSG_GLOBAL_SETTINGS_LOCATION.format(GLOBAL_CONFIG_PATH))
+    print(MSG_GLOBAL_SETTINGS_LOCATION.format(config.config_path))
     # set up the config parsers
-    file_config = get_config_parser()
-    config_exists = file_config.read([GLOBAL_CONFIG_PATH])
-    global_config = get_config_parser()
-    global_config.read(GLOBAL_CONFIG_PATH)
+    file_config = config.config_parser
+    config_exists = file_config.read([config.config_path])
     should_modify_global_config = False
     if config_exists:
         # print current config and prompt to allow global config modification
@@ -111,7 +105,7 @@
     if not config_exists or should_modify_global_config:
         # no config exists yet so configure global config or user wants to 
modify global config
         output_index = prompt_choice_list(MSG_PROMPT_GLOBAL_OUTPUT, 
OUTPUT_LIST,
-                                          
default=get_default_from_config(global_config,
+                                          
default=get_default_from_config(config.config_parser,
                                                                           
'core', 'output',
                                                                           
OUTPUT_LIST))
         answers['output_type_prompt'] = output_index
@@ -121,32 +115,32 @@
         answers['telemetry_prompt'] = allow_telemetry
         # save the global config
         try:
-            global_config.add_section('core')
+            config.config_parser.add_section('core')
         except configparser.DuplicateSectionError:
             pass
         try:
-            global_config.add_section('logging')
+            config.config_parser.add_section('logging')
         except configparser.DuplicateSectionError:
             pass
-        global_config.set('core', 'output', OUTPUT_LIST[output_index]['name'])
-        global_config.set('core', 'collect_telemetry', 'yes' if 
allow_telemetry else 'no')
-        global_config.set('logging', 'enable_log_file', 'yes' if 
enable_file_logging else 'no')
-        set_global_config(global_config)
+        config.set_value('core', 'output', OUTPUT_LIST[output_index]['name'])
+        config.set_value('core', 'collect_telemetry', 'yes' if allow_telemetry 
else 'no')
+        config.set_value('logging', 'enable_log_file', 'yes' if 
enable_file_logging else 'no')
 
 
-def handle_configure(defaults=None):
+def handle_configure(cmd, defaults=None):
     if defaults:
+        from azure.cli.core._config import DEFAULTS_SECTION
         for default in defaults:
             parts = default.split('=', 1)
             if len(parts) == 1:
                 raise CLIError('usage error: --defaults STRING=STRING 
STRING=STRING ...')
-            set_global_config_value(DEFAULTS_SECTION, parts[0], 
_normalize_config_value(parts[1]))
+            cmd.cli_ctx.config.set_value(DEFAULTS_SECTION, parts[0], 
_normalize_config_value(parts[1]))
         return
 
     # if nothing supplied, we go interactively
     try:
         print(MSG_INTRO)
-        _handle_global_configuration()
+        _handle_global_configuration(cmd.cli_ctx.config)
         print(MSG_CLOSING)
         # TODO: log_telemetry('configure', **answers)
     except NoTTYException:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-configure-2.0.11/azure_cli_configure.egg-info/PKG-INFO 
new/azure-cli-configure-2.0.13/azure_cli_configure.egg-info/PKG-INFO
--- old/azure-cli-configure-2.0.11/azure_cli_configure.egg-info/PKG-INFO        
2017-09-23 01:49:42.000000000 +0200
+++ new/azure-cli-configure-2.0.13/azure_cli_configure.egg-info/PKG-INFO        
2018-01-05 22:12:17.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: azure-cli-configure
-Version: 2.0.11
+Version: 2.0.13
 Summary: Microsoft Azure Command-Line Tools Configure Command Module
 Home-page: https://github.com/Azure/azure-cli
 Author: Microsoft Corporation
@@ -18,6 +18,15 @@
         
         Release History
         ===============
+        
+        2.0.13
+        ++++++
+        * Update for CLI core changes.
+        
+        2.0.12
+        ++++++
+        * minor fixes
+        
         2.0.11 (2017-09-22)
         +++++++++++++++++++
         * minor fixes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-configure-2.0.11/azure_cli_configure.egg-info/SOURCES.txt 
new/azure-cli-configure-2.0.13/azure_cli_configure.egg-info/SOURCES.txt
--- old/azure-cli-configure-2.0.11/azure_cli_configure.egg-info/SOURCES.txt     
2017-09-23 01:49:42.000000000 +0200
+++ new/azure-cli-configure-2.0.13/azure_cli_configure.egg-info/SOURCES.txt     
2018-01-05 22:12:17.000000000 +0100
@@ -9,9 +9,7 @@
 azure/cli/command_modules/configure/__init__.py
 azure/cli/command_modules/configure/_consts.py
 azure/cli/command_modules/configure/_help.py
-azure/cli/command_modules/configure/_params.py
 azure/cli/command_modules/configure/_utils.py
-azure/cli/command_modules/configure/commands.py
 azure/cli/command_modules/configure/custom.py
 azure_cli_configure.egg-info/PKG-INFO
 azure_cli_configure.egg-info/SOURCES.txt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-configure-2.0.11/azure_cli_configure.egg-info/requires.txt 
new/azure-cli-configure-2.0.13/azure_cli_configure.egg-info/requires.txt
--- old/azure-cli-configure-2.0.11/azure_cli_configure.egg-info/requires.txt    
2017-09-23 01:49:42.000000000 +0200
+++ new/azure-cli-configure-2.0.13/azure_cli_configure.egg-info/requires.txt    
2018-01-05 22:12:17.000000000 +0100
@@ -1,2 +1 @@
 azure-cli-core
-azure-cli-command-modules-nspkg>=2.0.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-configure-2.0.11/setup.py 
new/azure-cli-configure-2.0.13/setup.py
--- old/azure-cli-configure-2.0.11/setup.py     2017-09-23 01:49:42.000000000 
+0200
+++ new/azure-cli-configure-2.0.13/setup.py     2018-01-05 22:11:35.000000000 
+0100
@@ -15,7 +15,7 @@
     cmdclass = {}
 
 
-VERSION = "2.0.11"
+VERSION = "2.0.13"
 CLASSIFIERS = [
     'Development Status :: 5 - Production/Stable',
     'Intended Audience :: Developers',


Reply via email to