Hello community,
here is the log from the commit of package azure-cli-cognitiveservices for
openSUSE:Factory checked in at 2018-02-14 09:30:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/azure-cli-cognitiveservices (Old)
and /work/SRC/openSUSE:Factory/.azure-cli-cognitiveservices.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "azure-cli-cognitiveservices"
Wed Feb 14 09:30:12 2018 rev:2 rq:574801 version:0.1.10
Changes:
--------
---
/work/SRC/openSUSE:Factory/azure-cli-cognitiveservices/azure-cli-cognitiveservices.changes
2017-11-10 14:52:56.169759236 +0100
+++
/work/SRC/openSUSE:Factory/.azure-cli-cognitiveservices.new/azure-cli-cognitiveservices.changes
2018-02-14 09:30:21.790216935 +0100
@@ -1,0 +2,9 @@
+Wed Feb 7 15:03:07 UTC 2018 - [email protected]
+
+- New upstream release
+ + Version 0.1.10
+ + For detailed information about changes see the
+ HISTORY.rst file provided with this package
+- Install HISTORY.rst into doc directory
+
+-------------------------------------------------------------------
Old:
----
azure-cli-cognitiveservices-0.1.8.tar.gz
New:
----
azure-cli-cognitiveservices-0.1.10.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ azure-cli-cognitiveservices.spec ++++++
--- /var/tmp/diff_new_pack.le47aW/_old 2018-02-14 09:30:22.774181279 +0100
+++ /var/tmp/diff_new_pack.le47aW/_new 2018-02-14 09:30:22.774181279 +0100
@@ -1,7 +1,7 @@
#
# spec file for package azure-cli-cognitiveservices
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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
@@ -15,8 +15,9 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
+
Name: azure-cli-cognitiveservices
-Version: 0.1.8
+Version: 0.1.10
Release: 0
Summary: Microsoft Azure CLI 'cognitiveservices' Command Module
License: MIT
@@ -24,17 +25,17 @@
Url: https://github.com/Azure/azure-cli
Source:
https://files.pythonhosted.org/packages/source/a/azure-cli-cognitiveservices/azure-cli-cognitiveservices-%{version}.tar.gz
Source1: LICENSE.txt
-BuildRequires: python3-devel
-BuildRequires: python3-setuptools
-BuildRequires: unzip
BuildRequires: azure-cli-command-modules-nspkg
BuildRequires: azure-cli-nspkg
BuildRequires: python3-azure-nspkg
+BuildRequires: python3-devel
+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-mgmt-cognitiveservices >= 1.0.0
-Requires: azure-cli-core
+Requires: python3-azure-nspkg
Conflicts: azure-cli < 2.0.0
BuildArch: noarch
@@ -63,7 +64,8 @@
%files
%defattr(-,root,root,-)
-%doc LICENSE.txt README.rst
+%doc HISTORY.rst LICENSE.txt README.rst
%{python3_sitelib}/azure/cli/command_modules/cognitiveservices
%{python3_sitelib}/azure_cli_cognitiveservices-*.egg-info
+
%changelog
++++++ azure-cli-cognitiveservices-0.1.8.tar.gz ->
azure-cli-cognitiveservices-0.1.10.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-cli-cognitiveservices-0.1.8/HISTORY.rst
new/azure-cli-cognitiveservices-0.1.10/HISTORY.rst
--- old/azure-cli-cognitiveservices-0.1.8/HISTORY.rst 2017-09-23
01:47:00.000000000 +0200
+++ new/azure-cli-cognitiveservices-0.1.10/HISTORY.rst 2018-01-05
22:11:35.000000000 +0100
@@ -2,6 +2,15 @@
Release History
===============
+
+0.1.10
+++++++
+* Update for CLI core changes.
+
+0.1.9
++++++
+* minor fixes
+
0.1.8 (2017-09-22)
++++++++++++++++++
* minor fixes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-cli-cognitiveservices-0.1.8/PKG-INFO
new/azure-cli-cognitiveservices-0.1.10/PKG-INFO
--- old/azure-cli-cognitiveservices-0.1.8/PKG-INFO 2017-09-23
01:50:33.000000000 +0200
+++ new/azure-cli-cognitiveservices-0.1.10/PKG-INFO 2018-01-05
22:12:00.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: azure-cli-cognitiveservices
-Version: 0.1.8
+Version: 0.1.10
Summary: Microsoft Azure Command-Line Tools Cognitive Services Command Module
Home-page: https://github.com/azure/azure-cli
Author: Microsoft Corporation
@@ -20,6 +20,15 @@
Release History
===============
+
+ 0.1.10
+ ++++++
+ * Update for CLI core changes.
+
+ 0.1.9
+ +++++
+ * minor fixes
+
0.1.8 (2017-09-22)
++++++++++++++++++
* minor fixes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-cognitiveservices-0.1.8/azure/cli/command_modules/cognitiveservices/__init__.py
new/azure-cli-cognitiveservices-0.1.10/azure/cli/command_modules/cognitiveservices/__init__.py
---
old/azure-cli-cognitiveservices-0.1.8/azure/cli/command_modules/cognitiveservices/__init__.py
2017-09-23 01:47:00.000000000 +0200
+++
new/azure-cli-cognitiveservices-0.1.10/azure/cli/command_modules/cognitiveservices/__init__.py
2018-01-05 22:11:35.000000000 +0100
@@ -2,12 +2,33 @@
# 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 import AzCommandsLoader
+
import azure.cli.command_modules.cognitiveservices._help # pylint:
disable=unused-import
+from azure.cli.command_modules.cognitiveservices._client_factory import
cf_cognitive_service_accounts
+
+
+class CognitiveServicesCommandsLoader(AzCommandsLoader):
+
+ def __init__(self, cli_ctx=None):
+ from azure.cli.core.commands import CliCommandType
+ custom_type = CliCommandType(
+
operations_tmpl='azure.cli.command_modules.cognitiveservices.custom#{}',
+ client_factory=cf_cognitive_service_accounts)
+ super(CognitiveServicesCommandsLoader, self).__init__(cli_ctx=cli_ctx,
+
custom_command_type=custom_type,
+
min_profile='2017-03-10-profile')
+
+ def load_command_table(self, args):
+ from azure.cli.command_modules.cognitiveservices.commands import
load_command_table
+ load_command_table(self, args)
+ return self.command_table
-def load_params(_):
- import azure.cli.command_modules.cognitiveservices._params # pylint:
disable=redefined-outer-name, unused-variable
+ def load_arguments(self, command):
+ from azure.cli.command_modules.cognitiveservices._params import
load_arguments
+ load_arguments(self, command)
-def load_commands():
- import azure.cli.command_modules.cognitiveservices.commands # pylint:
disable=redefined-outer-name, unused-variable
+COMMAND_LOADER_CLS = CognitiveServicesCommandsLoader
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-cognitiveservices-0.1.8/azure/cli/command_modules/cognitiveservices/_client_factory.py
new/azure-cli-cognitiveservices-0.1.10/azure/cli/command_modules/cognitiveservices/_client_factory.py
---
old/azure-cli-cognitiveservices-0.1.8/azure/cli/command_modules/cognitiveservices/_client_factory.py
2017-09-23 01:47:00.000000000 +0200
+++
new/azure-cli-cognitiveservices-0.1.10/azure/cli/command_modules/cognitiveservices/_client_factory.py
2018-01-05 22:11:35.000000000 +0100
@@ -2,18 +2,17 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
license information.
#
--------------------------------------------------------------------------------------------
-# management client factories
-def get_cognitiveservices_management_client(_):
+def get_cognitiveservices_management_client(cli_ctx, *_):
from azure.cli.core.commands.client_factory import get_mgmt_service_client
from azure.mgmt.cognitiveservices import CognitiveServicesManagementClient
- return get_mgmt_service_client(CognitiveServicesManagementClient,
location='notused')
+ return get_mgmt_service_client(cli_ctx, CognitiveServicesManagementClient,
location='notused')
-def get_cognitiveservices_account_operations(kwargs):
- return
get_cognitiveservices_management_client(kwargs).cognitive_services_accounts
+def cf_cognitive_service_accounts(cli_ctx, *_):
+ return
get_cognitiveservices_management_client(cli_ctx).cognitive_services_accounts
-def get_cognitiveservices_operations(kwargs):
- return get_cognitiveservices_management_client(kwargs).accounts
+def cf_accounts(cli_ctx, *_):
+ return get_cognitiveservices_management_client(cli_ctx).accounts
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-cognitiveservices-0.1.8/azure/cli/command_modules/cognitiveservices/_help.py
new/azure-cli-cognitiveservices-0.1.10/azure/cli/command_modules/cognitiveservices/_help.py
---
old/azure-cli-cognitiveservices-0.1.8/azure/cli/command_modules/cognitiveservices/_help.py
2017-09-23 01:47:00.000000000 +0200
+++
new/azure-cli-cognitiveservices-0.1.10/azure/cli/command_modules/cognitiveservices/_help.py
2018-01-05 22:11:35.000000000 +0100
@@ -3,7 +3,7 @@
# Licensed under the MIT License. See License.txt in the project root for
license information.
#
--------------------------------------------------------------------------------------------
-from azure.cli.core.help_files import helps
+from knack.help_files import helps
helps['cognitiveservices'] = """
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-cognitiveservices-0.1.8/azure/cli/command_modules/cognitiveservices/_params.py
new/azure-cli-cognitiveservices-0.1.10/azure/cli/command_modules/cognitiveservices/_params.py
---
old/azure-cli-cognitiveservices-0.1.8/azure/cli/command_modules/cognitiveservices/_params.py
2017-09-23 01:47:00.000000000 +0200
+++
new/azure-cli-cognitiveservices-0.1.10/azure/cli/command_modules/cognitiveservices/_params.py
2018-01-05 22:11:35.000000000 +0100
@@ -2,27 +2,27 @@
# 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.commands import register_cli_argument, CliArgumentType
+
+from knack.arguments import CLIArgumentType
from azure.cli.core.commands.parameters import (
tags_type,
resource_group_name_type,
get_resource_name_completion_list)
-name_arg_type = CliArgumentType(options_list=('--name', '-n'), metavar='NAME')
-register_cli_argument('cognitiveservices', 'account_name',
- arg_type=name_arg_type, help='cognitive service account
name',
- completer=get_resource_name_completion_list(
- 'Microsoft.CognitiveServices/accounts'))
-register_cli_argument('cognitiveservices', 'resource_group_name',
- arg_type=resource_group_name_type)
-register_cli_argument('cognitiveservices', 'sku_name', options_list=('--sku',),
- help='the Sku of cognitive services account')
-register_cli_argument('cognitiveservices', 'kind',
- help='the API name of cognitive services account')
-register_cli_argument('cognitiveservices', 'tags', tags_type)
-register_cli_argument('cognitiveservices', 'key_name', required=True,
- help='Key name to generate', choices=['key1', 'key2'])
-register_cli_argument('cognitiveservices account create', 'yes',
action='store_true',
- help='Do not prompt for terms confirmation')
+name_arg_type = CLIArgumentType(options_list=['--name', '-n'], metavar='NAME')
+
+
+def load_arguments(self, _):
+ with self.argument_context('cognitiveservices') as c:
+ c.argument('account_name', arg_type=name_arg_type, help='cognitive
service account name',
+
completer=get_resource_name_completion_list('Microsoft.CognitiveServices/accounts'))
+ c.argument('resource_group_name', arg_type=resource_group_name_type)
+ c.argument('sku_name', options_list=['--sku'], help='the Sku of
cognitive services account')
+ c.argument('kind', help='the API name of cognitive services account')
+ c.argument('tags', tags_type)
+ c.argument('key_name', required=True, help='Key name to generate',
choices=['key1', 'key2'])
+
+ with self.argument_context('cognitiveservices account create') as c:
+ c.argument('yes', action='store_true', help='Do not prompt for terms
confirmation')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-cognitiveservices-0.1.8/azure/cli/command_modules/cognitiveservices/commands.py
new/azure-cli-cognitiveservices-0.1.10/azure/cli/command_modules/cognitiveservices/commands.py
---
old/azure-cli-cognitiveservices-0.1.8/azure/cli/command_modules/cognitiveservices/commands.py
2017-09-23 01:47:00.000000000 +0200
+++
new/azure-cli-cognitiveservices-0.1.10/azure/cli/command_modules/cognitiveservices/commands.py
2018-01-05 22:11:35.000000000 +0100
@@ -2,31 +2,29 @@
# 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.commands import cli_command
-from azure.cli.core.profiles import supported_api_version, PROFILE_TYPE
+
+from azure.cli.core.commands import CliCommandType
from azure.cli.command_modules.cognitiveservices._client_factory import (
- get_cognitiveservices_account_operations,
- get_cognitiveservices_operations)
+ cf_cognitive_service_accounts,
+ cf_accounts)
+
+
+def load_command_table(self, _):
+ mgmt_type = CliCommandType(
+
operations_tmpl='azure.mgmt.cognitiveservices.operations.cognitive_services_accounts_operations#CognitiveServicesAccountsOperations.{}',
# pylint: disable=line-too-long
+ client_factory=cf_cognitive_service_accounts
+ )
+
+ with self.command_group('cognitiveservices account', mgmt_type) as g:
+ g.custom_command('create', 'create')
+ g.command('delete', 'delete')
+ g.command('show', 'get_properties')
+ g.custom_command('update', 'update')
+ g.command('list-skus', 'list_skus')
+
+ with self.command_group('cognitiveservices account keys', mgmt_type) as g:
+ g.command('regenerate', 'regenerate_key')
+ g.command('list', 'list_keys')
-if not supported_api_version(PROFILE_TYPE, max_api='2017-03-09-profile'):
- mgmt_path =
'azure.mgmt.cognitiveservices.operations.cognitive_services_accounts_operations#'\
- 'CognitiveServicesAccountsOperations.{}'
- custom_path = 'azure.cli.command_modules.cognitiveservices.custom#{}'
-
- cli_command(__name__, 'cognitiveservices account create',
custom_path.format('create'),
- get_cognitiveservices_account_operations)
- cli_command(__name__, 'cognitiveservices account delete',
mgmt_path.format('delete'),
- get_cognitiveservices_account_operations)
- cli_command(__name__, 'cognitiveservices account show',
mgmt_path.format('get_properties'),
- get_cognitiveservices_account_operations)
- cli_command(__name__, 'cognitiveservices list',
custom_path.format('listresources'),
- get_cognitiveservices_operations)
- cli_command(__name__, 'cognitiveservices account update',
custom_path.format('update'),
- get_cognitiveservices_account_operations)
- cli_command(__name__, 'cognitiveservices account keys regenerate',
- mgmt_path.format('regenerate_key'),
- get_cognitiveservices_account_operations)
- cli_command(__name__, 'cognitiveservices account keys list',
mgmt_path.format('list_keys'),
- get_cognitiveservices_account_operations)
- cli_command(__name__, 'cognitiveservices account list-skus',
mgmt_path.format('list_skus'),
- get_cognitiveservices_account_operations)
+ with self.command_group('cognitiveservices') as g:
+ g.custom_command('list', 'list_resources', client_factory=cf_accounts)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-cognitiveservices-0.1.8/azure/cli/command_modules/cognitiveservices/custom.py
new/azure-cli-cognitiveservices-0.1.10/azure/cli/command_modules/cognitiveservices/custom.py
---
old/azure-cli-cognitiveservices-0.1.8/azure/cli/command_modules/cognitiveservices/custom.py
2017-09-23 01:47:00.000000000 +0200
+++
new/azure-cli-cognitiveservices-0.1.10/azure/cli/command_modules/cognitiveservices/custom.py
2018-01-05 22:11:35.000000000 +0100
@@ -2,15 +2,17 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
license information.
#
--------------------------------------------------------------------------------------------
+
+from knack.prompting import prompt_y_n
+from knack.util import CLIError
+from knack.log import get_logger
+
from azure.mgmt.cognitiveservices.models import
CognitiveServicesAccountCreateParameters, Sku
-from azure.cli.core.prompting import prompt_y_n
-from azure.cli.core.util import CLIError
-import azure.cli.core.azlogging as azlogging
-logger = azlogging.get_az_logger(__name__)
+logger = get_logger(__name__)
-def listresources(client, resource_group_name=None):
+def list_resources(client, resource_group_name=None):
if resource_group_name:
return client.list_by_resource_group(resource_group_name)
return client.list()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-cognitiveservices-0.1.8/azure_cli_cognitiveservices.egg-info/PKG-INFO
new/azure-cli-cognitiveservices-0.1.10/azure_cli_cognitiveservices.egg-info/PKG-INFO
---
old/azure-cli-cognitiveservices-0.1.8/azure_cli_cognitiveservices.egg-info/PKG-INFO
2017-09-23 01:50:33.000000000 +0200
+++
new/azure-cli-cognitiveservices-0.1.10/azure_cli_cognitiveservices.egg-info/PKG-INFO
2018-01-05 22:11:59.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: azure-cli-cognitiveservices
-Version: 0.1.8
+Version: 0.1.10
Summary: Microsoft Azure Command-Line Tools Cognitive Services Command Module
Home-page: https://github.com/azure/azure-cli
Author: Microsoft Corporation
@@ -20,6 +20,15 @@
Release History
===============
+
+ 0.1.10
+ ++++++
+ * Update for CLI core changes.
+
+ 0.1.9
+ +++++
+ * minor fixes
+
0.1.8 (2017-09-22)
++++++++++++++++++
* minor fixes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-cognitiveservices-0.1.8/azure_cli_cognitiveservices.egg-info/requires.txt
new/azure-cli-cognitiveservices-0.1.10/azure_cli_cognitiveservices.egg-info/requires.txt
---
old/azure-cli-cognitiveservices-0.1.8/azure_cli_cognitiveservices.egg-info/requires.txt
2017-09-23 01:50:33.000000000 +0200
+++
new/azure-cli-cognitiveservices-0.1.10/azure_cli_cognitiveservices.egg-info/requires.txt
2018-01-05 22:11:59.000000000 +0100
@@ -1,3 +1,2 @@
azure-mgmt-cognitiveservices==1.0.0
azure-cli-core
-azure-cli-command-modules-nspkg>=2.0.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-cli-cognitiveservices-0.1.8/setup.py
new/azure-cli-cognitiveservices-0.1.10/setup.py
--- old/azure-cli-cognitiveservices-0.1.8/setup.py 2017-09-23
01:50:33.000000000 +0200
+++ new/azure-cli-cognitiveservices-0.1.10/setup.py 2018-01-05
22:11:35.000000000 +0100
@@ -13,7 +13,7 @@
logger.warn("Wheel is not available, disabling bdist_wheel hook")
cmdclass = {}
-VERSION = "0.1.8"
+VERSION = "0.1.10"
# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
CLASSIFIERS = [