commit python-ceilometerclient for openSUSE:Factory
Hello community, here is the log from the commit of package python-ceilometerclient for openSUSE:Factory checked in at 2017-08-28 15:29:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-ceilometerclient (Old) and /work/SRC/openSUSE:Factory/.python-ceilometerclient.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-ceilometerclient" Mon Aug 28 15:29:53 2017 rev:24 rq:514859 version:2.9.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-ceilometerclient/python-ceilometerclient.changes 2017-02-21 13:42:59.566559378 +0100 +++ /work/SRC/openSUSE:Factory/.python-ceilometerclient.new/python-ceilometerclient.changes 2017-08-28 15:29:55.337147098 +0200 @@ -1,0 +2,14 @@ +Mon Aug 7 08:17:58 UTC 2017 - cloud-devel@suse.de + +- update to version 2.9.0 + - Deprecate ceilometerclient + - shell: do not force domain to be present + - Remove log translations + - [bugfix]with keystone v3 Could not find domain: default. + - Adjust parameters order of tenant_xxx and project_xxx + - Handle log message interpolation by the logger + - delete bash_completion in subcommand + - Remove support for py34 + - Update reno for stable/ocata + +------------------------------------------------------------------- Old: ---- python-ceilometerclient-2.8.0.tar.gz New: ---- python-ceilometerclient-2.9.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-ceilometerclient.spec ++++++ --- /var/tmp/diff_new_pack.cQalxL/_old 2017-08-28 15:29:55.961059390 +0200 +++ /var/tmp/diff_new_pack.cQalxL/_new 2017-08-28 15:29:55.961059390 +0200 @@ -18,7 +18,7 @@ %global sname python-ceilometerclient Name: python-ceilometerclient -Version: 2.8.0 +Version: 2.9.0 Release: 0 Summary: Python API and CLI for OpenStack Ceilometer License: Apache-2.0 @@ -28,30 +28,30 @@ BuildRequires: openstack-macros BuildRequires: python-PrettyTable >= 0.7.1 BuildRequires: python-devel -BuildRequires: python-keystoneauth1 >= 2.17.0 +BuildRequires: python-keystoneauth1 >= 2.21.0 BuildRequires: python-mock >= 2.0 BuildRequires: python-oslo.i18n >= 2.1.0 BuildRequires: python-oslo.serialization >= 1.10.0 -BuildRequires: python-oslo.utils >= 3.18.0 -BuildRequires: python-pbr >= 1.8 -BuildRequires: python-requests >= 2.10.0 +BuildRequires: python-oslo.utils >= 3.20.0 +BuildRequires: python-pbr >= 2.0.0 +BuildRequires: python-requests >= 2.14.2 BuildRequires: python-requests-mock >= 1.1 BuildRequires: python-setuptools >= 16.0 BuildRequires: python-six >= 1.9.0 -BuildRequires: python-stevedore >= 1.17.1 +BuildRequires: python-stevedore >= 1.20.0 BuildRequires: python-testrepository >= 0.0.18 BuildRequires: python-testscenarios >= 0.4 BuildRequires: python-testtools >= 1.4.0 Requires: python-PrettyTable >= 0.7.1 Requires: python-iso8601 >= 0.1.11 -Requires: python-keystoneauth1 >= 2.17.0 +Requires: python-keystoneauth1 >= 2.21.0 Requires: python-oslo.i18n >= 2.1.0 Requires: python-oslo.serialization >= 1.10.0 -Requires: python-oslo.utils >= 3.18.0 -Requires: python-pbr >= 1.8 -Requires: python-requests >= 2.10.0 +Requires: python-oslo.utils >= 3.20.0 +Requires: python-pbr >= 2.0.0 +Requires: python-requests >= 2.14.2 Requires: python-six >= 1.9.0 -Requires: python-stevedore >= 1.17.1 +Requires: python-stevedore >= 1.20.0 BuildArch: noarch %description ++++++ _service ++++++ --- /var/tmp/diff_new_pack.cQalxL/_old 2017-08-28 15:29:56.037048707 +0200 +++ /var/tmp/diff_new_pack.cQalxL/_new 2017-08-28 15:29:56.037048707 +0200 @@ -1,8 +1,8 @@ <services> <service mode="disabled" name="renderspec"> - <param name="input-template">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/ocata/openstack/python-ceilometerclient/python-ceilometerclient.spec.j2</param> + <param name="input-template">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/pike/openstack/python-ceilometerclient/python-ceilometerclient.spec.j2</param> <param name="output-name">python-ceilometerclient.spec</param> - <param name="requirements">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/ocata/global-requirements.txt</param> + <param name="requirements">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/pike/global-requirements.txt</param> <param name="changelog-email">cloud-devel@suse.de</param> <param name="changelog-provider">gh,openstack,python-ceilometerclient</param> </service> ++++++ python-ceilometerclient-2.8.0.tar.gz -> python-ceilometerclient-2.9.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ceilometerclient-2.8.0/AUTHORS new/python-ceilometerclient-2.9.0/AUTHORS --- old/python-ceilometerclient-2.8.0/AUTHORS 2017-01-25 20:32:11.000000000 +0100 +++ new/python-ceilometerclient-2.9.0/AUTHORS 2017-06-12 15:27:21.000000000 +0200 @@ -30,8 +30,10 @@ Eric Pendergrass <eap@hp.com> Eugeniya Kudryashova <ekudryashova@mirantis.com> Fabio Giannetti <fabio.giannetti@hp.com> +ForestLee <lichl@hotmail.com> Gordon Chung <chungg@ca.ibm.com> Guangyu Suo <guangyu@unitedstack.com> +Gábor Antal <antal@inf.u-szeged.hu> Hanxi Liu <hanxi.liu@easystack.cn> Igor Degtiarov <idegtiarov@mirantis.com> Ildiko Vancsa <ildiko.vancsa@ericsson.com> @@ -64,6 +66,7 @@ Nejc Saje <nsaje@redhat.com> Noorul Islam K M <noorul@noorul.com> Ondřej Nový <ondrej.novy@firma.seznam.cz> +OpenStack Release Bot <infra-root@openstack.org> Pavlo Shchelokovskyy <pshchelokovskyy@mirantis.com> Pradeep Kilambi <pkilambi@cisco.com> Pradeep Kilambi <pkilambi@redhat.com> @@ -109,6 +112,7 @@ liusheng <liusheng@huawei.com> llg8212 <lilinguo@huawei.com> ls1175 <liusheng@huawei.com> +luqitao <qtlu@fiberhome.com> rabi <ramishra@redhat.com> raiesmh08 <raiesmh08@gmail.com> ricolin <rico.l@inwinstack.com> @@ -122,3 +126,4 @@ yolanda.robla <yolanda.robla@canonical.com> yuyafei <yu.yafei@zte.com.cn> zhangguoqing <zhang.guoqing@99cloud.net> +zhangjianfeng <kill51216@163.com> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ceilometerclient-2.8.0/ChangeLog new/python-ceilometerclient-2.9.0/ChangeLog --- old/python-ceilometerclient-2.8.0/ChangeLog 2017-01-25 20:32:11.000000000 +0100 +++ new/python-ceilometerclient-2.9.0/ChangeLog 2017-06-12 15:27:21.000000000 +0200 @@ -1,6 +1,19 @@ CHANGES ======= +2.9.0 +----- + +* Deprecate ceilometerclient +* [bugfix]with keystone v3 Could not find domain: default +* delete bash\_completion in subcommand +* Remove log translations +* Remove support for py34 +* Handle log message interpolation by the logger +* Adjust parameters order of tenant\_xxx and project\_xxx +* Update reno for stable/ocata +* shell: do not force domain to be present + 2.8.0 ----- @@ -11,10 +24,10 @@ * [doc] Note lack of constraints is a choice * Adding default project and domain if nothing is specified * Don't include openstack/common in flake8 exclude list -* Add __ne__ built-in function +* Add \_\_ne\_\_ built-in function * Bump hacking to 0.12 * move old oslo-incubator code out of openstack/common -* Make method import_versioned_module work +* Make method import\_versioned\_module work 2.7.0 ----- @@ -26,7 +39,7 @@ * Replace assertEqual(None, ...) with assertIsNone(...) * Deprecate alarms commands * Update reno for stable/newton -* Fix from_response method to process response from requests +* Fix from\_response method to process response from requests 2.6.0 ----- @@ -41,8 +54,8 @@ ----- * tools: remove unused scripts -* base.Resource not define __ne__() built-in function -* Ignore aodh_endpoint argument +* base.Resource not define \_\_ne\_\_() built-in function +* Ignore aodh\_endpoint argument * Switch to keystoneauth * Correct the usage of the method assertEqual() * Update the home-page with developer documentation @@ -56,7 +69,7 @@ * Fix the disorder of items of Traits in the output of event-list * remove default value of repeat-actions * Decouple ceilometerclient without aodh services running -* Trivial: remove `None` as a redundant argument to dict.get() +* Trivial: remove \`None\` as a redundant argument to dict.get() * Updated from global requirements * Updated from global requirements * Enhances client to support unique meter retrieval @@ -72,7 +85,7 @@ * drop oslo-incubator modules: cliutils and uuidutils * Updated from global requirements * remove unused code -* fix project_id and user_id fields not set when create gnocchi alarm +* fix project\_id and user\_id fields not set when create gnocchi alarm * Updated from global requirements * improve help docs for cli commands * change the dict output format to make consistency under py27 and py34 @@ -88,12 +101,12 @@ * Fix to disable meter-links from CLI * Use the oslo.utils.reflection to extract the class name * remove py24 compatible code -* Don't copy the auth_plugin for aodh +* Don't copy the auth\_plugin for aodh * Remove openstack-common.conf * Use assertTrue/False instead of assertEqual(T/F) * Improve ceilometer alarm enabled input parameter validation * Updated from global requirements -* Replace assertEqual(None, *) with assertIsNone in tests +* Replace assertEqual(None, \*) with assertIsNone in tests * remove MANIFEST.in * Updated from global requirements * Restructuring a comment in Python-Ceilometerclient @@ -104,7 +117,7 @@ * Fix Python 3 version announced in metadata * Remove py26 support * Fix the parameter order of assertEqual in ceilometerclient -* Fix Resource.__eq__ mismatch semantics of object equal +* Fix Resource.\_\_eq\_\_ mismatch semantics of object equal 2.1.0 ----- @@ -112,9 +125,9 @@ * Updated from global requirements * Token will be lost when constructing a ceilometer client * Correct an api reference error -* Ensure metering is the default service_type +* Ensure metering is the default service\_type * Ensure keystoneauth1 exception are raised -* Ignores endpoint_type if interface is provided +* Ignores endpoint\_type if interface is provided * Remove double API requests * Catch exception raised by keystoneauth1 * Updated from global requirements @@ -149,17 +162,17 @@ * add limit support * do not generate meter links on resource-list -* refactor: move 'repeat_actions' to common args +* refactor: move 'repeat\_actions' to common args * Support alarm-event-{create,update} * Use new location of subunit2html * Updated from global requirements -* Don't try to get aodh endpoint if auth_url didn't provided +* Don't try to get aodh endpoint if auth\_url didn't provided * Updated from global requirements 1.4.0 ----- -* tenant_id not required with keystone v3 +* tenant\_id not required with keystone v3 * Updated from global requirements * Add support for client redirecting to aodh endpoint if available * Updated from global requirements @@ -180,9 +193,9 @@ * Add capability for creating array of samples * Updated from global requirements * Drop use of 'oslo' namespace package -* Pass OS_* env vars fix for tox 2.0 +* Pass OS\_\* env vars fix for tox 2.0 * Catch missing 404 exceptions in client -* Use oslo_utils instead of deprecated oslo.utils +* Use oslo\_utils instead of deprecated oslo.utils * [unittest] Increase client and shell modules cover * Fix alarm-evaluator can't start when ssl was enabled * Updated from global requirements @@ -202,7 +215,7 @@ ----- * Add timeout for keystoneclient session -* add region_name to auth plugin parameters +* add region\_name to auth plugin parameters * Added missing ceilometer CLI tests * Updates examples to reference new sample format * ceilometerclient insecure argument no longer works @@ -211,17 +224,17 @@ * print user friendly error message for alarm update time constraints * ceilometerclient fails with keystone v3 auth * Updated from global requirements -* Set auth_plugin in __init__ +* Set auth\_plugin in \_\_init\_\_ * support specify user-id when create sample and alarm * add in missing options -* Add a post_test_hook for gate-run functional tests +* Add a post\_test\_hook for gate-run functional tests * Add cli functional tests from tempest * alarm: Use new gnocchi aggregation API * Move unit tests into their own subdirectory * Add a py34 target for tox * Fixes bug with Client function not setting up SSL params * Updated from global requirements -* Enable specified project_id in CLI commands +* Enable specified project\_id in CLI commands 1.0.13 ------ @@ -231,7 +244,7 @@ * Allow create/update gnocchi alarm rule * Don't enforce a kind of alarm rules * Support unicode for alarm -* Update get_client() parameters with correct variable names +* Update get\_client() parameters with correct variable names * Add Sample API support * add --no-traits for event-list * Updated from global requirements @@ -261,9 +274,9 @@ * Updated from global requirements * Support os-endpoint-type * Alarm TimeConstraint display incorrect -* Add `requests` to requirements +* Add \`requests\` to requirements * Fix timeout argument not treated as integer -* Refactor tests/test_shell.py +* Refactor tests/test\_shell.py * Add --slowest option for testr * Fix wrong initialization of AuthPlugin for keystone v3 * Updated from global requirements @@ -292,9 +305,9 @@ * Revamp documentation, add module references * Check if the alarm has time constraints field before displaying * Updated from global requirements -* Removed undefined method in install_env.py file +* Removed undefined method in install\_env.py file * Replace assertTrue with assertIsNotNone for check an object -* Add endpoint opt into auth_plugin +* Add endpoint opt into auth\_plugin * Updated from global requirements * Use HTTPClient from common Oslo code * Update developer docs template @@ -313,7 +326,7 @@ * Fix hacking rules: H302,H305,H307,H402 * Updated from global requirements * Fix alarm-threshold-update --query option -* Refactor split_by_op and split_by_datatype +* Refactor split\_by\_op and split\_by\_datatype * Remove © and remove unnecessary encoding lines * use mock instead of try...finally * Avoid unnecessary stderr message when run test @@ -323,7 +336,7 @@ * fixed several pep8 issues * Remove out-dated exceptions * extraneous vim editor configuration comments -* Correct help string about insufficient_data +* Correct help string about insufficient\_data * Avoid dead loop when token is string format * Fix some help strings * Updated from global requirements @@ -343,7 +356,7 @@ * Fix temporary pypy gate issue with setuptools * Add complex query support for alarm history * Add complex query support for alarms -* Checking the type of auth_token, and fixing it if necessary +* Checking the type of auth\_token, and fixing it if necessary * Deprecate 'alarm-update' * Add complex query support for samples * test created virtual env directory should git ignored @@ -353,12 +366,12 @@ * py3kcompat: remove in python-ceilometerclient * Python 3 compatibility * Fix a typo in a comment in v2 client -* test_url_generation_with_proxy: do not use contextlib.nested() +* test\_url\_generation\_with\_proxy: do not use contextlib.nested() * Ensure url sent to proxy don't have redundant / -* Remove unused mock in v2/test_shell.py +* Remove unused mock in v2/test\_shell.py * fix help message of deprecated command * Sync with Oslo -* Python 3: fix format_nested_list_of_dict() +* Python 3: fix format\_nested\_list\_of\_dict() * Remove tox locale overrides * Improve help strings @@ -366,7 +379,7 @@ ----- * Modify ceilometer client cmd line help info -* Remove unused import for print_function +* Remove unused import for print\_function * Remove ununsed httplib2 requirement * Updated from global requirements * Update client to display data type of traits @@ -375,7 +388,7 @@ * Fix typos picked up by misspellings * return sample info when creating sample with CLI * Enable hacking H233 rule -* Using common method 'bool_from_string' from oslo strutils +* Using common method 'bool\_from\_string' from oslo strutils * Raise traceback on error when using CLI and -debug * Remove print debugs statements * replace assertTrue(isinstance) to assertIsInstance @@ -386,10 +399,10 @@ * abbreviating --meter-name to -m in alarm commands * Remove unused imports * Support the Event API -* Python 3: fix test_sample_list +* Python 3: fix test\_sample\_list * Use Resource() class from common Oslo code * client looking at wrong cacert argument name -* Supports bash_completion for ceilometerclient +* Supports bash\_completion for ceilometerclient * Fix the ceilometerlient log curl request incorrectly * Python 3: use six.moves.zip() rather than itertools.izip() * Display message on HTTP 400 @@ -415,7 +428,7 @@ * Enable pep8 E128 checking * Enable pep8 E121/E122/E123 checking * Allow specifying a timestamp when creating a sample -* Avoid reset of repeat_actions attribute on alarm update +* Avoid reset of repeat\_actions attribute on alarm update * Ensure basic logging config is applied * Support building wheels (PEP-427) * Add six to requirements.txt @@ -448,7 +461,7 @@ * Add support for new alarm-history command * Use standard CLI object-verb ordering for alarm-{g|s}set-state -* Fix shell.do_alarm_get_state to get as opposed to set +* Fix shell.do\_alarm\_get\_state to get as opposed to set * Updated from global requirements * Allow to update an alarm partially * Added support to --os-cacert @@ -460,33 +473,33 @@ * Use the new alarm format * Replace OpenStack LLC with OpenStack Foundation -* Pass region_name argument to keystone client +* Pass region\_name argument to keystone client * Adding missing 'statistic' field to alarm-show * Use global openstack requirements * Fix a typo in "sample-create" help message * Added support for running the tests under PyPy with tox -* alarm: rename counter_name to meter_name +* alarm: rename counter\_name to meter\_name 1.0.3 ----- -* Add support for new alarm repeat_actions attribute +* Add support for new alarm repeat\_actions attribute * Updated from global requirements -* Handle case where os_auth_token is set to '' -* Ensure keystoneclient.auth_token is re-evaluated +* Handle case where os\_auth\_token is set to '' +* Ensure keystoneclient.auth\_token is re-evaluated * Fix typo in help text * Enhance ceilometer statistics command with --period 1.0.2 ----- -* Allow to set matching_metadata with the cli +* Allow to set matching\_metadata with the cli * Add support for creating samples * Rename README.md to README.rst * Relax OpenStack upper capping of client versions * Allow Keystoneclient 0.3.x -* Sync install_venv_common from oslo -* Add matching_metadata to the allowed attributes +* Sync install\_venv\_common from oslo +* Add matching\_metadata to the allowed attributes * Move tests to ceilometerclient 1.0.1 @@ -502,7 +515,7 @@ * Use Python 3.x compatible except construct * Add client support for creating new alarms * Add client support for updating alarms -* Fix install_venv.py requirements file +* Fix install\_venv.py requirements file * Enable more pep8 checks * Migrate to pbr * Rename tools/pip-requires to requirements.txt @@ -514,11 +527,11 @@ * Add support for listing alarms * Fix mis-scoped Client class breaking CLI * Use testr to run tests -* Add install_venv_common from oslo +* Add install\_venv\_common from oslo * Update oslo code and split the module lines * Use the utils.BaseTestCase for all tests * Fix pep8 errors in test code -* Remove unused test code in test_util.py +* Remove unused test code in test\_util.py * Fix manifest (README.rst -> README.md) * client does not show version * Sync requirements with openstack-common/requirements @@ -546,7 +559,7 @@ * Update to latest oslo-version * Add tests for samples * Add a test for list by source -* fix the fields in v1 do_meter_list +* fix the fields in v1 do\_meter\_list * Add missing dependencies * Pin pep8 to 1.3.3 * Add support for metadata query @@ -555,6 +568,6 @@ * Revert "Remove the event class and use Meter instead." * Remove the event class and use Meter instead * Make sure the version is prepended -* Fix the default service_type +* Fix the default service\_type * Add basic functionality * Initial Commit diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ceilometerclient-2.8.0/PKG-INFO new/python-ceilometerclient-2.9.0/PKG-INFO --- old/python-ceilometerclient-2.8.0/PKG-INFO 2017-01-25 20:32:11.000000000 +0100 +++ new/python-ceilometerclient-2.9.0/PKG-INFO 2017-06-12 15:27:22.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: python-ceilometerclient -Version: 2.8.0 +Version: 2.9.0 Summary: OpenStack Telemetry API Client Library Home-page: http://docs.openstack.org/developer/python-ceilometerclient Author: OpenStack @@ -46,5 +46,4 @@ Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ceilometerclient-2.8.0/ceilometerclient/apiclient/client.py new/python-ceilometerclient-2.9.0/ceilometerclient/apiclient/client.py --- old/python-ceilometerclient-2.8.0/ceilometerclient/apiclient/client.py 2017-01-25 20:30:37.000000000 +0100 +++ new/python-ceilometerclient-2.9.0/ceilometerclient/apiclient/client.py 2017-06-12 15:24:31.000000000 +0200 @@ -128,9 +128,9 @@ self._safe_header(element, kwargs['headers'][element])) string_parts.append(header) - _logger.debug("REQ: %s" % " ".join(string_parts)) + _logger.debug("REQ: %s", " ".join(string_parts)) if 'data' in kwargs: - _logger.debug("REQ BODY: %s\n" % (kwargs['data'])) + _logger.debug("REQ BODY: %s\n", kwargs['data']) def _http_log_resp(self, resp): if not self.debug: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ceilometerclient-2.8.0/ceilometerclient/client.py new/python-ceilometerclient-2.9.0/ceilometerclient/client.py --- old/python-ceilometerclient-2.8.0/ceilometerclient/client.py 2017-01-25 20:30:37.000000000 +0100 +++ new/python-ceilometerclient-2.9.0/ceilometerclient/client.py 2017-06-12 15:24:31.000000000 +0200 @@ -94,14 +94,10 @@ project_domain_name = kwargs.pop('project_domain_name', None) project_domain_id = kwargs.pop('project_domain_id', None) if v3_auth_url: - if not user_domain_id: - user_domain_id = 'default' if not user_domain_name: - user_domain_name = 'default' - if not project_domain_id: - project_domain_id = 'default' + user_domain_name = 'Default' if not project_domain_name: - project_domain_name = 'default' + project_domain_name = 'Default' auth = None use_domain = (user_domain_id or user_domain_name or @@ -388,7 +384,7 @@ endpoint=endpoint, username=kwargs.get('username'), password=kwargs.get('password'), - tenant_name=kwargs.get('tenant_name') or kwargs.get('project_name'), + tenant_name=kwargs.get('project_name') or kwargs.get('tenant_name'), user_domain_name=kwargs.get('user_domain_name'), user_domain_id=kwargs.get('user_domain_id'), project_domain_name=kwargs.get('project_domain_name'), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ceilometerclient-2.8.0/ceilometerclient/i18n.py new/python-ceilometerclient-2.9.0/ceilometerclient/i18n.py --- old/python-ceilometerclient-2.8.0/ceilometerclient/i18n.py 2017-01-25 20:30:37.000000000 +0100 +++ new/python-ceilometerclient-2.9.0/ceilometerclient/i18n.py 2017-06-12 15:24:31.000000000 +0200 @@ -25,13 +25,3 @@ # The primary translation function using the well-known name "_" _ = _translators.primary - -# Translators for log levels. -# -# The abbreviated names are meant to reflect the usual use of a short -# name like '_'. The "L" is for "log" and the other letter comes from -# the level. -_LI = _translators.log_info -_LW = _translators.log_warning -_LE = _translators.log_error -_LC = _translators.log_critical diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ceilometerclient-2.8.0/ceilometerclient/shell.py new/python-ceilometerclient-2.9.0/ceilometerclient/shell.py --- old/python-ceilometerclient-2.8.0/ceilometerclient/shell.py 2017-01-25 20:30:37.000000000 +0100 +++ new/python-ceilometerclient-2.9.0/ceilometerclient/shell.py 2017-06-12 15:24:31.000000000 +0200 @@ -19,6 +19,7 @@ import argparse import logging import sys +import warnings from oslo_utils import encodeutils from oslo_utils import importutils @@ -117,19 +118,9 @@ version, 'shell') self._find_actions(subparsers, submodule) self._find_actions(subparsers, self) - self._add_bash_completion_subparser(subparsers) return parser - def _add_bash_completion_subparser(self, subparsers): - subparser = subparsers.add_parser( - 'bash_completion', - add_help=False, - formatter_class=HelpFormatter - ) - self.subcommands['bash_completion'] = subparser - subparser.set_defaults(func=self.do_bash_completion) - def _find_actions(self, subparsers, actions_module): for attr in (a for a in dir(actions_module) if a.startswith('do_')): # I prefer to be hypen-separated instead of underscores. @@ -181,16 +172,11 @@ # Return parsed args return api_version, subcommand_parser.parse_args(argv) - @staticmethod - def no_project_and_domain_set(args): - if not (args.os_project_id or (args.os_project_name and - (args.os_user_domain_name or args.os_user_domain_id)) or - (args.os_tenant_id or args.os_tenant_name)): - return True - else: - return False - def main(self, argv): + warnings.warn( + "ceilometerclient is now deprecated as the Ceilometer API has " + "been deprecated. Please use either aodhclient, pankoclient or " + "gnocchiclient.") parsed = self.parse_args(argv) if parsed == 0: return 0 @@ -217,17 +203,12 @@ "either --os-password or via " "env[OS_PASSWORD]") - if self.no_project_and_domain_set(args): + if not (args.os_project_id or args.os_project_name + or args.os_tenant_id or args.os_tenant_name): # steer users towards Keystone V3 API - raise exc.CommandError("You must provide a project_id via " - "either --os-project-id or via " - "env[OS_PROJECT_ID] and " - "a domain_name via either " - "--os-user-domain-name or via " - "env[OS_USER_DOMAIN_NAME] or " - "a domain_id via either " - "--os-user-domain-id or via " - "env[OS_USER_DOMAIN_ID]") + raise exc.CommandError("You must provide a project_id " + "(or name) via either --os-project-id " + "or via env[OS_PROJECT_ID]") if not self.auth_plugin.opts['auth_url']: raise exc.CommandError("You must provide an auth url via " @@ -257,7 +238,6 @@ options.add(option) commands.remove('bash-completion') - commands.remove('bash_completion') print(' '.join(commands | options)) @utils.arg('command', metavar='<subcommand>', nargs='?', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ceilometerclient-2.8.0/ceilometerclient/tests/functional/test_readonly_ceilometer.py new/python-ceilometerclient-2.9.0/ceilometerclient/tests/functional/test_readonly_ceilometer.py --- old/python-ceilometerclient-2.8.0/ceilometerclient/tests/functional/test_readonly_ceilometer.py 2017-01-25 20:30:37.000000000 +0100 +++ new/python-ceilometerclient-2.9.0/ceilometerclient/tests/functional/test_readonly_ceilometer.py 2017-06-12 15:24:31.000000000 +0200 @@ -63,9 +63,5 @@ # Optional arguments - def test_ceilometer_version(self): - version = self.ceilometer('', flags='--version', merge_stderr=True) - self.assertTrue(re.search('^[0-9.]+', version)) - def test_ceilometer_debug_list(self): self.ceilometer('meter-list', flags='--debug') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ceilometerclient-2.8.0/python_ceilometerclient.egg-info/PKG-INFO new/python-ceilometerclient-2.9.0/python_ceilometerclient.egg-info/PKG-INFO --- old/python-ceilometerclient-2.8.0/python_ceilometerclient.egg-info/PKG-INFO 2017-01-25 20:32:11.000000000 +0100 +++ new/python-ceilometerclient-2.9.0/python_ceilometerclient.egg-info/PKG-INFO 2017-06-12 15:27:21.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: python-ceilometerclient -Version: 2.8.0 +Version: 2.9.0 Summary: OpenStack Telemetry API Client Library Home-page: http://docs.openstack.org/developer/python-ceilometerclient Author: OpenStack @@ -46,5 +46,4 @@ Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ceilometerclient-2.8.0/python_ceilometerclient.egg-info/SOURCES.txt new/python-ceilometerclient-2.9.0/python_ceilometerclient.egg-info/SOURCES.txt --- old/python-ceilometerclient-2.8.0/python_ceilometerclient.egg-info/SOURCES.txt 2017-01-25 20:32:11.000000000 +0100 +++ new/python-ceilometerclient-2.9.0/python_ceilometerclient.egg-info/SOURCES.txt 2017-06-12 15:27:22.000000000 +0200 @@ -81,12 +81,14 @@ python_ceilometerclient.egg-info/top_level.txt releasenotes/notes/.placeholder releasenotes/notes/alarm_deprecated-74363d70d48a20e2.yaml +releasenotes/notes/deprecation-44ae455f4ef3a81e.yaml releasenotes/notes/panko-redirect-9d03598dbf51f8fd.yaml releasenotes/source/conf.py releasenotes/source/index.rst releasenotes/source/liberty.rst releasenotes/source/mitaka.rst releasenotes/source/newton.rst +releasenotes/source/ocata.rst releasenotes/source/unreleased.rst releasenotes/source/_static/.placeholder releasenotes/source/_templates/.placeholder diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ceilometerclient-2.8.0/python_ceilometerclient.egg-info/pbr.json new/python-ceilometerclient-2.9.0/python_ceilometerclient.egg-info/pbr.json --- old/python-ceilometerclient-2.8.0/python_ceilometerclient.egg-info/pbr.json 2017-01-25 20:32:11.000000000 +0100 +++ new/python-ceilometerclient-2.9.0/python_ceilometerclient.egg-info/pbr.json 2017-06-12 15:27:21.000000000 +0200 @@ -1 +1 @@ -{"is_release": true, "git_version": "658d7e2"} \ No newline at end of file +{"git_version": "3b4e35a", "is_release": true} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ceilometerclient-2.8.0/releasenotes/notes/deprecation-44ae455f4ef3a81e.yaml new/python-ceilometerclient-2.9.0/releasenotes/notes/deprecation-44ae455f4ef3a81e.yaml --- old/python-ceilometerclient-2.8.0/releasenotes/notes/deprecation-44ae455f4ef3a81e.yaml 1970-01-01 01:00:00.000000000 +0100 +++ new/python-ceilometerclient-2.9.0/releasenotes/notes/deprecation-44ae455f4ef3a81e.yaml 2017-06-12 15:24:31.000000000 +0200 @@ -0,0 +1,6 @@ +--- +deprecations: + - | + As the Ceilometer API has been deprecated, this client is also now marked + as deprecated and will print a warning when used as a command-line + interface tool. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ceilometerclient-2.8.0/releasenotes/source/index.rst new/python-ceilometerclient-2.9.0/releasenotes/source/index.rst --- old/python-ceilometerclient-2.8.0/releasenotes/source/index.rst 2017-01-25 20:30:37.000000000 +0100 +++ new/python-ceilometerclient-2.9.0/releasenotes/source/index.rst 2017-06-12 15:24:31.000000000 +0200 @@ -8,6 +8,7 @@ :maxdepth: 2 unreleased + ocata newton mitaka liberty diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ceilometerclient-2.8.0/releasenotes/source/ocata.rst new/python-ceilometerclient-2.9.0/releasenotes/source/ocata.rst --- old/python-ceilometerclient-2.8.0/releasenotes/source/ocata.rst 1970-01-01 01:00:00.000000000 +0100 +++ new/python-ceilometerclient-2.9.0/releasenotes/source/ocata.rst 2017-06-12 15:24:31.000000000 +0200 @@ -0,0 +1,6 @@ +=================================== + Ocata Series Release Notes +=================================== + +.. release-notes:: + :branch: origin/stable/ocata diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ceilometerclient-2.8.0/setup.cfg new/python-ceilometerclient-2.9.0/setup.cfg --- old/python-ceilometerclient-2.8.0/setup.cfg 2017-01-25 20:32:11.000000000 +0100 +++ new/python-ceilometerclient-2.9.0/setup.cfg 2017-06-12 15:27:22.000000000 +0200 @@ -16,7 +16,6 @@ Programming Language :: Python :: 2 Programming Language :: Python :: 2.7 Programming Language :: Python :: 3 - Programming Language :: Python :: 3.4 Programming Language :: Python :: 3.5 [files] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ceilometerclient-2.8.0/tox.ini new/python-ceilometerclient-2.9.0/tox.ini --- old/python-ceilometerclient-2.8.0/tox.ini 2017-01-25 20:30:37.000000000 +0100 +++ new/python-ceilometerclient-2.9.0/tox.ini 2017-06-12 15:24:31.000000000 +0200 @@ -1,5 +1,5 @@ [tox] -envlist = py34,py35,py27,pypy,pep8 +envlist = py35,py27,pypy,pep8 minversion = 1.6 skipsdist = True
participants (1)
-
root@hilbert.suse.de