Hello community,

here is the log from the commit of package azure-cli-extension for 
openSUSE:Factory checked in at 2018-10-15 10:48:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/azure-cli-extension (Old)
 and      /work/SRC/openSUSE:Factory/.azure-cli-extension.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "azure-cli-extension"

Mon Oct 15 10:48:04 2018 rev:4 rq:641231 version:0.2.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/azure-cli-extension/azure-cli-extension.changes  
2018-05-13 16:02:23.900169305 +0200
+++ 
/work/SRC/openSUSE:Factory/.azure-cli-extension.new/azure-cli-extension.changes 
    2018-10-15 10:48:06.691090754 +0200
@@ -1,0 +2,9 @@
+Mon Sep 17 10:24:12 UTC 2018 - John Paul Adrian Glaubitz 
<[email protected]>
+
+- New upstream release
+  + Version 0.2.1
+  + For detailed information about changes see the
+    HISTORY.txt file provided with this package
+- Update Requires from setup.py
+
+-------------------------------------------------------------------

Old:
----
  azure-cli-extension-0.0.12.tar.gz

New:
----
  azure-cli-extension-0.2.1.tar.gz

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

Other differences:
------------------
++++++ azure-cli-extension.spec ++++++
--- /var/tmp/diff_new_pack.1teW9l/_old  2018-10-15 10:48:07.667089712 +0200
+++ /var/tmp/diff_new_pack.1teW9l/_new  2018-10-15 10:48:07.671089707 +0200
@@ -12,12 +12,12 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           azure-cli-extension
-Version:        0.0.12
+Version:        0.2.1
 Release:        0
 Summary:        Microsoft Azure CLI 'extension' Command Module
 License:        MIT
@@ -36,7 +36,7 @@
 Requires:       azure-cli-nspkg
 Requires:       python3-azure-nspkg
 Requires:       python3-pip
-Requires:       python3-wheel
+Requires:       python3-wheel >= 0.30.0
 Conflicts:      azure-cli < 2.0.0
 
 BuildArch:      noarch

++++++ azure-cli-extension-0.0.12.tar.gz -> azure-cli-extension-0.2.1.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-extension-0.0.12/HISTORY.rst 
new/azure-cli-extension-0.2.1/HISTORY.rst
--- old/azure-cli-extension-0.0.12/HISTORY.rst  2018-04-06 19:33:13.000000000 
+0200
+++ new/azure-cli-extension-0.2.1/HISTORY.rst   2018-07-26 19:30:50.000000000 
+0200
@@ -3,6 +3,30 @@
 Release History
 ===============
 
+0.2.1
++++++
+* Fix index url failing requests.
+
+0.2.0
++++++
+* BREAKING CHANGE: 'show' commands log error message and fail with exit code 
of 3 upon a missing resource.
+
+0.1.0
++++++
+* `extension list-available` will only show extensions compatible with CLI 
version.
+
+0.0.15
+++++++
+* Minor fixes
+
+0.0.14
+++++++
+* Be more resilient to system error when removing an extension.
+
+0.0.13
+++++++
+* Pin version of `wheel` so extensions can get metadata shown again.
+
 0.0.12
 ++++++
 * Linux distro check message should be output to debug instead of warning.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-extension-0.0.12/PKG-INFO 
new/azure-cli-extension-0.2.1/PKG-INFO
--- old/azure-cli-extension-0.0.12/PKG-INFO     2018-04-06 19:33:38.000000000 
+0200
+++ new/azure-cli-extension-0.2.1/PKG-INFO      2018-07-26 19:31:58.000000000 
+0200
@@ -1,12 +1,11 @@
 Metadata-Version: 1.1
 Name: azure-cli-extension
-Version: 0.0.12
+Version: 0.2.1
 Summary: Microsoft Azure Command-Line Tools Extension Command Module
 Home-page: https://github.com/Azure/azure-cli
 Author: Microsoft Corporation
 Author-email: [email protected]
 License: MIT
-Description-Content-Type: UNKNOWN
 Description: Microsoft Azure CLI 'extension' Command Module
         ==============================================
         
@@ -21,6 +20,30 @@
         Release History
         ===============
         
+        0.2.1
+        +++++
+        * Fix index url failing requests.
+        
+        0.2.0
+        +++++
+        * BREAKING CHANGE: 'show' commands log error message and fail with 
exit code of 3 upon a missing resource.
+        
+        0.1.0
+        +++++
+        * `extension list-available` will only show extensions compatible with 
CLI version.
+        
+        0.0.15
+        ++++++
+        * Minor fixes
+        
+        0.0.14
+        ++++++
+        * Be more resilient to system error when removing an extension.
+        
+        0.0.13
+        ++++++
+        * Pin version of `wheel` so extensions can get metadata shown again.
+        
         0.0.12
         ++++++
         * Linux distro check message should be output to debug instead of 
warning.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-extension-0.0.12/azure/cli/command_modules/extension/__init__.py 
new/azure-cli-extension-0.2.1/azure/cli/command_modules/extension/__init__.py
--- 
old/azure-cli-extension-0.0.12/azure/cli/command_modules/extension/__init__.py  
    2018-04-06 19:33:13.000000000 +0200
+++ 
new/azure-cli-extension-0.2.1/azure/cli/command_modules/extension/__init__.py   
    2018-07-26 19:30:50.000000000 +0200
@@ -42,7 +42,7 @@
             g.command('add', 'add_extension', 
confirmation=ext_add_has_confirmed, validator=validate_extension_add)
             g.command('remove', 'remove_extension')
             g.command('list', 'list_extensions')
-            g.command('show', 'show_extension')
+            g.show_command('show', 'show_extension')
             g.command('list-available', 'list_available_extensions', 
table_transformer=transform_extension_list_available)
             g.command('update', 'update_extension')
 
@@ -61,9 +61,9 @@
             c.argument('pip_proxy', options_list=['--pip-proxy'],
                        help='Proxy for pip to use for extension dependencies 
in the form of [user:passwd@]proxy.server:port',
                        arg_group='Experimental Pip')
-
             c.argument('pip_extra_index_urls', 
options_list=['--pip-extra-index-urls'], nargs='+',
                        help='Space-separated list of extra URLs of package 
indexes to use. This should point to a repository compliant with PEP 503 (the 
simple repository API) or a local directory laid out in the same format.', 
arg_group='Experimental Pip')
+            c.ignore('_subscription')  # hide global subscription param
 
         with self.argument_context('extension add') as c:
             c.argument('extension_name', 
completer=extension_name_from_index_completion_list)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-extension-0.0.12/azure/cli/command_modules/extension/_help.py 
new/azure-cli-extension-0.2.1/azure/cli/command_modules/extension/_help.py
--- old/azure-cli-extension-0.0.12/azure/cli/command_modules/extension/_help.py 
2018-04-06 19:33:13.000000000 +0200
+++ new/azure-cli-extension-0.2.1/azure/cli/command_modules/extension/_help.py  
2018-07-26 19:30:50.000000000 +0200
@@ -1,3 +1,4 @@
+# coding=utf-8
 # 
--------------------------------------------------------------------------------------------
 # Copyright (c) Microsoft Corporation. All rights reserved.
 # Licensed under the MIT License. See License.txt in the project root for 
license information.
@@ -37,7 +38,7 @@
     - name: List all publicly available extensions
       text: az extension list-available
     - name: List details on a particular extension
-      text: az extension list-available --query anextension
+      text: az extension list-available --show-details --query anextension
 """
 
 helps['extension show'] = """
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-extension-0.0.12/azure/cli/command_modules/extension/_index.py 
new/azure-cli-extension-0.2.1/azure/cli/command_modules/extension/_index.py
--- 
old/azure-cli-extension-0.0.12/azure/cli/command_modules/extension/_index.py    
    2018-04-06 19:33:13.000000000 +0200
+++ new/azure-cli-extension-0.2.1/azure/cli/command_modules/extension/_index.py 
2018-07-26 19:30:50.000000000 +0200
@@ -17,25 +17,32 @@
 ERR_TMPL_BAD_JSON = '{}Response body does not contain valid json. Error 
detail: {{}}'.format(ERR_TMPL_EXT_INDEX)
 
 ERR_UNABLE_TO_GET_EXTENSIONS = 'Unable to get extensions from index. Improper 
index format.'
+TRIES = 3
 
 
 # pylint: disable=inconsistent-return-statements
 def get_index(index_url=None):
     from azure.cli.core.util import should_disable_connection_verify
     index_url = index_url or DEFAULT_INDEX_URL
-    try:
-        response = requests.get(index_url, verify=(not 
should_disable_connection_verify()))
-        if response.status_code == 200:
-            return response.json()
-        else:
+
+    for try_number in range(TRIES):
+        try:
+            response = requests.get(index_url, verify=(not 
should_disable_connection_verify()))
+            if response.status_code == 200:
+                return response.json()
             msg = ERR_TMPL_NON_200.format(response.status_code, index_url)
             raise CLIError(msg)
-    except (requests.exceptions.ConnectionError, 
requests.exceptions.HTTPError) as err:
-        msg = ERR_TMPL_NO_NETWORK.format(str(err))
-        raise CLIError(msg)
-    except ValueError as err:
-        msg = ERR_TMPL_BAD_JSON.format(str(err))
-        raise CLIError(msg)
+        except (requests.exceptions.ConnectionError, 
requests.exceptions.HTTPError) as err:
+            msg = ERR_TMPL_NO_NETWORK.format(str(err))
+            raise CLIError(msg)
+        except ValueError as err:
+            # Indicates that url is not redirecting properly to intended index 
url, we stop retrying after TRIES calls
+            if try_number == TRIES - 1:
+                msg = ERR_TMPL_BAD_JSON.format(str(err))
+                raise CLIError(msg)
+            import time
+            time.sleep(0.5)
+            continue
 
 
 def get_index_extensions(index_url=None):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-extension-0.0.12/azure/cli/command_modules/extension/custom.py 
new/azure-cli-extension-0.2.1/azure/cli/command_modules/extension/custom.py
--- 
old/azure-cli-extension-0.0.12/azure/cli/command_modules/extension/custom.py    
    2018-04-06 19:33:13.000000000 +0200
+++ new/azure-cli-extension-0.2.1/azure/cli/command_modules/extension/custom.py 
2018-07-26 19:30:50.000000000 +0200
@@ -211,12 +211,16 @@
 
 
 def remove_extension(extension_name):
+    def log_err(func, path, exc_info):
+        logger.debug("Error occurred attempting to delete item from the 
extension '%s'.", extension_name)
+        logger.debug("%s: %s - %s", func, path, exc_info)
+
     try:
         # Get the extension and it will raise an error if it doesn't exist
         get_extension(extension_name)
         # We call this just before we remove the extension so we can get the 
metadata before it is gone
         _augment_telemetry_with_ext_info(extension_name)
-        shutil.rmtree(get_extension_path(extension_name))
+        shutil.rmtree(get_extension_path(extension_name), onerror=log_err)
     except ExtensionNotInstalledException as e:
         raise CLIError(e)
 
@@ -279,7 +283,12 @@
     installed_extension_names = [e.name for e in installed_extensions]
     results = []
     for name, items in OrderedDict(sorted(index_data.items())).items():
-        latest = sorted(items, key=lambda c: 
parse_version(c['metadata']['version']), reverse=True)[0]
+        # exclude extensions/versions incompatible with current CLI version
+        items = [item for item in items if 
ext_compat_with_cli(item['metadata'])[0]]
+        if not items:
+            continue
+
+        latest = max(items, key=lambda c: 
parse_version(c['metadata']['version']))
         installed = False
         if name in installed_extension_names:
             installed = True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-extension-0.0.12/azure_cli_extension.egg-info/PKG-INFO 
new/azure-cli-extension-0.2.1/azure_cli_extension.egg-info/PKG-INFO
--- old/azure-cli-extension-0.0.12/azure_cli_extension.egg-info/PKG-INFO        
2018-04-06 19:33:38.000000000 +0200
+++ new/azure-cli-extension-0.2.1/azure_cli_extension.egg-info/PKG-INFO 
2018-07-26 19:31:58.000000000 +0200
@@ -1,12 +1,11 @@
 Metadata-Version: 1.1
 Name: azure-cli-extension
-Version: 0.0.12
+Version: 0.2.1
 Summary: Microsoft Azure Command-Line Tools Extension Command Module
 Home-page: https://github.com/Azure/azure-cli
 Author: Microsoft Corporation
 Author-email: [email protected]
 License: MIT
-Description-Content-Type: UNKNOWN
 Description: Microsoft Azure CLI 'extension' Command Module
         ==============================================
         
@@ -21,6 +20,30 @@
         Release History
         ===============
         
+        0.2.1
+        +++++
+        * Fix index url failing requests.
+        
+        0.2.0
+        +++++
+        * BREAKING CHANGE: 'show' commands log error message and fail with 
exit code of 3 upon a missing resource.
+        
+        0.1.0
+        +++++
+        * `extension list-available` will only show extensions compatible with 
CLI version.
+        
+        0.0.15
+        ++++++
+        * Minor fixes
+        
+        0.0.14
+        ++++++
+        * Be more resilient to system error when removing an extension.
+        
+        0.0.13
+        ++++++
+        * Pin version of `wheel` so extensions can get metadata shown again.
+        
         0.0.12
         ++++++
         * Linux distro check message should be output to debug instead of 
warning.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-extension-0.0.12/azure_cli_extension.egg-info/requires.txt 
new/azure-cli-extension-0.2.1/azure_cli_extension.egg-info/requires.txt
--- old/azure-cli-extension-0.0.12/azure_cli_extension.egg-info/requires.txt    
2018-04-06 19:33:38.000000000 +0200
+++ new/azure-cli-extension-0.2.1/azure_cli_extension.egg-info/requires.txt     
2018-07-26 19:31:58.000000000 +0200
@@ -1,3 +1,3 @@
 azure-cli-core
 pip
-wheel
+wheel==0.30.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-extension-0.0.12/setup.py 
new/azure-cli-extension-0.2.1/setup.py
--- old/azure-cli-extension-0.0.12/setup.py     2018-04-06 19:33:13.000000000 
+0200
+++ new/azure-cli-extension-0.2.1/setup.py      2018-07-26 19:30:50.000000000 
+0200
@@ -14,7 +14,7 @@
     logger.warn("Wheel is not available, disabling bdist_wheel hook")
     cmdclass = {}
 
-VERSION = "0.0.12"
+VERSION = "0.2.1"
 
 CLASSIFIERS = [
     'Development Status :: 5 - Production/Stable',
@@ -33,7 +33,7 @@
 DEPENDENCIES = [
     'azure-cli-core',
     'pip',
-    'wheel',
+    'wheel==0.30.0',
 ]
 
 with open('README.rst', 'r', encoding='utf-8') as f:


Reply via email to