commit azure-cli-profile for openSUSE:Factory
Hello community, here is the log from the commit of package azure-cli-profile for openSUSE:Factory checked in at 2019-05-22 11:01:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/azure-cli-profile (Old) and /work/SRC/openSUSE:Factory/.azure-cli-profile.new.5148 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "azure-cli-profile" Wed May 22 11:01:27 2019 rev:5 rq:696851 version:2.1.3 Changes: -------- --- /work/SRC/openSUSE:Factory/azure-cli-profile/azure-cli-profile.changes 2018-10-15 10:45:33.251254708 +0200 +++ /work/SRC/openSUSE:Factory/.azure-cli-profile.new.5148/azure-cli-profile.changes 2019-05-22 11:01:30.686687879 +0200 @@ -1,0 +2,15 @@ +Tue Apr 16 15:55:45 UTC 2019 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com> + +- New upstream release + + Version 2.1.3 + + For detailed information about changes see the + HISTORY.txt file provided with this package +- Bump minimum version for Python Azure SDK namespace + packages to 3.0.0 in BuildRequires and Requires +- Remove python3-devel package from BuildRequires +- Remove unzip package from BuildRequires +- Run fdupes to hardlink duplicate files + + Add fdupes to BuildRequires + + Add %fdupes invocation to %install + +------------------------------------------------------------------- Old: ---- azure-cli-profile-2.1.1.tar.gz New: ---- azure-cli-profile-2.1.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ azure-cli-profile.spec ++++++ --- /var/tmp/diff_new_pack.m6Hllf/_old 2019-05-22 11:01:32.486686848 +0200 +++ /var/tmp/diff_new_pack.m6Hllf/_new 2019-05-22 11:01:32.514686832 +0200 @@ -1,7 +1,7 @@ # # spec file for package azure-cli-profile # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -17,7 +17,7 @@ Name: azure-cli-profile -Version: 2.1.1 +Version: 2.1.3 Release: 0 Summary: Microsoft Azure CLI 'profile' Command Module License: MIT @@ -27,14 +27,13 @@ Source1: LICENSE.txt BuildRequires: azure-cli-command-modules-nspkg BuildRequires: azure-cli-nspkg -BuildRequires: python3-azure-nspkg -BuildRequires: python3-devel +BuildRequires: fdupes +BuildRequires: python3-azure-nspkg >= 3.0.0 BuildRequires: python3-setuptools -BuildRequires: unzip Requires: azure-cli-command-modules-nspkg Requires: azure-cli-core Requires: azure-cli-nspkg -Requires: python3-azure-nspkg +Requires: python3-azure-nspkg >= 3.0.0 Conflicts: azure-cli < 2.0.0 BuildArch: noarch @@ -56,6 +55,7 @@ %install python3 setup.py install --root=%{buildroot} --prefix=%{_prefix} --install-lib=%{python3_sitelib} +%python_expand %fdupes %{buildroot}%{$python_sitelib} rm -rf %{buildroot}%{python3_sitelib}/azure/cli/command_modules/__init__.* rm -rf %{buildroot}%{python3_sitelib}/azure/cli/command_modules/__pycache__ rm -rf %{buildroot}%{python3_sitelib}/azure/cli/__init__.* ++++++ azure-cli-profile-2.1.1.tar.gz -> azure-cli-profile-2.1.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-profile-2.1.1/HISTORY.rst new/azure-cli-profile-2.1.3/HISTORY.rst --- old/azure-cli-profile-2.1.1/HISTORY.rst 2018-07-26 19:30:51.000000000 +0200 +++ new/azure-cli-profile-2.1.3/HISTORY.rst 2019-01-25 20:43:41.000000000 +0100 @@ -2,6 +2,13 @@ Release History =============== +2.1.3 ++++++ +* az login: enable tenant level account for managed service identity + +2.1.2 +++++++ +* az login: expose --use-cert-sn-issuer flag for service principal login with cert auto-rolls 2.1.1 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-profile-2.1.1/PKG-INFO new/azure-cli-profile-2.1.3/PKG-INFO --- old/azure-cli-profile-2.1.1/PKG-INFO 2018-07-26 19:32:50.000000000 +0200 +++ new/azure-cli-profile-2.1.3/PKG-INFO 2019-01-25 20:44:18.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: azure-cli-profile -Version: 2.1.1 +Version: 2.1.3 Summary: Microsoft Azure Command-Line Tools Profile Command Module Home-page: https://github.com/Azure/azure-cli Author: Microsoft Corporation @@ -21,6 +21,13 @@ Release History =============== + 2.1.3 + +++++ + * az login: enable tenant level account for managed service identity + + 2.1.2 + ++++++ + * az login: expose --use-cert-sn-issuer flag for service principal login with cert auto-rolls 2.1.1 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-profile-2.1.1/azure/cli/command_modules/profile/__init__.py new/azure-cli-profile-2.1.3/azure/cli/command_modules/profile/__init__.py --- old/azure-cli-profile-2.1.1/azure/cli/command_modules/profile/__init__.py 2018-07-26 19:30:51.000000000 +0200 +++ new/azure-cli-profile-2.1.3/azure/cli/command_modules/profile/__init__.py 2019-01-25 20:43:41.000000000 +0100 @@ -24,6 +24,7 @@ with self.command_group('', profile_custom) as g: g.command('login', 'login') g.command('logout', 'logout') + g.command('self-test', 'check_cli', deprecate_info=g.deprecate(hide=True)) with self.command_group('account', profile_custom) as g: g.command('list', 'list_subscriptions', table_transformer=transform_account_list) @@ -50,6 +51,7 @@ 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") + c.argument('use_cert_sn_issuer', action='store_true', help='used with a service principal configured with Subject Name and Issuer Authentication in order to support automatic certificate rolls') with self.argument_context('logout') as c: c.argument('username', help='account user, if missing, logout the current active account') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-profile-2.1.1/azure/cli/command_modules/profile/_help.py new/azure-cli-profile-2.1.3/azure/cli/command_modules/profile/_help.py --- old/azure-cli-profile-2.1.1/azure/cli/command_modules/profile/_help.py 2018-07-26 19:30:51.000000000 +0200 +++ new/azure-cli-profile-2.1.3/azure/cli/command_modules/profile/_help.py 2019-01-25 20:43:41.000000000 +0100 @@ -76,3 +76,8 @@ 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. """ + +helps['self-test'] = """ + type: command + short-summary: Runs a self-test of the CLI. +""" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-profile-2.1.1/azure/cli/command_modules/profile/custom.py new/azure-cli-profile-2.1.3/azure/cli/command_modules/profile/custom.py --- old/azure-cli-profile-2.1.1/azure/cli/command_modules/profile/custom.py 2018-07-26 19:30:51.000000000 +0200 +++ new/azure-cli-profile-2.1.3/azure/cli/command_modules/profile/custom.py 2019-01-25 20:43:41.000000000 +0100 @@ -86,16 +86,20 @@ # pylint: disable=inconsistent-return-statements def login(cmd, username=None, password=None, service_principal=None, tenant=None, allow_no_subscriptions=False, - identity=False, use_device_code=False): + identity=False, use_device_code=False, use_cert_sn_issuer=None): """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]) and identity: raise CLIError("usage error: '--identity' is not applicable with other arguments") if any([password, service_principal, username, identity]) and use_device_code: raise CLIError("usage error: '--use-device-code' is not applicable with other arguments") + if use_cert_sn_issuer and not service_principal: + raise CLIError("usage error: '--use-sn-issuer' is only applicable with a service principal") + if service_principal and not username: + raise CLIError('usage error: --service-principal --username NAME --password SECRET --tenant TENANT') interactive = False @@ -104,7 +108,7 @@ if identity: if in_cloud_console(): return profile.find_subscriptions_in_cloud_console() - return profile.find_subscriptions_in_vm_with_msi(username) + return profile.find_subscriptions_in_vm_with_msi(username, allow_no_subscriptions) elif in_cloud_console(): # tell users they might not need login logger.warning(_CLOUD_CONSOLE_LOGIN_WARNING) @@ -125,7 +129,8 @@ service_principal, tenant, use_device_code=use_device_code, - allow_no_subscriptions=allow_no_subscriptions) + allow_no_subscriptions=allow_no_subscriptions, + use_cert_sn_issuer=use_cert_sn_issuer) except AdalError as err: # try polish unfriendly server errors if username: @@ -158,3 +163,33 @@ def list_locations(cmd): from azure.cli.core.commands.parameters import get_subscription_locations return get_subscription_locations(cmd.cli_ctx) + + +def check_cli(cmd): + from azure.cli.core.file_util import ( + create_invoker_and_load_cmds_and_args, get_all_help) + + exceptions = {} + + print('Running CLI self-test.\n') + + print('Loading all commands and arguments...') + try: + create_invoker_and_load_cmds_and_args(cmd.cli_ctx) + print('Commands loaded OK.\n') + except Exception as ex: # pylint: disable=broad-except + exceptions['load_commands'] = ex + logger.error('Error occurred loading commands!\n') + + print('Retrieving all help...') + try: + get_all_help(cmd.cli_ctx) + print('Help loaded OK.\n') + except Exception as ex: # pylint: disable=broad-except + exceptions['load_help'] = ex + logger.error('Error occurred loading help!\n') + + if not exceptions: + print('CLI self-test completed: OK') + else: + raise CLIError(exceptions) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-profile-2.1.1/azure_cli_profile.egg-info/PKG-INFO new/azure-cli-profile-2.1.3/azure_cli_profile.egg-info/PKG-INFO --- old/azure-cli-profile-2.1.1/azure_cli_profile.egg-info/PKG-INFO 2018-07-26 19:32:49.000000000 +0200 +++ new/azure-cli-profile-2.1.3/azure_cli_profile.egg-info/PKG-INFO 2019-01-25 20:44:18.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: azure-cli-profile -Version: 2.1.1 +Version: 2.1.3 Summary: Microsoft Azure Command-Line Tools Profile Command Module Home-page: https://github.com/Azure/azure-cli Author: Microsoft Corporation @@ -21,6 +21,13 @@ Release History =============== + 2.1.3 + +++++ + * az login: enable tenant level account for managed service identity + + 2.1.2 + ++++++ + * az login: expose --use-cert-sn-issuer flag for service principal login with cert auto-rolls 2.1.1 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-profile-2.1.1/setup.py new/azure-cli-profile-2.1.3/setup.py --- old/azure-cli-profile-2.1.1/setup.py 2018-07-26 19:30:51.000000000 +0200 +++ new/azure-cli-profile-2.1.3/setup.py 2019-01-25 20:43:41.000000000 +0100 @@ -14,7 +14,7 @@ logger.warn("Wheel is not available, disabling bdist_wheel hook") cmdclass = {} -VERSION = "2.1.1" +VERSION = "2.1.3" CLASSIFIERS = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers',
participants (1)
-
root