Hello community, here is the log from the commit of package azure-cli-profile for openSUSE:Factory checked in at 2018-10-15 10:45:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/azure-cli-profile (Old) and /work/SRC/openSUSE:Factory/.azure-cli-profile.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "azure-cli-profile" Mon Oct 15 10:45:31 2018 rev:4 rq:641114 version:2.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/azure-cli-profile/azure-cli-profile.changes 2018-05-13 16:02:57.750934298 +0200 +++ /work/SRC/openSUSE:Factory/.azure-cli-profile.new/azure-cli-profile.changes 2018-10-15 10:45:33.251254708 +0200 @@ -1,0 +2,9 @@ +Mon Sep 17 13:18:23 UTC 2018 - John Paul Adrian Glaubitz <[email protected]> + +- New upstream release + + Version 2.1.1 + + For detailed information about changes see the + HISTORY.txt file provided with this package +- Update Requires from setup.py + +------------------------------------------------------------------- Old: ---- azure-cli-profile-2.0.22.tar.gz New: ---- azure-cli-profile-2.1.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ azure-cli-profile.spec ++++++ --- /var/tmp/diff_new_pack.C3Qwg1/_old 2018-10-15 10:45:35.819251962 +0200 +++ /var/tmp/diff_new_pack.C3Qwg1/_new 2018-10-15 10:45:35.827251953 +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-profile -Version: 2.0.22 +Version: 2.1.1 Release: 0 Summary: Microsoft Azure CLI 'profile' Command Module License: MIT @@ -34,7 +34,6 @@ Requires: azure-cli-command-modules-nspkg Requires: azure-cli-core Requires: azure-cli-nspkg -Requires: python3-adal >= 0.4.7 Requires: python3-azure-nspkg Conflicts: azure-cli < 2.0.0 ++++++ azure-cli-profile-2.0.22.tar.gz -> azure-cli-profile-2.1.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-profile-2.0.22/HISTORY.rst new/azure-cli-profile-2.1.1/HISTORY.rst --- old/azure-cli-profile-2.0.22/HISTORY.rst 2018-04-06 19:33:13.000000000 +0200 +++ new/azure-cli-profile-2.1.1/HISTORY.rst 2018-07-26 19:30:51.000000000 +0200 @@ -2,6 +2,36 @@ Release History =============== + +2.1.1 +++++++ +* Moving _load_subscriptions into the core + +2.1.0 +++++++ +* BREAKING CHANGE: 'show' commands log error message and fail with exit code of 3 upon a missing resource. + +2.0.27 +++++++ +* login: use browser for interactive login + +2.0.26 +++++++ +* Minor fixes + +2.0.25 +++++++ +* Minor fixes + +2.0.24 +++++++ +* `disk create`: fix a bug that source detection is not accurate +* BREAKING CHANGE: remove --msi-port/--identity-port as they are no longer used + +2.0.23 +++++++ +* Fix typo in `az account get-access-token` short summary. + 2.0.22 ++++++ * account list: handle accounts which come from CLI 1.0/ASM mode diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-profile-2.0.22/PKG-INFO new/azure-cli-profile-2.1.1/PKG-INFO --- old/azure-cli-profile-2.0.22/PKG-INFO 2018-04-06 19:33:53.000000000 +0200 +++ new/azure-cli-profile-2.1.1/PKG-INFO 2018-07-26 19:32:50.000000000 +0200 @@ -1,12 +1,11 @@ Metadata-Version: 1.1 Name: azure-cli-profile -Version: 2.0.22 +Version: 2.1.1 Summary: Microsoft Azure Command-Line Tools Profile 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 'profile' Command Module ============================================ @@ -22,6 +21,36 @@ Release History =============== + + 2.1.1 + ++++++ + * Moving _load_subscriptions into the core + + 2.1.0 + ++++++ + * BREAKING CHANGE: 'show' commands log error message and fail with exit code of 3 upon a missing resource. + + 2.0.27 + ++++++ + * login: use browser for interactive login + + 2.0.26 + ++++++ + * Minor fixes + + 2.0.25 + ++++++ + * Minor fixes + + 2.0.24 + ++++++ + * `disk create`: fix a bug that source detection is not accurate + * BREAKING CHANGE: remove --msi-port/--identity-port as they are no longer used + + 2.0.23 + ++++++ + * Fix typo in `az account get-access-token` short summary. + 2.0.22 ++++++ * account list: handle accounts which come from CLI 1.0/ASM mode diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-profile-2.0.22/azure/cli/command_modules/profile/__init__.py new/azure-cli-profile-2.1.1/azure/cli/command_modules/profile/__init__.py --- old/azure-cli-profile-2.0.22/azure/cli/command_modules/profile/__init__.py 2018-04-06 19:33:13.000000000 +0200 +++ new/azure-cli-profile-2.1.1/azure/cli/command_modules/profile/__init__.py 2018-07-26 19:30:51.000000000 +0200 @@ -6,7 +6,6 @@ from azure.cli.core import AzCommandsLoader from azure.cli.core.commands import CliCommandType -from azure.cli.command_modules.profile._completers import get_subscription_id_list from azure.cli.command_modules.profile._format import transform_account_list import azure.cli.command_modules.profile._help # pylint: disable=unused-import @@ -29,7 +28,7 @@ with self.command_group('account', profile_custom) as g: g.command('list', 'list_subscriptions', table_transformer=transform_account_list) g.command('set', 'set_active_subscription') - g.command('show', 'show_subscription') + g.show_command('show', 'show_subscription') g.command('clear', 'account_clear') g.command('list-locations', 'list_locations') g.command('get-access-token', 'get_access_token') @@ -38,28 +37,33 @@ # pylint: disable=line-too-long def load_arguments(self, command): + from azure.cli.core.api import get_subscription_id_list with self.argument_context('login') as c: - c.argument('password', options_list=('--password', '-p'), help="Credentials like user password, or for a service principal, provide client secret or a pem file with key and public certificate. Will prompt if not given.") + c.argument('password', options_list=['--password', '-p'], help="Credentials like user password, or for a service principal, provide client secret or a pem file with key and public certificate. Will prompt if not given.") c.argument('service_principal', action='store_true', help='The credential representing a service principal.') - c.argument('username', options_list=('--username', '-u'), help='user name, service principal, or managed service identity ID') - c.argument('tenant', options_list=('--tenant', '-t'), help='The AAD tenant, must provide when using service principals.') + c.argument('username', options_list=['--username', '-u'], help='user name, service principal, or managed service identity ID') + c.argument('tenant', options_list=['--tenant', '-t'], help='The AAD tenant, must provide when using service principals.') c.argument('allow_no_subscriptions', action='store_true', help="Support access tenants without subscriptions. It's uncommon but useful to run tenant level commands, such as 'az ad'") + c.ignore('_subscription') # hide the global subscription parameter c.argument('identity', options_list=('-i', '--identity'), action='store_true', help="Log in using the Virtual Machine's identity", arg_group='Managed Service Identity') c.argument('identity_port', type=int, help="the port to retrieve tokens for login. Default: 50342", arg_group='Managed Service Identity') + c.argument('use_device_code', action='store_true', + help="Use CLI's old authentication flow based on device code. CLI will also use this if it can't launch a browser in your behalf, e.g. in remote SSH or Cloud Shell") with self.argument_context('logout') as c: c.argument('username', help='account user, if missing, logout the current active account') with self.argument_context('account') as c: - c.argument('subscription', options_list=('--subscription', '-s'), help='Name or ID of subscription.', completer=get_subscription_id_list) + c.argument('subscription', options_list=['--subscription', '-s'], arg_group='', help='Name or ID of subscription.', completer=get_subscription_id_list) with self.argument_context('account list') as c: c.argument('all', help="List all subscriptions, rather just 'Enabled' ones", action='store_true') c.argument('refresh', help="retrieve up-to-date subscriptions from server", action='store_true') + c.ignore('_subscription') # hide the global subscription parameter with self.argument_context('account show') as c: - c.argument('show_auth_for_sdk', options_list=('--sdk-auth',), action='store_true', help='output result in compatible with Azure SDK auth file') + c.argument('show_auth_for_sdk', options_list=['--sdk-auth'], action='store_true', help='output result in compatible with Azure SDK auth file') COMMAND_LOADER_CLS = ProfileCommandsLoader diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-profile-2.0.22/azure/cli/command_modules/profile/_completers.py new/azure-cli-profile-2.1.1/azure/cli/command_modules/profile/_completers.py --- old/azure-cli-profile-2.0.22/azure/cli/command_modules/profile/_completers.py 2018-04-06 19:33:13.000000000 +0200 +++ new/azure-cli-profile-2.1.1/azure/cli/command_modules/profile/_completers.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,18 +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.decorators import Completer - -from azure.cli.command_modules.profile.custom import _load_subscriptions - - -@Completer -def get_subscription_id_list(cmd, prefix, namespace, **kwargs): # pylint: disable=unused-argument - subscriptions = _load_subscriptions(cmd.cli_ctx) - result = [] - for subscription in subscriptions: - result.append(subscription['id']) - result.append(subscription['name']) - return result diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-profile-2.0.22/azure/cli/command_modules/profile/_help.py new/azure-cli-profile-2.1.1/azure/cli/command_modules/profile/_help.py --- old/azure-cli-profile-2.0.22/azure/cli/command_modules/profile/_help.py 2018-04-06 19:33:13.000000000 +0200 +++ new/azure-cli-profile-2.1.1/azure/cli/command_modules/profile/_help.py 2018-07-26 19:30:51.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. @@ -70,7 +71,7 @@ helps['account get-access-token'] = """ type: command - short-summary: Get a token for utlilities to access Azure. + short-summary: Get a token for utilities to access Azure. long-summary: > The token will be valid for at least 5 minutes with the maximum at 60 minutes. If the subscription argument isn't specified, the current account is used. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-profile-2.0.22/azure/cli/command_modules/profile/custom.py new/azure-cli-profile-2.1.1/azure/cli/command_modules/profile/custom.py --- old/azure-cli-profile-2.0.22/azure/cli/command_modules/profile/custom.py 2018-04-06 19:33:13.000000000 +0200 +++ new/azure-cli-profile-2.1.1/azure/cli/command_modules/profile/custom.py 2018-07-26 19:30:51.000000000 +0200 @@ -21,17 +21,11 @@ " Run 'az login' only if you need to use a different account") -def _load_subscriptions(cli_ctx, all_clouds=False, refresh=False): - profile = Profile(cli_ctx=cli_ctx) - if refresh: - subscriptions = profile.refresh_accounts() - subscriptions = profile.load_cached_subscriptions(all_clouds) - return subscriptions - - def list_subscriptions(cmd, all=False, refresh=False): # pylint: disable=redefined-builtin """List the imported subscriptions.""" - subscriptions = _load_subscriptions(cmd.cli_ctx, all_clouds=all, refresh=refresh) + from azure.cli.core.api import load_subscriptions + + subscriptions = load_subscriptions(cmd.cli_ctx, all_clouds=all, refresh=refresh) if not subscriptions: logger.warning('Please run "az login" to access your accounts.') for sub in subscriptions: @@ -92,18 +86,16 @@ # pylint: disable=inconsistent-return-statements def login(cmd, username=None, password=None, service_principal=None, tenant=None, allow_no_subscriptions=False, - identity=False, identity_port=None): + identity=False, use_device_code=False): """Log in to access Azure subscriptions""" from adal.adal_error import AdalError import requests # quick argument usage check - if (any([password, service_principal, tenant, allow_no_subscriptions]) and identity): + if any([password, service_principal, tenant, allow_no_subscriptions]) and identity: raise CLIError("usage error: '--identity' is not applicable with other arguments") - - if identity_port: - logger.warning("'--identity-port' is no longer required to login using managed identity." - " This flag will be removed in a future release of CLI.") + if any([password, service_principal, username, identity]) and use_device_code: + raise CLIError("usage error: '--use-device-code' is not applicable with other arguments") interactive = False @@ -132,6 +124,7 @@ password, service_principal, tenant, + use_device_code=use_device_code, allow_no_subscriptions=allow_no_subscriptions) except AdalError as err: # try polish unfriendly server errors diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-profile-2.0.22/azure_cli_profile.egg-info/PKG-INFO new/azure-cli-profile-2.1.1/azure_cli_profile.egg-info/PKG-INFO --- old/azure-cli-profile-2.0.22/azure_cli_profile.egg-info/PKG-INFO 2018-04-06 19:33:53.000000000 +0200 +++ new/azure-cli-profile-2.1.1/azure_cli_profile.egg-info/PKG-INFO 2018-07-26 19:32:49.000000000 +0200 @@ -1,12 +1,11 @@ Metadata-Version: 1.1 Name: azure-cli-profile -Version: 2.0.22 +Version: 2.1.1 Summary: Microsoft Azure Command-Line Tools Profile 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 'profile' Command Module ============================================ @@ -22,6 +21,36 @@ Release History =============== + + 2.1.1 + ++++++ + * Moving _load_subscriptions into the core + + 2.1.0 + ++++++ + * BREAKING CHANGE: 'show' commands log error message and fail with exit code of 3 upon a missing resource. + + 2.0.27 + ++++++ + * login: use browser for interactive login + + 2.0.26 + ++++++ + * Minor fixes + + 2.0.25 + ++++++ + * Minor fixes + + 2.0.24 + ++++++ + * `disk create`: fix a bug that source detection is not accurate + * BREAKING CHANGE: remove --msi-port/--identity-port as they are no longer used + + 2.0.23 + ++++++ + * Fix typo in `az account get-access-token` short summary. + 2.0.22 ++++++ * account list: handle accounts which come from CLI 1.0/ASM mode diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-profile-2.0.22/azure_cli_profile.egg-info/SOURCES.txt new/azure-cli-profile-2.1.1/azure_cli_profile.egg-info/SOURCES.txt --- old/azure-cli-profile-2.0.22/azure_cli_profile.egg-info/SOURCES.txt 2018-04-06 19:33:53.000000000 +0200 +++ new/azure-cli-profile-2.1.1/azure_cli_profile.egg-info/SOURCES.txt 2018-07-26 19:32:50.000000000 +0200 @@ -7,7 +7,6 @@ azure/cli/__init__.py azure/cli/command_modules/__init__.py azure/cli/command_modules/profile/__init__.py -azure/cli/command_modules/profile/_completers.py azure/cli/command_modules/profile/_format.py azure/cli/command_modules/profile/_help.py azure/cli/command_modules/profile/custom.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-profile-2.0.22/azure_cli_profile.egg-info/requires.txt new/azure-cli-profile-2.1.1/azure_cli_profile.egg-info/requires.txt --- old/azure-cli-profile-2.0.22/azure_cli_profile.egg-info/requires.txt 2018-04-06 19:33:53.000000000 +0200 +++ new/azure-cli-profile-2.1.1/azure_cli_profile.egg-info/requires.txt 2018-07-26 19:32:49.000000000 +0200 @@ -1,2 +1 @@ -adal>=0.4.7 azure-cli-core diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-profile-2.0.22/setup.py new/azure-cli-profile-2.1.1/setup.py --- old/azure-cli-profile-2.0.22/setup.py 2018-04-06 19:33:13.000000000 +0200 +++ new/azure-cli-profile-2.1.1/setup.py 2018-07-26 19:30:51.000000000 +0200 @@ -14,7 +14,7 @@ logger.warn("Wheel is not available, disabling bdist_wheel hook") cmdclass = {} -VERSION = "2.0.22" +VERSION = "2.1.1" CLASSIFIERS = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', @@ -30,7 +30,6 @@ ] DEPENDENCIES = [ - 'adal>=0.4.7', 'azure-cli-core', ]
