Hello community, here is the log from the commit of package azure-cli-billing for openSUSE:Factory checked in at 2018-02-14 09:29:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/azure-cli-billing (Old) and /work/SRC/openSUSE:Factory/.azure-cli-billing.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "azure-cli-billing" Wed Feb 14 09:29:58 2018 rev:2 rq:574798 version:0.1.7 Changes: -------- --- /work/SRC/openSUSE:Factory/azure-cli-billing/azure-cli-billing.changes 2017-11-10 14:52:38.294405680 +0100 +++ /work/SRC/openSUSE:Factory/.azure-cli-billing.new/azure-cli-billing.changes 2018-02-14 09:30:00.027005561 +0100 @@ -1,0 +2,9 @@ +Wed Feb 7 14:49:30 UTC 2018 - [email protected] + +- New upstream release + + Version 0.1.7 + + For detailed information about changes see the + HISTORY.rst file provided with this package +- Install HISTORY.rst into doc directory + +------------------------------------------------------------------- Old: ---- azure-cli-billing-0.1.5.tar.gz New: ---- azure-cli-billing-0.1.7.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ azure-cli-billing.spec ++++++ --- /var/tmp/diff_new_pack.TSNOaS/_old 2018-02-14 09:30:00.714980631 +0100 +++ /var/tmp/diff_new_pack.TSNOaS/_new 2018-02-14 09:30:00.714980631 +0100 @@ -1,7 +1,7 @@ # # spec file for package azure-cli-billing # -# 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-billing -Version: 0.1.5 +Version: 0.1.7 Release: 0 Summary: Microsoft Azure CLI 'billing' Command Module License: MIT @@ -24,16 +25,16 @@ Url: https://github.com/Azure/azure-cli Source: https://files.pythonhosted.org/packages/source/a/azure-cli-billing/azure-cli-billing-%{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-nspkg -Requires: python3-azure-nspkg Requires: python3-azure-mgmt-billing >= 0.1.0 +Requires: python3-azure-nspkg Conflicts: azure-cli < 2.0.0 BuildArch: noarch @@ -62,7 +63,8 @@ %files %defattr(-,root,root,-) -%doc LICENSE.txt README.rst +%doc HISTORY.rst LICENSE.txt README.rst %{python3_sitelib}/azure/cli/command_modules/billing %{python3_sitelib}/azure_cli_billing-*.egg-info + %changelog ++++++ azure-cli-billing-0.1.5.tar.gz -> azure-cli-billing-0.1.7.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-billing-0.1.5/HISTORY.rst new/azure-cli-billing-0.1.7/HISTORY.rst --- old/azure-cli-billing-0.1.5/HISTORY.rst 2017-09-23 01:47:00.000000000 +0200 +++ new/azure-cli-billing-0.1.7/HISTORY.rst 2018-01-05 22:11:35.000000000 +0100 @@ -2,6 +2,15 @@ Release History =============== + +0.1.7 +++++++ +* Update for CLI core changes. + +0.1.6 ++++++ +* minor fixes + 0.1.5 (2017-09-22) ++++++++++++++++++ * minor fixes diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-billing-0.1.5/PKG-INFO new/azure-cli-billing-0.1.7/PKG-INFO --- old/azure-cli-billing-0.1.5/PKG-INFO 2017-09-23 01:47:26.000000000 +0200 +++ new/azure-cli-billing-0.1.7/PKG-INFO 2018-01-05 22:12:04.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: azure-cli-billing -Version: 0.1.5 +Version: 0.1.7 Summary: Microsoft Azure Command-Line Tools Billing Command Module Home-page: https://github.com/Azure/azure-cli Author: Microsoft Corporation @@ -20,6 +20,15 @@ Release History =============== + + 0.1.7 + ++++++ + * Update for CLI core changes. + + 0.1.6 + +++++ + * minor fixes + 0.1.5 (2017-09-22) ++++++++++++++++++ * minor fixes diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-billing-0.1.5/azure/cli/command_modules/billing/__init__.py new/azure-cli-billing-0.1.7/azure/cli/command_modules/billing/__init__.py --- old/azure-cli-billing-0.1.5/azure/cli/command_modules/billing/__init__.py 2017-09-23 01:47:00.000000000 +0200 +++ new/azure-cli-billing-0.1.7/azure/cli/command_modules/billing/__init__.py 2018-01-05 22:11:35.000000000 +0100 @@ -3,12 +3,27 @@ # 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.billing._help # pylint: disable=unused-import -def load_params(_): - import azure.cli.command_modules.billing._params # pylint: disable=redefined-outer-name, unused-variable +class BillingCommandsLoader(AzCommandsLoader): + + def __init__(self, cli_ctx=None): + from azure.cli.core.commands import CliCommandType + billing_custom = CliCommandType(operations_tmpl='azure.cli.command_modules.billing.custom#{}') + super(BillingCommandsLoader, self).__init__(cli_ctx=cli_ctx, custom_command_type=billing_custom, + min_profile="2017-03-10-profile") + + def load_command_table(self, args): + from azure.cli.command_modules.billing.commands import load_command_table + load_command_table(self, args) + return self.command_table + + def load_arguments(self, command): + from azure.cli.command_modules.billing._params import load_arguments + load_arguments(self, command) -def load_commands(): - import azure.cli.command_modules.billing.commands # pylint: disable=redefined-outer-name, unused-variable +COMMAND_LOADER_CLS = BillingCommandsLoader diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-billing-0.1.5/azure/cli/command_modules/billing/_client_factory.py new/azure-cli-billing-0.1.7/azure/cli/command_modules/billing/_client_factory.py --- old/azure-cli-billing-0.1.5/azure/cli/command_modules/billing/_client_factory.py 2017-09-23 01:47:00.000000000 +0200 +++ new/azure-cli-billing-0.1.7/azure/cli/command_modules/billing/_client_factory.py 2018-01-05 22:11:35.000000000 +0100 @@ -4,15 +4,15 @@ # -------------------------------------------------------------------------------------------- -def cf_billing(**_): +def cf_billing(cli_ctx, **_): from azure.cli.core.commands.client_factory import get_mgmt_service_client from azure.mgmt.billing import BillingManagementClient - return get_mgmt_service_client(BillingManagementClient) + return get_mgmt_service_client(cli_ctx, BillingManagementClient) -def invoices_mgmt_client_factory(kwargs): - return cf_billing(**kwargs).invoices +def invoices_mgmt_client_factory(cli_ctx, kwargs): + return cf_billing(cli_ctx, **kwargs).invoices -def billing_periods_mgmt_client_factory(kwargs): - return cf_billing(**kwargs).billing_periods +def billing_periods_mgmt_client_factory(cli_ctx, kwargs): + return cf_billing(cli_ctx, **kwargs).billing_periods diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-billing-0.1.5/azure/cli/command_modules/billing/_exception_handler.py new/azure-cli-billing-0.1.7/azure/cli/command_modules/billing/_exception_handler.py --- old/azure-cli-billing-0.1.5/azure/cli/command_modules/billing/_exception_handler.py 2017-09-23 01:47:00.000000000 +0200 +++ new/azure-cli-billing-0.1.7/azure/cli/command_modules/billing/_exception_handler.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.util import CLIError +from knack.util import CLIError def billing_exception_handler(ex): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-billing-0.1.5/azure/cli/command_modules/billing/_help.py new/azure-cli-billing-0.1.7/azure/cli/command_modules/billing/_help.py --- old/azure-cli-billing-0.1.5/azure/cli/command_modules/billing/_help.py 2017-09-23 01:47:00.000000000 +0200 +++ new/azure-cli-billing-0.1.7/azure/cli/command_modules/billing/_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['billing'] = """ type: group diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-billing-0.1.5/azure/cli/command_modules/billing/_params.py new/azure-cli-billing-0.1.7/azure/cli/command_modules/billing/_params.py --- old/azure-cli-billing-0.1.5/azure/cli/command_modules/billing/_params.py 2017-09-23 01:47:00.000000000 +0200 +++ new/azure-cli-billing-0.1.7/azure/cli/command_modules/billing/_params.py 2018-01-05 22:11:35.000000000 +0100 @@ -3,9 +3,14 @@ # 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 import register_cli_argument +def load_arguments(self, _): + with self.argument_context('billing invoice list') as c: + c.argument('generate_url', options_list=['--generate-download-url', '-d'], action='store_true', required=False, help='generate download url of the invoice') + + with self.argument_context('billing invoice show') as c: + c.argument('name', options_list=['--name', '-n'], required=False, help='name of the invoice') -register_cli_argument('billing invoice list', 'generate_url', options_list=('--generate-download-url', '-d'), action='store_true', required=False, help='generate download url of the invoice') -register_cli_argument('billing invoice show', 'name', options_list=('--name', '-n'), required=False, help='name of the invoice') -register_cli_argument('billing period show', 'billing_period_name', options_list=('--name', '-n'), help='name of the billing period') + with self.argument_context('billing period show') as c: + c.argument('billing_period_name', options_list=['--name', '-n'], help='name of the billing period') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-billing-0.1.5/azure/cli/command_modules/billing/_transformers.py new/azure-cli-billing-0.1.7/azure/cli/command_modules/billing/_transformers.py --- old/azure-cli-billing-0.1.5/azure/cli/command_modules/billing/_transformers.py 2017-09-23 01:47:00.000000000 +0200 +++ new/azure-cli-billing-0.1.7/azure/cli/command_modules/billing/_transformers.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,24 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - - -def transform_invoice_output(result): - result.invoice_period_start_date = result.invoice_period_start_date.strftime("%Y-%m-%d") - result.invoice_period_end_date = result.invoice_period_end_date.strftime("%Y-%m-%d") - return result - - -def transform_invoice_list_output(result): - return [transform_invoice_output(item) for item in result] - - -def transform_billing_period_output(result): - result.billing_period_start_date = result.billing_period_start_date.strftime("%Y-%m-%d") - result.billing_period_end_date = result.billing_period_end_date.strftime("%Y-%m-%d") - return result - - -def transform_billing_period_list_output(result): - return [transform_billing_period_output(item) for item in result] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-billing-0.1.5/azure/cli/command_modules/billing/commands.py new/azure-cli-billing-0.1.7/azure/cli/command_modules/billing/commands.py --- old/azure-cli-billing-0.1.5/azure/cli/command_modules/billing/commands.py 2017-09-23 01:47:00.000000000 +0200 +++ new/azure-cli-billing-0.1.7/azure/cli/command_modules/billing/commands.py 2018-01-05 22:11:35.000000000 +0100 @@ -5,26 +5,29 @@ # pylint: disable=line-too-long -from azure.cli.core.commands import cli_command -from azure.cli.core.profiles import supported_api_version, PROFILE_TYPE -from azure.cli.command_modules.billing._client_factory import \ - (invoices_mgmt_client_factory, - billing_periods_mgmt_client_factory) -from azure.cli.command_modules.billing._transformers import \ - (transform_invoice_list_output, - transform_invoice_output, - transform_billing_period_output, - transform_billing_period_list_output) +from azure.cli.core.commands import CliCommandType +from azure.cli.command_modules.billing._client_factory import ( + invoices_mgmt_client_factory, billing_periods_mgmt_client_factory) from ._exception_handler import billing_exception_handler -if not supported_api_version(PROFILE_TYPE, max_api='2017-03-09-profile'): - billing_periods_path = 'azure.mgmt.billing.operations.billing_periods_operations#' - custom_path = 'azure.cli.command_modules.billing.custom#' - - def billing_command(*args, **kwargs): - cli_command(*args, exception_handler=billing_exception_handler, **kwargs) - - billing_command(__name__, 'billing invoice list', custom_path + 'cli_billing_list_invoices', invoices_mgmt_client_factory, transform=transform_invoice_list_output) - billing_command(__name__, 'billing invoice show', custom_path + 'cli_billing_get_invoice', invoices_mgmt_client_factory, transform=transform_invoice_output) - billing_command(__name__, 'billing period list', custom_path + 'cli_billing_list_periods', billing_periods_mgmt_client_factory, transform=transform_billing_period_list_output) - billing_command(__name__, 'billing period show', billing_periods_path + 'BillingPeriodsOperations.get', billing_periods_mgmt_client_factory, transform=transform_billing_period_output) + +def load_command_table(self, _): + billing_invoice_util = CliCommandType( + operations_tmpl='azure.mgmt.billing.operations.invoices_operations#InvoicesOperations.{}', + client_factory=invoices_mgmt_client_factory, + exception_handler=billing_exception_handler + ) + + billing_period_util = CliCommandType( + operations_tmpl='azure.mgmt.billing.operations.billing_periods_operations#BillingPeriodsOperations.{}', + client_factory=billing_periods_mgmt_client_factory, + exception_handler=billing_exception_handler + ) + + with self.command_group('billing invoice', billing_invoice_util, client_factory=invoices_mgmt_client_factory) as g: + g.custom_command('list', 'cli_billing_list_invoices') + g.custom_command('show', 'cli_billing_get_invoice') + + with self.command_group('billing period', billing_period_util, client_factory=billing_periods_mgmt_client_factory) as g: + g.custom_command('list', 'cli_billing_list_periods') + g.command('show', 'get') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-billing-0.1.5/azure_cli_billing.egg-info/PKG-INFO new/azure-cli-billing-0.1.7/azure_cli_billing.egg-info/PKG-INFO --- old/azure-cli-billing-0.1.5/azure_cli_billing.egg-info/PKG-INFO 2017-09-23 01:47:25.000000000 +0200 +++ new/azure-cli-billing-0.1.7/azure_cli_billing.egg-info/PKG-INFO 2018-01-05 22:12:04.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: azure-cli-billing -Version: 0.1.5 +Version: 0.1.7 Summary: Microsoft Azure Command-Line Tools Billing Command Module Home-page: https://github.com/Azure/azure-cli Author: Microsoft Corporation @@ -20,6 +20,15 @@ Release History =============== + + 0.1.7 + ++++++ + * Update for CLI core changes. + + 0.1.6 + +++++ + * minor fixes + 0.1.5 (2017-09-22) ++++++++++++++++++ * minor fixes diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-billing-0.1.5/azure_cli_billing.egg-info/SOURCES.txt new/azure-cli-billing-0.1.7/azure_cli_billing.egg-info/SOURCES.txt --- old/azure-cli-billing-0.1.5/azure_cli_billing.egg-info/SOURCES.txt 2017-09-23 01:47:25.000000000 +0200 +++ new/azure-cli-billing-0.1.7/azure_cli_billing.egg-info/SOURCES.txt 2018-01-05 22:12:04.000000000 +0100 @@ -11,7 +11,6 @@ azure/cli/command_modules/billing/_exception_handler.py azure/cli/command_modules/billing/_help.py azure/cli/command_modules/billing/_params.py -azure/cli/command_modules/billing/_transformers.py azure/cli/command_modules/billing/commands.py azure/cli/command_modules/billing/custom.py azure_cli_billing.egg-info/PKG-INFO diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-billing-0.1.5/azure_cli_billing.egg-info/requires.txt new/azure-cli-billing-0.1.7/azure_cli_billing.egg-info/requires.txt --- old/azure-cli-billing-0.1.5/azure_cli_billing.egg-info/requires.txt 2017-09-23 01:47:25.000000000 +0200 +++ new/azure-cli-billing-0.1.7/azure_cli_billing.egg-info/requires.txt 2018-01-05 22:12:04.000000000 +0100 @@ -1,3 +1,2 @@ azure-mgmt-billing==0.1.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-billing-0.1.5/setup.py new/azure-cli-billing-0.1.7/setup.py --- old/azure-cli-billing-0.1.5/setup.py 2017-09-23 01:47:25.000000000 +0200 +++ new/azure-cli-billing-0.1.7/setup.py 2018-01-05 22:11:35.000000000 +0100 @@ -16,7 +16,7 @@ cmdclass = {} -VERSION = "0.1.5" +VERSION = "0.1.7" # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers CLASSIFIERS = [
