Hello community, here is the log from the commit of package azure-cli-batch for openSUSE:Factory checked in at 2018-05-13 16:01:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/azure-cli-batch (Old) and /work/SRC/openSUSE:Factory/.azure-cli-batch.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "azure-cli-batch" Sun May 13 16:01:14 2018 rev:3 rq:600034 version:3.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/azure-cli-batch/azure-cli-batch.changes 2018-02-14 09:29:58.243070205 +0100 +++ /work/SRC/openSUSE:Factory/.azure-cli-batch.new/azure-cli-batch.changes 2018-05-13 16:01:16.974611049 +0200 @@ -1,0 +2,8 @@ +Tue Apr 17 14:09:22 UTC 2018 - [email protected] + +- New upstream release + + Version 3.2.0 +- Move LICENSE.txt from %doc to %license section +- Update Requires from setup.py + +------------------------------------------------------------------- Old: ---- azure-cli-batch-3.1.9.tar.gz New: ---- azure-cli-batch-3.2.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ azure-cli-batch.spec ++++++ --- /var/tmp/diff_new_pack.wyCXuN/_old 2018-05-13 16:01:17.726583614 +0200 +++ /var/tmp/diff_new_pack.wyCXuN/_new 2018-05-13 16:01:17.726583614 +0200 @@ -17,7 +17,7 @@ Name: azure-cli-batch -Version: 3.1.9 +Version: 3.2.0 Release: 0 Summary: Microsoft Azure CLI 'batch' Command Module License: MIT @@ -32,8 +32,9 @@ BuildRequires: python3-setuptools BuildRequires: unzip Requires: azure-cli-command-modules-nspkg +Requires: azure-cli-core Requires: azure-cli-nspkg -Requires: python3-azure-batch >= 4.0.0 +Requires: python3-azure-batch >= 4.1.1 Requires: python3-azure-mgmt-batch >= 4.1.0 Requires: python3-azure-mgmt-keyvault >= 0.40.0 Requires: python3-azure-nspkg @@ -65,7 +66,8 @@ %files %defattr(-,root,root,-) -%doc HISTORY.rst LICENSE.txt README.rst +%doc HISTORY.rst README.rst +%license LICENSE.txt %{python3_sitelib}/azure/cli/command_modules/batch %{python3_sitelib}/azure_cli_batch-*.egg-info ++++++ azure-cli-batch-3.1.9.tar.gz -> azure-cli-batch-3.2.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-batch-3.1.9/HISTORY.rst new/azure-cli-batch-3.2.0/HISTORY.rst --- old/azure-cli-batch-3.1.9/HISTORY.rst 2018-01-26 17:12:23.000000000 +0100 +++ new/azure-cli-batch-3.2.0/HISTORY.rst 2018-04-06 19:33:13.000000000 +0200 @@ -3,6 +3,19 @@ Release History =============== +3.2.0 +++++++ +* Updated to Batch SDK 4.1.1. +* `sdist` is now compatible with wheel 0.31.0 + +3.1.11 +++++++ +* Support Autorest 3.0 based SDKs + +3.1.10 +++++++ +* Minor fixes + 3.1.9 +++++ * minor fixes diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-batch-3.1.9/PKG-INFO new/azure-cli-batch-3.2.0/PKG-INFO --- old/azure-cli-batch-3.1.9/PKG-INFO 2018-01-26 17:12:40.000000000 +0100 +++ new/azure-cli-batch-3.2.0/PKG-INFO 2018-04-06 19:33:26.000000000 +0200 @@ -1,11 +1,12 @@ Metadata-Version: 1.1 Name: azure-cli-batch -Version: 3.1.9 +Version: 3.2.0 Summary: Microsoft Azure Command-Line Tools Batch 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 'batch' Command Module ========================================== @@ -20,6 +21,19 @@ Release History =============== + 3.2.0 + ++++++ + * Updated to Batch SDK 4.1.1. + * `sdist` is now compatible with wheel 0.31.0 + + 3.1.11 + ++++++ + * Support Autorest 3.0 based SDKs + + 3.1.10 + ++++++ + * Minor fixes + 3.1.9 +++++ * minor fixes diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-batch-3.1.9/azure/cli/command_modules/batch/_command_type.py new/azure-cli-batch-3.2.0/azure/cli/command_modules/batch/_command_type.py --- old/azure-cli-batch-3.1.9/azure/cli/command_modules/batch/_command_type.py 2018-01-26 17:12:23.000000000 +0100 +++ new/azure-cli-batch-3.2.0/azure/cli/command_modules/batch/_command_type.py 2018-04-06 19:33:13.000000000 +0200 @@ -19,7 +19,7 @@ from azure.cli.core.commands import AzCommandGroup -_CLASS_NAME = re.compile(r"<(.*?)>") # Strip model name from class docstring +_CLASS_NAME = re.compile(r"~(.*)") # Strip model name from class docstring _UNDERSCORE_CASE = re.compile('(?!^)([A-Z]+)') # Convert from CamelCase to underscore_case @@ -117,7 +117,7 @@ """Strip chars around enum value str. :param str enum_str: Enum value. """ - return enum_str.strip(' \'') + return enum_str.strip(' \'').lower() def class_name(type_str): @@ -429,7 +429,7 @@ class AzureBatchDataPlaneCommand(object): # pylint: disable=too-many-instance-attributes, too-few-public-methods, too-many-statements - def __init__(self, name, operation, command_loader, client_factory=None, validator=None, **kwargs): + def __init__(self, operation, command_loader, client_factory=None, validator=None, **kwargs): if not isinstance(operation, string_types): raise ValueError("Operation must be a string. Got '{}'".format(operation)) @@ -532,7 +532,7 @@ self.table_transformer = None try: - transform_func = '_'.join(name.split()[1:]).replace('-', '_') + transform_func = operation.split('.')[-1].replace('-', '_') self.table_transformer = getattr(transformers, transform_func + "_table_format") except AttributeError: pass @@ -701,7 +701,7 @@ # This will fail for 2D arrays - though Batch doesn't have any yet inner_type = details['type'][1:-1] if inner_type in pformat.BASIC_TYPES: - options['help'] += " Space separated values." + options['help'] += " Space-separated values." self._resolve_conflict( param_attr, param_attr, path, options, details['type'], required_attrs, conflict_names) @@ -758,7 +758,7 @@ default=None, choices=choices, help=docstring)))) - elif arg_type.startswith(":class:"): # TODO: could add handling for enums + elif arg_type.startswith("~"): # TODO: could add handling for enums param_type = class_name(arg_type) self.parser.set_request_param(arg[0], param_type) param_model = _load_model(param_type) @@ -779,7 +779,7 @@ elif arg[0] not in pformat.IGNORE_PARAMETERS: args.append(arg) return_type = find_return_type(handler) - if return_type == 'Generator': + if return_type and return_type.startswith('Generator'): param = 'destination' docstring = "The path to the destination file or directory." args.append((param, CLICommandArgument(param, @@ -831,6 +831,6 @@ operations_tmpl = merged_kwargs.get('operations_tmpl') command_name = '{} {}'.format(self.group_name, name) if self.group_name else name operation = operations_tmpl.format(method_name) if operations_tmpl else None - command = AzureBatchDataPlaneCommand(name, operation, self.command_loader, **merged_kwargs) + command = AzureBatchDataPlaneCommand(operation, self.command_loader, **merged_kwargs) self.command_loader._cli_command(command_name, **command.get_kwargs()) # pylint: disable=protected-access diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-batch-3.1.9/azure/cli/command_modules/batch/_format.py new/azure-cli-batch-3.2.0/azure/cli/command_modules/batch/_format.py --- old/azure-cli-batch-3.1.9/azure/cli/command_modules/batch/_format.py 2018-01-26 17:12:23.000000000 +0100 +++ new/azure-cli-batch-3.2.0/azure/cli/command_modules/batch/_format.py 2018-04-06 19:33:13.000000000 +0200 @@ -256,3 +256,21 @@ table_row['Error'] = item['error']['code'] if item['error'] else "" table_output.append(table_row) return table_output + + +def list_pool_node_counts_table_format(result): + """Format account list pool node counts result as a table.""" + table_output = [] + for item in result: + table_row = OrderedDict() + table_row['Pool Id'] = item['poolId'] + table_row['Dedicated Starting'] = str(item['dedicated']['starting']) + table_row['Dedicated Idle'] = str(item['dedicated']['idle']) + table_row['Dedicated Running'] = str(item['dedicated']['running']) + table_row['Dedicated Total'] = str(item['dedicated']['total']) + table_row['LowPri Starting'] = str(item['lowPriority']['starting']) + table_row['LowPri Idle'] = str(item['lowPriority']['idle']) + table_row['LowPri Running'] = str(item['lowPriority']['running']) + table_row['LowPri Total'] = str(item['lowPriority']['total']) + table_output.append(table_row) + return table_output diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-batch-3.1.9/azure/cli/command_modules/batch/_parameter_format.py new/azure-cli-batch-3.2.0/azure/cli/command_modules/batch/_parameter_format.py --- old/azure-cli-batch-3.1.9/azure/cli/command_modules/batch/_parameter_format.py 2018-01-26 17:12:23.000000000 +0100 +++ new/azure-cli-batch-3.2.0/azure/cli/command_modules/batch/_parameter_format.py 2018-04-06 19:33:13.000000000 +0200 @@ -51,6 +51,7 @@ 'client_request_id', 'return_client_request_id', 'max_results', + 'additional_properties' } # Parameters that can be completely ignored. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-batch-3.1.9/azure/cli/command_modules/batch/_params.py new/azure-cli-batch-3.2.0/azure/cli/command_modules/batch/_params.py --- old/azure-cli-batch-3.1.9/azure/cli/command_modules/batch/_params.py 2018-01-26 17:12:23.000000000 +0100 +++ new/azure-cli-batch-3.2.0/azure/cli/command_modules/batch/_params.py 2018-04-06 19:33:13.000000000 +0200 @@ -44,7 +44,7 @@ with self.argument_context('batch account create') as c: c.argument('location', get_location_type(self.cli_ctx), help='The region in which to create the account.') - c.argument('tags', tags_type, help="Space separated tags in 'key[=value]' format.") + c.argument('tags', tags_type, help="Space-separated tags in 'key[=value]' format.") c.argument('storage_account', help='The storage account name or resource ID to be used for auto storage.', validator=storage_account_id) c.argument('keyvault', help='The KeyVault name or resource ID to be used for an account with a pool allocation mode of \'User Subscription\'.', validator=keyvault_id) c.ignore('keyvault_url') @@ -103,7 +103,7 @@ c.argument('start_task_max_task_retry_count', arg_group='Pool: Start Task', help='The maximum number of times the task may be retried.') c.argument('start_task_environment_settings', nargs='+', type=environment_setting_format, arg_group='Pool: Start Task', - help='A list of environment variable settings for the start task. Space separated values in \'key=value\' format.') + help='A list of environment variable settings for the start task. Space-separated values in \'key=value\' format.') with self.argument_context('batch job list') as c: c.argument('filter', help=' An OData $filter clause.', arg_group='Pre-condition and Query') @@ -132,12 +132,12 @@ with self.argument_context('batch task create') as c: c.argument('json_file', type=file_type, help='The file containing the task(s) to create in JSON format, if this parameter is specified, all other parameters are ignored.', validator=validate_json_file, completer=FilesCompleter()) - c.argument('application_package_references', nargs='+', help='The space separated list of IDs specifying the application packages to be installed. Space separated application IDs with optional version in \'id[#version]\' format.', type=application_package_reference_format) + c.argument('application_package_references', nargs='+', help='The space-separated list of IDs specifying the application packages to be installed. Space-separated application IDs with optional version in \'id[#version]\' format.', type=application_package_reference_format) c.argument('job_id', help='The ID of the job containing the task.') c.argument('task_id', help='The ID of the task.') c.argument('command_line', help='The command line of the task. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using "cmd /c MyCommand" in Windows or "/bin/sh -c MyCommand" in Linux.') - c.argument('environment_settings', nargs='+', help='A list of environment variable settings for the task. Space separated values in \'key=value\' format.', type=environment_setting_format) - c.argument('resource_files', nargs='+', help='A list of files that the Batch service will download to the compute node before running the command line. Space separated resource references in filename=blobsource format.', type=resource_file_format) + c.argument('environment_settings', nargs='+', help='A list of environment variable settings for the task. Space-separated values in \'key=value\' format.', type=environment_setting_format) + c.argument('resource_files', nargs='+', help='A list of files that the Batch service will download to the compute node before running the command line. Space-separated resource references in filename=blobsource format.', type=resource_file_format) for item in ['batch certificate delete', 'batch certificate create', 'batch pool resize', 'batch pool reset', 'batch job list', 'batch task create']: with self.argument_context(item) as c: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-batch-3.1.9/azure/cli/command_modules/batch/_validators.py new/azure-cli-batch-3.2.0/azure/cli/command_modules/batch/_validators.py --- old/azure-cli-batch-3.1.9/azure/cli/command_modules/batch/_validators.py 2018-01-26 17:12:23.000000000 +0100 +++ new/azure-cli-batch-3.2.0/azure/cli/command_modules/batch/_validators.py 2018-04-06 19:33:13.000000000 +0200 @@ -36,7 +36,7 @@ def metadata_item_format(value): - """Space separated values in 'key=value' format.""" + """Space-separated values in 'key=value' format.""" try: data_name, data_value = value.split('=') except ValueError: @@ -47,7 +47,7 @@ def environment_setting_format(value): - """Space separated values in 'key=value' format.""" + """Space-separated values in 'key=value' format.""" try: env_name, env_value = value.split('=') except ValueError: @@ -58,7 +58,7 @@ def application_package_reference_format(value): - """Space separated application IDs with optional version in 'id[#version]' format.""" + """Space-separated application IDs with optional version in 'id[#version]' format.""" app_reference = value.split('#', 1) package = {'application_id': app_reference[0]} try: @@ -69,13 +69,13 @@ def certificate_reference_format(value): - """Space separated certificate thumbprints.""" + """Space-separated certificate thumbprints.""" cert = {'thumbprint': value, 'thumbprint_algorithm': 'sha1'} return cert def task_id_ranges_format(value): - """Space separated number ranges in 'start-end' format.""" + """Space-separated number ranges in 'start-end' format.""" try: start, end = [int(i) for i in value.split('-')] except ValueError: @@ -86,7 +86,7 @@ def resource_file_format(value): - """Space separated resource references in filename=blobsource format.""" + """Space-separated resource references in filename=blobsource format.""" try: file_name, blob_source = value.split('=', 1) except ValueError: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-batch-3.1.9/azure/cli/command_modules/batch/commands.py new/azure-cli-batch-3.2.0/azure/cli/command_modules/batch/commands.py --- old/azure-cli-batch-3.1.9/azure/cli/command_modules/batch/commands.py 2018-01-26 17:12:23.000000000 +0100 +++ new/azure-cli-batch-3.2.0/azure/cli/command_modules/batch/commands.py 2018-04-06 19:33:13.000000000 +0200 @@ -52,9 +52,9 @@ with self.command_group('batch account', get_mgmt_type('batch_account'), client_factory=get_mgmt_factory('batch_account')) as g: g.custom_command('list', 'list_accounts', table_transformer=account_list_table_format) g.command('show', 'get') - g.custom_command('create', 'create_account', no_wait_param='no_wait') + g.custom_command('create', 'create_account', supports_no_wait=True) g.custom_command('set', 'update_account') - g.command('delete', 'delete', no_wait_param='no_wait', confirmation=True) + g.command('delete', 'delete', supports_no_wait=True, confirmation=True) g.custom_command('login', 'login_account') g.command('autostorage-keys sync', 'synchronize_auto_storage_keys') g.command('keys list', 'get_keys', table_transformer=account_keys_list_table_format) @@ -84,6 +84,9 @@ with self.command_group('batch pool node-agent-skus', get_data_type('account')) as g: g.batch_command('list', 'list_node_agent_skus') + with self.command_group('batch pool node-counts', get_data_type('account')) as g: + g.batch_command('list', 'list_pool_node_counts') + with self.command_group('batch certificate', get_data_type('certificate'), client_factory=get_data_factory('certificate')) as g: g.custom_command('create', 'create_certificate') g.custom_command('delete', 'delete_certificate', confirmation=True) @@ -169,3 +172,4 @@ g.batch_command('scheduling enable', 'enable_scheduling') g.batch_command('remote-login-settings show', 'get_remote_login_settings') g.batch_command('remote-desktop download', 'get_remote_desktop') + g.batch_command('service-logs upload', 'upload_batch_service_logs') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-batch-3.1.9/azure/cli/command_modules/batch/custom.py new/azure-cli-batch-3.2.0/azure/cli/command_modules/batch/custom.py --- old/azure-cli-batch-3.1.9/azure/cli/command_modules/batch/custom.py 2018-01-26 17:12:23.000000000 +0100 +++ new/azure-cli-batch-3.2.0/azure/cli/command_modules/batch/custom.py 2018-04-06 19:33:13.000000000 +0200 @@ -20,11 +20,12 @@ from azure.batch.models import (CertificateAddParameter, PoolStopResizeOptions, PoolResizeParameter, PoolResizeOptions, JobListOptions, JobListFromJobScheduleOptions, TaskAddParameter, TaskConstraints, PoolUpdatePropertiesParameter, - StartTask) + StartTask, AffinityInformation) from azure.cli.core.commands.client_factory import get_mgmt_service_client from azure.cli.core.profiles import get_sdk, ResourceType from azure.cli.core._profile import Profile +from azure.cli.core.util import sdk_no_wait logger = get_logger(__name__) MAX_TASKS_PER_REQUEST = 100 @@ -61,10 +62,8 @@ parameters.key_vault_reference = {'id': keyvault, 'url': keyvault_url} parameters.pool_allocation_mode = 'UserSubscription' - return client.create(resource_group_name=resource_group_name, - account_name=account_name, - parameters=parameters, - raw=no_wait) + return sdk_no_wait(no_wait, client.create, resource_group_name=resource_group_name, + account_name=account_name, parameters=parameters) @transfer_doc(AutoStorageBaseProperties) @@ -279,10 +278,10 @@ return list(client.list(job_list_options=option2)) -@transfer_doc(TaskAddParameter, TaskConstraints) +@transfer_doc(TaskAddParameter, TaskConstraints, AffinityInformation) def create_task(client, job_id, json_file=None, task_id=None, command_line=None, resource_files=None, - environment_settings=None, affinity_info=None, max_wall_clock_time=None, + environment_settings=None, affinity_id=None, max_wall_clock_time=None, retention_time=None, max_task_retry_count=None, application_package_references=None): task = None @@ -306,7 +305,7 @@ task = TaskAddParameter(task_id, command_line, resource_files=resource_files, environment_settings=environment_settings, - affinity_info=affinity_info, + affinity_info=AffinityInformation(affinity_id) if affinity_id else None, application_package_references=application_package_references) if max_wall_clock_time is not None or retention_time is not None \ or max_task_retry_count is not None: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-batch-3.1.9/azure_cli_batch.egg-info/PKG-INFO new/azure-cli-batch-3.2.0/azure_cli_batch.egg-info/PKG-INFO --- old/azure-cli-batch-3.1.9/azure_cli_batch.egg-info/PKG-INFO 2018-01-26 17:12:40.000000000 +0100 +++ new/azure-cli-batch-3.2.0/azure_cli_batch.egg-info/PKG-INFO 2018-04-06 19:33:26.000000000 +0200 @@ -1,11 +1,12 @@ Metadata-Version: 1.1 Name: azure-cli-batch -Version: 3.1.9 +Version: 3.2.0 Summary: Microsoft Azure Command-Line Tools Batch 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 'batch' Command Module ========================================== @@ -20,6 +21,19 @@ Release History =============== + 3.2.0 + ++++++ + * Updated to Batch SDK 4.1.1. + * `sdist` is now compatible with wheel 0.31.0 + + 3.1.11 + ++++++ + * Support Autorest 3.0 based SDKs + + 3.1.10 + ++++++ + * Minor fixes + 3.1.9 +++++ * minor fixes diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-batch-3.1.9/azure_cli_batch.egg-info/requires.txt new/azure-cli-batch-3.2.0/azure_cli_batch.egg-info/requires.txt --- old/azure-cli-batch-3.1.9/azure_cli_batch.egg-info/requires.txt 2018-01-26 17:12:40.000000000 +0100 +++ new/azure-cli-batch-3.2.0/azure_cli_batch.egg-info/requires.txt 2018-04-06 19:33:26.000000000 +0200 @@ -1,4 +1,4 @@ -azure-batch==4.0.0 +azure-batch==4.1.1 azure-batch-extensions<1.1,>=1.0 azure-mgmt-batch==4.1.0 azure-mgmt-keyvault==0.40.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-batch-3.1.9/setup.py new/azure-cli-batch-3.2.0/setup.py --- old/azure-cli-batch-3.1.9/setup.py 2018-01-26 17:12:23.000000000 +0100 +++ new/azure-cli-batch-3.2.0/setup.py 2018-04-06 19:33:13.000000000 +0200 @@ -15,7 +15,7 @@ logger.warn("Wheel is not available, disabling bdist_wheel hook") cmdclass = {} -VERSION = "3.1.9" +VERSION = "3.2.0" # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers CLASSIFIERS = [ @@ -33,7 +33,7 @@ ] DEPENDENCIES = [ - 'azure-batch==4.0.0', + 'azure-batch==4.1.1', 'azure-batch-extensions>=1.0,<1.1', 'azure-mgmt-batch==4.1.0', 'azure-mgmt-keyvault==0.40.0',
