Hello community,
here is the log from the commit of package azure-cli-kusto for openSUSE:Factory
checked in at 2019-10-31 18:16:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/azure-cli-kusto (Old)
and /work/SRC/openSUSE:Factory/.azure-cli-kusto.new.2990 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "azure-cli-kusto"
Thu Oct 31 18:16:25 2019 rev:3 rq:742698 version:0.2.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/azure-cli-kusto/azure-cli-kusto.changes
2019-06-05 11:43:58.763028729 +0200
+++
/work/SRC/openSUSE:Factory/.azure-cli-kusto.new.2990/azure-cli-kusto.changes
2019-10-31 18:16:25.570083240 +0100
@@ -1,0 +2,9 @@
+Thu Oct 24 12:10:51 UTC 2019 - John Paul Adrian Glaubitz
<[email protected]>
+
+- New upstream release
+ + Version 0.2.3
+ + For detailed information about changes see the
+ HISTORY.txt file provided with this package
+- Update Requires from setup.py
+
+-------------------------------------------------------------------
Old:
----
azure-cli-kusto-0.1.0.tar.gz
New:
----
azure-cli-kusto-0.2.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ azure-cli-kusto.spec ++++++
--- /var/tmp/diff_new_pack.5MSXPL/_old 2019-10-31 18:16:26.218083910 +0100
+++ /var/tmp/diff_new_pack.5MSXPL/_new 2019-10-31 18:16:26.230083923 +0100
@@ -17,7 +17,7 @@
Name: azure-cli-kusto
-Version: 0.1.0
+Version: 0.2.3
Release: 0
Summary: Microsoft Azure CLI 'KUSTO' Command Module
License: MIT
@@ -33,7 +33,7 @@
Requires: azure-cli-command-modules-nspkg
Requires: azure-cli-core
Requires: azure-cli-nspkg
-Requires: python3-azure-mgmt-kusto >= 0.2.0
+Requires: python3-azure-mgmt-kusto >= 0.3.0
Requires: python3-azure-nspkg >= 3.0.0
Requires: python3-six
Conflicts: azure-cli < 2.0.0
++++++ azure-cli-kusto-0.1.0.tar.gz -> azure-cli-kusto-0.2.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-cli-kusto-0.1.0/HISTORY.rst
new/azure-cli-kusto-0.2.3/HISTORY.rst
--- old/azure-cli-kusto-0.1.0/HISTORY.rst 2019-01-25 20:43:40.000000000
+0100
+++ new/azure-cli-kusto-0.2.3/HISTORY.rst 2019-06-13 23:17:46.000000000
+0200
@@ -3,7 +3,23 @@
Release History
===============
-0.1.0
+0.2.3
++++++
+Minor fixes.
+
+0.2.2
++++++
+Minor fixes.
+
+0.2.1
+++++
+* kusto dependency bug fix
+0.2.0
++++++
+* Changed hot_cache_period and soft_delete_period types for database to
ISO8601 duration format.
+
+
+0.1.0
++++++
* Preview release.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-cli-kusto-0.1.0/PKG-INFO
new/azure-cli-kusto-0.2.3/PKG-INFO
--- old/azure-cli-kusto-0.1.0/PKG-INFO 2019-01-25 20:44:07.000000000 +0100
+++ new/azure-cli-kusto-0.2.3/PKG-INFO 2019-06-13 23:18:05.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: azure-cli-kusto
-Version: 0.1.0
+Version: 0.2.3
Summary: Microsoft Azure Command-Line Tools KUSTO Command Module
Home-page: https://github.com/Azure/azure-cli
Author: Microsoft Corporation
@@ -16,9 +16,25 @@
Release History
===============
- 0.1.0
+ 0.2.3
+ +++++
+ Minor fixes.
+
+ 0.2.2
+ +++++
+ Minor fixes.
+
+ 0.2.1
+++++
+ * kusto dependency bug fix
+ 0.2.0
+ +++++
+ * Changed hot_cache_period and soft_delete_period types for database
to ISO8601 duration format.
+
+
+ 0.1.0
+ +++++
* Preview release.
Platform: UNKNOWN
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-kusto-0.1.0/azure/cli/command_modules/kusto/__init__.py
new/azure-cli-kusto-0.2.3/azure/cli/command_modules/kusto/__init__.py
--- old/azure-cli-kusto-0.1.0/azure/cli/command_modules/kusto/__init__.py
2019-01-25 20:43:40.000000000 +0100
+++ new/azure-cli-kusto-0.2.3/azure/cli/command_modules/kusto/__init__.py
2019-06-13 23:17:46.000000000 +0200
@@ -12,10 +12,11 @@
def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
+ from azure.cli.core.profiles import ResourceType
kusto_custom =
CliCommandType(operations_tmpl='azure.cli.command_modules.kusto.custom#{}')
super(KustoCommandsLoader, self).__init__(cli_ctx=cli_ctx,
custom_command_type=kusto_custom,
-
min_profile='2017-03-10-profile')
+
resource_type=ResourceType.MGMT_KUSTO)
def load_command_table(self, args):
from azure.cli.command_modules.kusto.commands import load_command_table
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-kusto-0.1.0/azure/cli/command_modules/kusto/_help.py
new/azure-cli-kusto-0.2.3/azure/cli/command_modules/kusto/_help.py
--- old/azure-cli-kusto-0.1.0/azure/cli/command_modules/kusto/_help.py
2019-01-25 20:43:40.000000000 +0100
+++ new/azure-cli-kusto-0.2.3/azure/cli/command_modules/kusto/_help.py
2019-06-13 23:17:46.000000000 +0200
@@ -83,7 +83,7 @@
examples:
- name: create a Kusto Database.
text: |-
- az kusto database create --cluster-name myclustername -g myrgname
-n mydbname --soft-delete-period 365:00:00:00 --hot-cache-period 31:00:00:00
+ az kusto database create --cluster-name myclustername -g myrgname
-n mydbname --soft-delete-period P365D --hot-cache-period P31D
"""
@@ -93,7 +93,7 @@
examples:
- name: create a Kusto Database.
text: |-
- az kusto database update --cluster-name myclustername -g myrgname -n
mydbname --soft-delete-period 3650:00:00:00 --hot-cache-period 30:00:00:00
+ az kusto database update --cluster-name myclustername -g myrgname -n
mydbname --soft-delete-period P365D --hot-cache-period P30D
"""
helps['kusto database delete'] = """
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-kusto-0.1.0/azure/cli/command_modules/kusto/_params.py
new/azure-cli-kusto-0.2.3/azure/cli/command_modules/kusto/_params.py
--- old/azure-cli-kusto-0.1.0/azure/cli/command_modules/kusto/_params.py
2019-01-25 20:43:40.000000000 +0100
+++ new/azure-cli-kusto-0.2.3/azure/cli/command_modules/kusto/_params.py
2019-06-13 23:17:46.000000000 +0200
@@ -6,9 +6,11 @@
# pylint: disable=line-too-long
from knack.arguments import CLIArgumentType
-from azure.cli.core.commands.parameters import (name_type)
-from azure.mgmt.kusto.models import AzureSkuName
-from azure.cli.core.commands.parameters import (get_enum_type)
+from azure.cli.core.commands.parameters import (name_type, get_enum_type)
+
+from .custom import (
+ AzureSkuName
+)
def load_arguments(self, _):
@@ -16,7 +18,7 @@
# Kusto clusters
sku_arg_type = CLIArgumentType(help='The name of the sku.',
arg_type=get_enum_type(AzureSkuName))
- time_format_explenation = 'Time format is DDDD:HH:MM:SS (for example, 10
years would be 3650:00:00:00).'
+ time_format_explenation = 'Duration in ISO8601 format (for example, 100
days would be P100D).'
with self.argument_context('kusto cluster') as c:
c.ignore('kusto_management_request_options')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-kusto-0.1.0/azure/cli/command_modules/kusto/_validators.py
new/azure-cli-kusto-0.2.3/azure/cli/command_modules/kusto/_validators.py
--- old/azure-cli-kusto-0.1.0/azure/cli/command_modules/kusto/_validators.py
2019-01-25 20:43:40.000000000 +0100
+++ new/azure-cli-kusto-0.2.3/azure/cli/command_modules/kusto/_validators.py
2019-06-13 23:17:46.000000000 +0200
@@ -5,38 +5,8 @@
from knack.util import CLIError
-def validate_database_args(namespace):
- if namespace.hot_cache_period:
- hot_cache_period_in_days =
round_hot_cache_to_days(namespace.hot_cache_period)
- if hot_cache_period_in_days < 0:
- raise CLIError('hot_cache_period must be a valid time')
- if namespace.soft_delete_period:
- soft_delete_period_in_days =
round_soft_delete_to_days(namespace.soft_delete_period)
- if soft_delete_period_in_days < 0:
- raise CLIError('soft_delete_period must be a valid time')
-
-
def validate_cluster_args(namespace):
max_name_length = 22
name_length = len(namespace.cluster_name)
if name_length > max_name_length:
raise CLIError('name can not be longer then ' + str(max_name_length) +
" letters")
-
-
-def round_hot_cache_to_days(time):
- return round_timedelta_to_days(time, 'hot_cache_period')
-
-
-def round_soft_delete_to_days(time):
- return round_timedelta_to_days(time, 'soft_delete_period')
-
-
-def round_timedelta_to_days(time, parameter_name):
- try:
- splitted = time.split(":")
- numberOfDays = int(splitted[0])
- if int(splitted[1]) > 0:
- numberOfDays += 1
- return numberOfDays
- except:
- raise CLIError(parameter_name + ' must be a valid time format')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-kusto-0.1.0/azure/cli/command_modules/kusto/commands.py
new/azure-cli-kusto-0.2.3/azure/cli/command_modules/kusto/commands.py
--- old/azure-cli-kusto-0.1.0/azure/cli/command_modules/kusto/commands.py
2019-01-25 20:43:40.000000000 +0100
+++ new/azure-cli-kusto-0.2.3/azure/cli/command_modules/kusto/commands.py
2019-06-13 23:17:46.000000000 +0200
@@ -6,18 +6,18 @@
# pylint: disable=line-too-long
from azure.cli.command_modules.kusto._client_factory import cf_cluster,
cf_database
-from azure.cli.command_modules.kusto._validators import validate_cluster_args,
validate_database_args
+from azure.cli.command_modules.kusto._validators import validate_cluster_args
def load_command_table(self, _):
from azure.cli.core.commands import CliCommandType
clusters_operations = CliCommandType(
-
operations_tmpl='azure.mgmt.kusto.operations.clusters_operations#ClustersOperations.{}',
+ operations_tmpl='azure.mgmt.kusto.operations#ClustersOperations.{}',
client_factory=cf_cluster)
database_operations = CliCommandType(
-
operations_tmpl='azure.mgmt.kusto.operations.databases_operations#DatabasesOperations.{}',
+ operations_tmpl='azure.mgmt.kusto.operations#DatabasesOperations.{}',
client_factory=cf_database)
with self.command_group('kusto cluster',
@@ -35,9 +35,9 @@
with self.command_group('kusto database',
database_operations,
client_factory=cf_database) as g:
- g.custom_command('create', 'database_create', supports_no_wait=True,
validator=validate_database_args)
+ g.custom_command('create', 'database_create', supports_no_wait=True)
g.command('delete', 'delete', confirmation=True)
- g.generic_update_command('update',
custom_func_name='update_kusto_database', validator=validate_database_args,
supports_no_wait=True)
+ g.generic_update_command('update',
custom_func_name='update_kusto_database', supports_no_wait=True)
g.command('list', 'list_by_cluster')
g.show_command('show', 'get')
g.wait_command('wait')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-kusto-0.1.0/azure/cli/command_modules/kusto/custom.py
new/azure-cli-kusto-0.2.3/azure/cli/command_modules/kusto/custom.py
--- old/azure-cli-kusto-0.1.0/azure/cli/command_modules/kusto/custom.py
2019-01-25 20:43:40.000000000 +0100
+++ new/azure-cli-kusto-0.2.3/azure/cli/command_modules/kusto/custom.py
2019-06-13 23:17:46.000000000 +0200
@@ -2,15 +2,26 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
license information.
#
--------------------------------------------------------------------------------------------
+from enum import Enum
from knack.log import get_logger
from azure.mgmt.resource import ResourceManagementClient
from azure.cli.core.commands.client_factory import get_mgmt_service_client
-from azure.cli.command_modules.kusto._validators import
round_hot_cache_to_days, round_soft_delete_to_days
from azure.cli.core.util import sdk_no_wait
logger = get_logger(__name__)
+class AzureSkuName(Enum):
+ # TODO: use AzureSkuName from Kusto python module in the new kusto python
version
+ d13_v2 = "D13_v2"
+ d14_v2 = "D14_v2"
+ l8 = "L8"
+ l16 = "L16"
+ d11_v2 = "D11_v2"
+ d12_v2 = "D12_v2"
+ l4 = "L4"
+
+
def cluster_create(cmd,
resource_group_name,
cluster_name,
@@ -106,7 +117,7 @@
resource_group_name,
cluster_name,
database_name,
- soft_delete_period,
+ soft_delete_period=None,
hot_cache_period=None,
custom_headers=None,
raw=False,
@@ -125,12 +136,9 @@
else:
location = _cluster.location
- soft_delete_period_in_days = round_soft_delete_to_days(soft_delete_period)
- hot_cache_period_in_days = round_hot_cache_to_days(hot_cache_period)
-
_database = Database(location=location,
- soft_delete_period_in_days=soft_delete_period_in_days,
- hot_cache_period_in_days=hot_cache_period_in_days)
+ soft_delete_period=soft_delete_period,
+ hot_cache_period=hot_cache_period)
return sdk_no_wait(no_wait,
_client.create_or_update,
@@ -157,11 +165,8 @@
def update_kusto_database(instance, soft_delete_period, hot_cache_period=None):
- soft_delete_period_in_days = round_soft_delete_to_days(soft_delete_period)
- hot_cache_period_in_days = round_hot_cache_to_days(hot_cache_period)
-
- instance.soft_delete_period_in_days = soft_delete_period_in_days
- instance.hot_cache_period_in_days = hot_cache_period_in_days
+ instance.soft_delete_period = soft_delete_period
+ instance.hot_cache_period = hot_cache_period
return instance
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-kusto-0.1.0/azure_cli_kusto.egg-info/PKG-INFO
new/azure-cli-kusto-0.2.3/azure_cli_kusto.egg-info/PKG-INFO
--- old/azure-cli-kusto-0.1.0/azure_cli_kusto.egg-info/PKG-INFO 2019-01-25
20:44:07.000000000 +0100
+++ new/azure-cli-kusto-0.2.3/azure_cli_kusto.egg-info/PKG-INFO 2019-06-13
23:18:05.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: azure-cli-kusto
-Version: 0.1.0
+Version: 0.2.3
Summary: Microsoft Azure Command-Line Tools KUSTO Command Module
Home-page: https://github.com/Azure/azure-cli
Author: Microsoft Corporation
@@ -16,9 +16,25 @@
Release History
===============
- 0.1.0
+ 0.2.3
+ +++++
+ Minor fixes.
+
+ 0.2.2
+ +++++
+ Minor fixes.
+
+ 0.2.1
+++++
+ * kusto dependency bug fix
+ 0.2.0
+ +++++
+ * Changed hot_cache_period and soft_delete_period types for database
to ISO8601 duration format.
+
+
+ 0.1.0
+ +++++
* Preview release.
Platform: UNKNOWN
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-kusto-0.1.0/azure_cli_kusto.egg-info/requires.txt
new/azure-cli-kusto-0.2.3/azure_cli_kusto.egg-info/requires.txt
--- old/azure-cli-kusto-0.1.0/azure_cli_kusto.egg-info/requires.txt
2019-01-25 20:44:07.000000000 +0100
+++ new/azure-cli-kusto-0.2.3/azure_cli_kusto.egg-info/requires.txt
2019-06-13 23:18:05.000000000 +0200
@@ -1,3 +1,3 @@
azure-cli-core
-azure-mgmt-kusto==0.2.0
+azure-mgmt-kusto==0.3.0
six
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-cli-kusto-0.1.0/setup.py
new/azure-cli-kusto-0.2.3/setup.py
--- old/azure-cli-kusto-0.1.0/setup.py 2019-01-25 20:43:40.000000000 +0100
+++ new/azure-cli-kusto-0.2.3/setup.py 2019-06-13 23:17:46.000000000 +0200
@@ -12,7 +12,7 @@
logger.warn("Wheel is not available, disabling bdist_wheel hook")
cmdclass = {}
-VERSION = "0.1.0"
+VERSION = "0.2.3"
CLASSIFIERS = [
'Development Status :: 4 - Beta',
@@ -30,7 +30,7 @@
DEPENDENCIES = [
'azure-cli-core',
- 'azure-mgmt-kusto==0.2.0',
+ 'azure-mgmt-kusto==0.3.0',
'six'
]