Hello community, here is the log from the commit of package azure-cli-redis for openSUSE:Factory checked in at 2018-10-15 10:44:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/azure-cli-redis (Old) and /work/SRC/openSUSE:Factory/.azure-cli-redis.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "azure-cli-redis" Mon Oct 15 10:44:22 2018 rev:4 rq:641107 version:0.3.2 Changes: -------- --- /work/SRC/openSUSE:Factory/azure-cli-redis/azure-cli-redis.changes 2018-05-13 16:03:04.926672501 +0200 +++ /work/SRC/openSUSE:Factory/.azure-cli-redis.new/azure-cli-redis.changes 2018-10-15 10:44:31.331320939 +0200 @@ -1,0 +2,9 @@ +Mon Sep 17 13:46:36 UTC 2018 - John Paul Adrian Glaubitz <[email protected]> + +- New upstream release + + Version 0.3.2 + + For detailed information about changes see the + HISTORY.txt file provided with this package +- Update Requires from setup.py + +------------------------------------------------------------------- Old: ---- azure-cli-redis-0.2.12.tar.gz New: ---- azure-cli-redis-0.3.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ azure-cli-redis.spec ++++++ --- /var/tmp/diff_new_pack.uo7kdF/_old 2018-10-15 10:44:33.099319048 +0200 +++ /var/tmp/diff_new_pack.uo7kdF/_new 2018-10-15 10:44:33.107319039 +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-redis -Version: 0.2.12 +Version: 0.3.2 Release: 0 Summary: Microsoft Azure CLI 'redis' Command Module License: MIT @@ -34,7 +34,7 @@ Requires: azure-cli-command-modules-nspkg Requires: azure-cli-core Requires: azure-cli-nspkg -Requires: python3-azure-mgmt-redis >= 4.1.0 +Requires: python3-azure-mgmt-redis >= 5.0.0 Requires: python3-azure-nspkg Conflicts: azure-cli < 2.0.0 ++++++ azure-cli-redis-0.2.12.tar.gz -> azure-cli-redis-0.3.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-redis-0.2.12/HISTORY.rst new/azure-cli-redis-0.3.2/HISTORY.rst --- old/azure-cli-redis-0.2.12/HISTORY.rst 2018-04-06 19:33:13.000000000 +0200 +++ new/azure-cli-redis-0.3.2/HISTORY.rst 2018-08-23 01:07:57.000000000 +0200 @@ -3,9 +3,31 @@ Release History =============== -0.2.12 +0.3.2 ++++++ +* Minor fixes + +0.3.1 ++++++ +* Minor fixes + +0.3.0 ++++++ +* BREAKING CHANGE: 'show' commands log error message and fail with exit code of 3 upon a missing resource. + +0.2.14 ++++++ +* Minor fixes. +0.2.13 +++++++ +* Deprecated `redis patch-schedule patch-schedule show` in favor of `redis patch-schedule show`. +* Deprecated `redis list-all`. This functionality has been folded into `redis list`. +* Deprecated `redis import-method` in favor of `redis import`. +* Added support for `--ids` to various commands. + +0.2.12 +++++++ * `sdist` is now compatible with wheel 0.31.0 0.2.11 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-redis-0.2.12/PKG-INFO new/azure-cli-redis-0.3.2/PKG-INFO --- old/azure-cli-redis-0.2.12/PKG-INFO 2018-04-06 19:33:33.000000000 +0200 +++ new/azure-cli-redis-0.3.2/PKG-INFO 2018-08-23 01:09:23.000000000 +0200 @@ -1,12 +1,11 @@ Metadata-Version: 1.1 Name: azure-cli-redis -Version: 0.2.12 +Version: 0.3.2 Summary: Microsoft Azure Command-Line Tools Redis 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 'redis' Command Module ========================================== @@ -21,9 +20,31 @@ Release History =============== - 0.2.12 + 0.3.2 + +++++ + * Minor fixes + + 0.3.1 + +++++ + * Minor fixes + + 0.3.0 + +++++ + * BREAKING CHANGE: 'show' commands log error message and fail with exit code of 3 upon a missing resource. + + 0.2.14 + ++++++ + * Minor fixes. + + 0.2.13 ++++++ + * Deprecated `redis patch-schedule patch-schedule show` in favor of `redis patch-schedule show`. + * Deprecated `redis list-all`. This functionality has been folded into `redis list`. + * Deprecated `redis import-method` in favor of `redis import`. + * Added support for `--ids` to various commands. + 0.2.12 + ++++++ * `sdist` is now compatible with wheel 0.31.0 0.2.11 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-redis-0.2.12/azure/cli/command_modules/redis/_help.py new/azure-cli-redis-0.3.2/azure/cli/command_modules/redis/_help.py --- old/azure-cli-redis-0.2.12/azure/cli/command_modules/redis/_help.py 2018-04-06 19:33:13.000000000 +0200 +++ new/azure-cli-redis-0.3.2/azure/cli/command_modules/redis/_help.py 2018-08-23 01:07:57.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. @@ -8,7 +9,7 @@ helps['redis'] = """ type: group - short-summary: Access to a secure, dedicated Redis cache for your Azure applications. + short-summary: Manage dedicated Redis caches for your Azure applications. """ helps['redis export'] = """ @@ -16,16 +17,29 @@ short-summary: Export data stored in a Redis cache. """ +helps['redis import'] = """ + type: command + short-summary: Import data into a Redis cache. +""" + helps['redis import-method'] = """ type: command short-summary: Import data into a Redis cache. """ +helps['redis list'] = """ + type: command + short-summary: List Redis caches. +""" + +helps['redis list-all'] = """ + type: command + short-summary: Gets all Redis caches in the specified subscription. +""" + helps['redis update-settings'] = """ type: command - short-summary: (DEPRECATED) Update the settings of a Redis cache. - long-summary: | - WARNING: This command is deprecated. Instead, use the `update` command. + short-summary: Update the settings of a Redis cache. """ helps['redis update'] = """ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-redis-0.2.12/azure/cli/command_modules/redis/_params.py new/azure-cli-redis-0.3.2/azure/cli/command_modules/redis/_params.py --- old/azure-cli-redis-0.2.12/azure/cli/command_modules/redis/_params.py 2018-04-06 19:33:13.000000000 +0200 +++ new/azure-cli-redis-0.3.2/azure/cli/command_modules/redis/_params.py 2018-08-23 01:07:57.000000000 +0200 @@ -3,32 +3,34 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -# pylint: disable=line-too-long - -from azure.cli.core.commands.parameters import get_resource_name_completion_list, name_type import azure.cli.command_modules.redis._help # pylint: disable=unused-import -from azure.cli.command_modules.redis._validators import JsonString, ScheduleEntryList - -from azure.mgmt.redis.models.redis_management_client_enums import RebootType, RedisKeyType, SkuName - -from azure.cli.core.commands.parameters import get_enum_type # TODO: Move this into Knack def load_arguments(self, _): + from azure.mgmt.redis.models import RebootType, RedisKeyType, SkuName + from azure.cli.command_modules.redis._validators import JsonString, ScheduleEntryList + from azure.cli.core.commands.parameters import get_enum_type # TODO: Move this into Knack + from azure.cli.core.commands.parameters import get_resource_name_completion_list, name_type, tags_type with self.argument_context('redis') as c: - c.argument('name', options_list=['--name', '-n'], help='Name of the redis cache.', completer=get_resource_name_completion_list('Microsoft.Cache/redis')) - c.argument('redis_configuration', type=JsonString) + c.argument('name', options_list=['--name', '-n'], help='Name of the Redis cache.', id_part='name', + completer=get_resource_name_completion_list('Microsoft.Cache/redis')) + c.argument('redis_configuration', help='JSON encoded configuration settings. Use @{file} to load from a file.', + type=JsonString) c.argument('reboot_type', arg_type=get_enum_type(RebootType)) c.argument('key_type', arg_type=get_enum_type(RedisKeyType)) c.argument('shard_id', type=int) - c.argument('sku', arg_type=get_enum_type(SkuName)) - c.argument('vm_size', help='Size of redis cache to deploy. Example : values for C family (C0, C1, C2, C3, C4, C5, C6). For P family (P1, P2, P3, P4)') + c.argument('sku', help='Type of Redis cache.', arg_type=get_enum_type(SkuName)) + c.argument('vm_size', help='Size of Redis cache to deploy. Example : values for C family (C0, C1, C2, C3, C4, ' + 'C5, C6). For P family (P1, P2, P3, P4)') c.argument('enable_non_ssl_port', action='store_true') c.argument('shard_count', type=int) + c.argument('tags', tags_type) - with self.argument_context('redis import-method') as c: - c.argument('files', nargs='+') + for scope in ['redis import-method', 'redis import']: + with self.argument_context(scope) as c: + c.argument('files', nargs='+', help='Space-separated list of files to import.') + c.argument('file_format', help='File format to import.') with self.argument_context('redis patch-schedule set') as c: c.argument('schedule_entries', type=ScheduleEntryList) @@ -36,3 +38,8 @@ with self.argument_context('redis create') as c: c.argument('name', arg_type=name_type, completer=None) c.argument('tenant_settings', type=JsonString) + + with self.argument_context('redis export') as c: + c.argument('container', help='Container name to export to.') + c.argument('prefix', help='Prefix to use for exported files.') + c.argument('file_format', help='File format to export.') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-redis-0.2.12/azure/cli/command_modules/redis/_validators.py new/azure-cli-redis-0.3.2/azure/cli/command_modules/redis/_validators.py --- old/azure-cli-redis-0.2.12/azure/cli/command_modules/redis/_validators.py 2018-04-06 19:33:13.000000000 +0200 +++ new/azure-cli-redis-0.3.2/azure/cli/command_modules/redis/_validators.py 2018-08-23 01:07:57.000000000 +0200 @@ -4,7 +4,6 @@ # -------------------------------------------------------------------------------------------- from azure.cli.core.util import shell_safe_json_parse -from azure.mgmt.redis.models import ScheduleEntry class JsonString(dict): @@ -20,10 +19,13 @@ class ScheduleEntryList(list): def __init__(self, value): super(ScheduleEntryList, self).__init__() + + from azure.mgmt.redis.models import ScheduleEntry + if value[0] in ("'", '"') and value[-1] == value[0]: # Remove leading and trailing quotes for dos/cmd.exe users value = value[1:-1] dictval = shell_safe_json_parse(value) - self.extend([ScheduleEntry(row['dayOfWeek'], - int(row['startHourUtc']), - row.get('maintenanceWindow', None)) for row in dictval]) + self.extend([ScheduleEntry(day_of_week=row['dayOfWeek'], + start_hour_utc=int(row['startHourUtc']), + maintenance_window=row.get('maintenanceWindow', None)) for row in dictval]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-redis-0.2.12/azure/cli/command_modules/redis/commands.py new/azure-cli-redis-0.3.2/azure/cli/command_modules/redis/commands.py --- old/azure-cli-redis-0.2.12/azure/cli/command_modules/redis/commands.py 2018-04-06 19:33:13.000000000 +0200 +++ new/azure-cli-redis-0.3.2/azure/cli/command_modules/redis/commands.py 2018-08-23 01:07:57.000000000 +0200 @@ -5,11 +5,10 @@ from azure.cli.core.commands import CliCommandType -from azure.cli.command_modules.redis._client_factory import cf_redis, cf_patch_schedules -from azure.cli.command_modules.redis.custom import wrong_vmsize_argument_exception_handler - def load_command_table(self, _): + from azure.cli.command_modules.redis._client_factory import cf_redis, cf_patch_schedules + from azure.cli.command_modules.redis.custom import wrong_vmsize_argument_exception_handler redis_sdk = CliCommandType( operations_tmpl='azure.mgmt.redis.operations.redis_operations#RedisOperations.{}', @@ -25,17 +24,20 @@ g.command('delete', 'delete') g.custom_command('export', 'cli_redis_export') g.command('force-reboot', 'force_reboot') - g.custom_command('import-method', 'cli_redis_import_method') - g.command('list', 'list_by_resource_group') - g.command('list-all', 'list') + g.custom_command('import-method', 'cli_redis_import_method', + deprecate_info=g.deprecate(redirect='redis import', hide='2.0.34')) + g.custom_command('import', 'cli_redis_import_method') + g.custom_command('list', 'cli_redis_list') + g.command('list-all', 'list', deprecate_info=g.deprecate(redirect='redis list', hide='2.0.34')) g.command('list-keys', 'list_keys') g.command('regenerate-keys', 'regenerate_key') - g.command('show', 'get') - g.custom_command('update-settings', 'cli_redis_update_settings') + g.show_command('show', 'get') + g.custom_command('update-settings', 'cli_redis_update_settings', + deprecate_info=g.deprecate(redirect='redis update', hide='2.0.34')) g.generic_update_command('update', exception_handler=wrong_vmsize_argument_exception_handler, setter_name='update', custom_func_name='cli_redis_update') with self.command_group('redis patch-schedule', redis_patch) as g: g.command('set', 'create_or_update') g.command('delete', 'delete') - g.command('patch-schedule show', 'get') + g.show_command('show', 'get') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-redis-0.2.12/azure/cli/command_modules/redis/custom.py new/azure-cli-redis-0.3.2/azure/cli/command_modules/redis/custom.py --- old/azure-cli-redis-0.2.12/azure/cli/command_modules/redis/custom.py 2018-04-06 19:33:13.000000000 +0200 +++ new/azure-cli-redis-0.3.2/azure/cli/command_modules/redis/custom.py 2018-08-23 01:07:57.000000000 +0200 @@ -41,16 +41,22 @@ # pylint: disable=unused-argument +def cli_redis_list(cmd, client, resource_group_name=None): + if resource_group_name: + return client.list_by_resource_group(resource_group_name) + return client.list() + + +# pylint: disable=unused-argument def cli_redis_update_settings(cmd, client, resource_group_name, name, redis_configuration): from azure.mgmt.redis.models import RedisUpdateParameters - logger.warning('This command is getting deprecated. Please use "redis update" command') existing = client.get(resource_group_name, name) existing.redis_configuration.update(redis_configuration) # Due to swagger/mgmt SDK quirkiness, we have to manually copy over # the resource retrieved to a create_parameters object - update_params = RedisUpdateParameters( + update_params = RedisUpdateParameters( # pylint: disable=too-many-function-args existing.redis_configuration, existing.enable_non_ssl_port, existing.tenant_settings, @@ -73,7 +79,7 @@ instance.sku.family = vm_size[0] instance.sku.capacity = vm_size[1:] - update_params = RedisUpdateParameters( + update_params = RedisUpdateParameters( # pylint: disable=too-many-function-args instance.redis_configuration, instance.enable_non_ssl_port, instance.tenant_settings, @@ -107,15 +113,15 @@ """ from azure.mgmt.redis.models import RedisCreateParameters, Sku params = RedisCreateParameters( - location, - Sku(sku, vm_size[0], vm_size[1:]), - tags, - redis_configuration, - enable_non_ssl_port, - tenant_settings, - shard_count, - subnet_id, - static_ip) + location=location, + sku=Sku(sku, vm_size[0], vm_size[1:]), + tags=tags, + redis_configuration=redis_configuration, + enable_non_ssl_port=enable_non_ssl_port, + tenant_settings=tenant_settings, + shard_count=shard_count, + subnet_id=subnet_id, + static_ip=static_ip) return client.create(resource_group_name, name, params) # endregion diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-redis-0.2.12/azure_cli_redis.egg-info/PKG-INFO new/azure-cli-redis-0.3.2/azure_cli_redis.egg-info/PKG-INFO --- old/azure-cli-redis-0.2.12/azure_cli_redis.egg-info/PKG-INFO 2018-04-06 19:33:33.000000000 +0200 +++ new/azure-cli-redis-0.3.2/azure_cli_redis.egg-info/PKG-INFO 2018-08-23 01:09:23.000000000 +0200 @@ -1,12 +1,11 @@ Metadata-Version: 1.1 Name: azure-cli-redis -Version: 0.2.12 +Version: 0.3.2 Summary: Microsoft Azure Command-Line Tools Redis 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 'redis' Command Module ========================================== @@ -21,9 +20,31 @@ Release History =============== - 0.2.12 + 0.3.2 + +++++ + * Minor fixes + + 0.3.1 + +++++ + * Minor fixes + + 0.3.0 + +++++ + * BREAKING CHANGE: 'show' commands log error message and fail with exit code of 3 upon a missing resource. + + 0.2.14 + ++++++ + * Minor fixes. + + 0.2.13 ++++++ + * Deprecated `redis patch-schedule patch-schedule show` in favor of `redis patch-schedule show`. + * Deprecated `redis list-all`. This functionality has been folded into `redis list`. + * Deprecated `redis import-method` in favor of `redis import`. + * Added support for `--ids` to various commands. + 0.2.12 + ++++++ * `sdist` is now compatible with wheel 0.31.0 0.2.11 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-redis-0.2.12/azure_cli_redis.egg-info/requires.txt new/azure-cli-redis-0.3.2/azure_cli_redis.egg-info/requires.txt --- old/azure-cli-redis-0.2.12/azure_cli_redis.egg-info/requires.txt 2018-04-06 19:33:33.000000000 +0200 +++ new/azure-cli-redis-0.3.2/azure_cli_redis.egg-info/requires.txt 2018-08-23 01:09:23.000000000 +0200 @@ -1,2 +1,2 @@ -azure-mgmt-redis==4.1.0 +azure-mgmt-redis==5.0.0 azure-cli-core diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-redis-0.2.12/setup.py new/azure-cli-redis-0.3.2/setup.py --- old/azure-cli-redis-0.2.12/setup.py 2018-04-06 19:33:13.000000000 +0200 +++ new/azure-cli-redis-0.3.2/setup.py 2018-08-23 01:07:57.000000000 +0200 @@ -15,7 +15,7 @@ logger.warn("Wheel is not available, disabling bdist_wheel hook") cmdclass = {} -VERSION = "0.2.12" +VERSION = "0.3.2" # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers CLASSIFIERS = [ @@ -33,7 +33,7 @@ ] DEPENDENCIES = [ - 'azure-mgmt-redis==4.1.0', + 'azure-mgmt-redis==5.0.0', 'azure-cli-core', ]
