commit python-congressclient for openSUSE:Factory
Hello community, here is the log from the commit of package python-congressclient for openSUSE:Factory checked in at 2017-08-28 15:30:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-congressclient (Old) and /work/SRC/openSUSE:Factory/.python-congressclient.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-congressclient" Mon Aug 28 15:30:06 2017 rev:3 rq:514870 version:1.8.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-congressclient/python-congressclient.changes 2017-02-21 13:43:20.483608513 +0100 +++ /work/SRC/openSUSE:Factory/.python-congressclient.new/python-congressclient.changes 2017-08-28 15:30:07.687410914 +0200 @@ -1,0 +2,25 @@ +Mon Aug 7 08:31:56 UTC 2017 - cloud-devel@suse.de + +- update to version 1.8.0 + - Use oslo_log instead of system logging for consistency + - Revert "Fix the problem of default width is small" + - Remove unused packages from requirements.txt + - Add client methods for library policy CRUD + - Remove log translations + - Update .gitignore + - Python 3.5 is added + - Use 'project' instead of 'tenant' when switching to openstackclient command + - Fix modindex link + - Set default max-width to 80 everywhere + - [Fix gate]Update test requirement + - Added how to install from a branch + - Add command to create policy from file + - remove redundant path variables in v1/client.py + - Update documentation link + - Update the documentation link for doc migration + - Updated from global requirements + - Fix the problem of default width is small + - Switch from oslosphinx to openstackdocstheme + - doc migration + +------------------------------------------------------------------- Old: ---- python-congressclient-1.6.0.tar.gz New: ---- python-congressclient-1.8.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-congressclient.spec ++++++ --- /var/tmp/diff_new_pack.oKhUsG/_old 2017-08-28 15:30:08.695269230 +0200 +++ /var/tmp/diff_new_pack.oKhUsG/_new 2017-08-28 15:30:08.699268668 +0200 @@ -18,7 +18,7 @@ %global sname python-congressclient Name: python-congressclient -Version: 1.6.0 +Version: 1.8.0 Release: 0 Summary: Client library for Congress License: Apache-2.0 @@ -30,12 +30,12 @@ BuildRequires: python-fixtures >= 3.0.0 BuildRequires: python-jsonpatch >= 1.1 BuildRequires: python-mock >= 2.0 -BuildRequires: python-osc-lib >= 1.2.0 -BuildRequires: python-oslo.log >= 3.11.0 +BuildRequires: python-osc-lib >= 1.5.1 +BuildRequires: python-oslo.log >= 3.22.0 BuildRequires: python-oslo.serialization >= 1.10.0 -BuildRequires: python-oslo.utils >= 3.18.0 +BuildRequires: python-oslo.utils >= 3.20.0 BuildRequires: python-oslotest >= 1.10.0 -BuildRequires: python-pbr >= 1.8 +BuildRequires: python-pbr >= 2.0.0 BuildRequires: python-python-subunit >= 0.0.18 BuildRequires: python-requests-mock >= 1.1 BuildRequires: python-setuptools >= 16.0 @@ -43,14 +43,14 @@ BuildRequires: python-testscenarios >= 0.4 BuildRequires: python-testtools >= 1.4.0 Requires: python-Babel >= 2.3.4 -Requires: python-cliff >= 2.3.0 -Requires: python-keystoneauth1 >= 2.17.0 +Requires: python-cliff >= 2.6.0 +Requires: python-keystoneauth1 >= 2.21.0 Requires: python-oslo.i18n >= 2.1.0 -Requires: python-oslo.log >= 3.11.0 +Requires: python-oslo.log >= 3.22.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 BuildArch: noarch @@ -68,7 +68,7 @@ Summary: Documentation for OpenStack Congress API client libary Group: Documentation BuildRequires: python-Sphinx -BuildRequires: python-oslosphinx >= 4.7.0 +BuildRequires: python-openstackdocstheme >= 1.11.0 BuildRequires: python-reno >= 1.8.0 %description doc @@ -85,6 +85,7 @@ %prep %autosetup -n %{name}-%{version} %py_req_cleanup +sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg %build %{py2_build} ++++++ _service ++++++ --- /var/tmp/diff_new_pack.oKhUsG/_old 2017-08-28 15:30:08.795255174 +0200 +++ /var/tmp/diff_new_pack.oKhUsG/_new 2017-08-28 15:30:08.795255174 +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-congressclient/python-congressclient.spec.j2</param> + <param name="input-template">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/pike/openstack/python-congressclient/python-congressclient.spec.j2</param> <param name="output-name">python-congressclient.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-congressclient</param> </service> ++++++ python-congressclient-1.6.0.tar.gz -> python-congressclient-1.8.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/AUTHORS new/python-congressclient-1.8.0/AUTHORS --- old/python-congressclient-1.6.0/AUTHORS 2017-01-24 12:21:05.000000000 +0100 +++ new/python-congressclient-1.8.0/AUTHORS 2017-07-26 20:50:20.000000000 +0200 @@ -1,17 +1,25 @@ Aaron Rosen <aaronorosen@gmail.com> +Aimee Ukasick <aimeeu.opensource@gmail.com> Amey Bhide <abhide@vmware.com> Anusha Ramineni <anusha.ramineni@nectechnologies.in> +Arundhati Surpur <arundhati@nectechnologies.in> Cao Xuan Hoang <hoangcx@vn.fujitsu.com> Cleber Rosa <cleber.gnu@gmail.com> Eric K <ekcs.openstack@gmail.com> +Eric Kao <ekcs.openstack@gmail.com> Flavio Percoco <flaper87@gmail.com> +Hangdong Zhang <hdzhang@fiberhome.com> +Jeremy Liu <liujiong@gohighsec.com> Jeremy Stanley <fungi@yuggoth.org> KATO Tomoyuki <kato.tomoyuki@jp.fujitsu.com> +Kiran_totad <kiran.totad@nectechnologies.in> Masahito Muroi <muroi.masahito@lab.ntt.co.jp> Monty Taylor <mordred@inaugust.com> Rui Chen <chenrui.momo@gmail.com> +Rui Yuan Dou <rydou@fiberhome.com> Samta Rangare <srangare@mvista.com> Shuquan Huang <huang.shuquan@99cloud.net> +SongmingYan <yan.songming@zte.com.cn> Steve Martinelli <s.martinelli@gmail.com> Steve Martinelli <stevemar@ca.ibm.com> Steven Tran <steven.tran2@hp.com> @@ -23,5 +31,8 @@ Zhenzan Zhou <zhenzan.zhou@intel.com> aimee.ukasick <au7569@att.com> howardlee <lihongweibj@inspur.com> +kavithahr <kavitha.r@nectechnologies.in> +lingyongxu <lyxu@fiberhome.com> +ricolin <rico.lin@easystack.cn> shu-mutou <shu-mutou@rf.jp.nec.com> yuyafei <yu.yafei@zte.com.cn> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/CONTRIBUTING.rst new/python-congressclient-1.8.0/CONTRIBUTING.rst --- old/python-congressclient-1.6.0/CONTRIBUTING.rst 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/CONTRIBUTING.rst 2017-07-26 20:48:46.000000000 +0200 @@ -1,13 +1,13 @@ If you would like to contribute to the development of OpenStack, you must follow the steps in this page: - http://docs.openstack.org/infra/manual/developers.html + https://docs.openstack.org/infra/manual/developers.html Once those steps have been completed, changes to OpenStack should be submitted for review via the Gerrit tool, following the workflow documented at: - http://docs.openstack.org/infra/manual/developers.html#development-workflow + https://docs.openstack.org/infra/manual/developers.html#development-workflow Pull requests submitted through GitHub will be ignored. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/ChangeLog new/python-congressclient-1.8.0/ChangeLog --- old/python-congressclient-1.6.0/ChangeLog 2017-01-24 12:21:05.000000000 +0100 +++ new/python-congressclient-1.8.0/ChangeLog 2017-07-26 20:50:20.000000000 +0200 @@ -1,6 +1,49 @@ CHANGES ======= +1.8.0 +----- + +* Set default max-width to 80 everywhere +* Fix the problem of default width is small +* Revert "Fix the problem of default width is small" +* Use 'project' instead of 'tenant' when switching to openstackclient command +* Update the documentation link for doc migration +* Updated from global requirements +* Updated from global requirements +* doc migration +* Updated from global requirements +* remove redundant path variables in v1/client.py +* Updated from global requirements +* Add client methods for library policy CRUD +* Update documentation link +* Add command to create policy from file +* Switch from oslosphinx to openstackdocstheme +* Fix the problem of default width is small +* Updated from global requirements + +1.7.0 +----- + +* Updated from global requirements +* Updated from global requirements +* Updated from global requirements +* Updated from global requirements +* Updated from global requirements +* Updated from global requirements +* Updated from global requirements +* Updated from global requirements +* Remove log translations +* Updated from global requirements +* Updated from global requirements +* Python 3.5 is added +* [Fix gate]Update test requirement +* Updated from global requirements +* Fix modindex link +* Added how to install from a branch +* Remove unused packages from requirements.txt +* Use oslo\_log instead of system logging for consistency + 1.6.0 ----- @@ -8,11 +51,12 @@ * Updated from global requirements * Add method to show datasource * Updated from global requirements +* Update .gitignore * Add Constraints support * Updated from global requirements * Change home-page and documentation link * Remove unnecessary utf coding -* Remove unnecessary db calls to list_datasources +* Remove unnecessary db calls to list\_datasources * Updated from global requirements * Show team and repo badges on README * Updated from global requirements @@ -38,7 +82,7 @@ * Add missing makefile so HTML docs can be generated * Remove discover from test-requirements * Remove python-keystoneclient dependency -* Add __ne__ built-in function +* Add \_\_ne\_\_ built-in function 1.4.0 ----- @@ -77,7 +121,7 @@ * Updated from global requirements * Move to oslo libraries for common code * use keystoneclient exceptions instead of oslo-incubator code -* Replace assertEqual(None, *) with assertIsNone in tests +* Replace assertEqual(None, \*) with assertIsNone in tests * Updated from global requirements * Drop MANIFEST.in - it's not needed with PBR * Drop py26 and py33 support @@ -88,7 +132,7 @@ * Add help infomation for policy abbreviation * Remove unicode prefix from output of datasource-list -* Change ignore-errors to ignore_errors +* Change ignore-errors to ignore\_errors * Update tox.ini and fix py34 issue 1.2.0 @@ -100,7 +144,7 @@ * Fix constant name * Support version list API in client * Adding a test of datasource table show CLI -* Favor the use of importlib over Python internal __import__ statement +* Favor the use of importlib over Python internal \_\_import\_\_ statement * Updated from global requirements * Replace stackforge with openstack in README.rst @@ -136,7 +180,7 @@ * Updated from global requirements * CLI changes for adding --name argument to policy rule * Enable E123,E125,H803 -* restructure get_status api return +* restructure get\_status api return * Update NEWS file for release 1.0.2 1.0.2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/HACKING.rst new/python-congressclient-1.8.0/HACKING.rst --- old/python-congressclient-1.6.0/HACKING.rst 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/HACKING.rst 2017-07-26 20:48:46.000000000 +0200 @@ -1,4 +1,4 @@ python-congressclient Style Commandments =============================================== -Read the OpenStack Style Commandments http://docs.openstack.org/developer/hacking/ \ No newline at end of file +Read the OpenStack Style Commandments https://docs.openstack.org/hacking/latest/ \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/PKG-INFO new/python-congressclient-1.8.0/PKG-INFO --- old/python-congressclient-1.6.0/PKG-INFO 2017-01-24 12:21:06.000000000 +0100 +++ new/python-congressclient-1.8.0/PKG-INFO 2017-07-26 20:50:21.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: python-congressclient -Version: 1.6.0 +Version: 1.8.0 Summary: Client for Congress Home-page: http://git.openstack.org/cgit/openstack/python-congressclient Author: OpenStack @@ -22,27 +22,38 @@ Client for Congress * Free software: Apache license - * Documentation: https://github.com/openstack/python-congressclient/blob/master/README.rst - * Source: http://git.openstack.org/cgit/openstack/python-congressclient - * Bugs: http://bugs.launchpad.net/python-congressclient + * Documentation: https://docs.openstack.org/python-congressclient/latest/ + * Source: https://git.openstack.org/cgit/openstack/python-congressclient + * Bugs: https://bugs.launchpad.net/python-congressclient Client for Standalone Congress ------------------------------ - To execute CLI commands to standalone congress set with noauth: + Install the Congress CLI by cloning the repository and running the setup file. + The master repository always contains the latest source code, so if you are + installing and testing a specific branch of Congress, clone the matching branch + of the python-congressclient. + + To execute CLI commands to standalone Congress installed with noauth: * Install python-openstackclient:: $ pip install python-openstackclient - * Clone repository & install python-congressclient:: + * Clone master repository & install python-congressclient:: $ git clone https://github.com/openstack/python-congressclient.git $ cd python-congressclient $ python setup.py install - * Read the HTML documentation:: - Install python-sphinx and the oslosphinx extension if missing. + * (Optional) Clone a branch; for example, if you are using the Ocata version of OpenStack and Congress:: + + $ git clone -b stable/ocata https://github.com/openstack/python-congressclient.git + $ cd python-congressclient + $ python setup.py install + + * Read the HTML documentation. Install python-sphinx and the oslosphinx extension if missing:: + $ sudo pip install sphinx $ sudo pip install oslosphinx @@ -50,7 +61,7 @@ $ make docs Open doc/html/index.html in a browser - + * To execute CLI commands:: $ cd python-congressclient @@ -104,4 +115,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-congressclient-1.6.0/README.rst new/python-congressclient-1.8.0/README.rst --- old/python-congressclient-1.6.0/README.rst 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/README.rst 2017-07-26 20:48:46.000000000 +0200 @@ -14,27 +14,38 @@ Client for Congress * Free software: Apache license -* Documentation: https://github.com/openstack/python-congressclient/blob/master/README.rst -* Source: http://git.openstack.org/cgit/openstack/python-congressclient -* Bugs: http://bugs.launchpad.net/python-congressclient +* Documentation: https://docs.openstack.org/python-congressclient/latest/ +* Source: https://git.openstack.org/cgit/openstack/python-congressclient +* Bugs: https://bugs.launchpad.net/python-congressclient Client for Standalone Congress ------------------------------ -To execute CLI commands to standalone congress set with noauth: +Install the Congress CLI by cloning the repository and running the setup file. +The master repository always contains the latest source code, so if you are +installing and testing a specific branch of Congress, clone the matching branch +of the python-congressclient. + +To execute CLI commands to standalone Congress installed with noauth: * Install python-openstackclient:: $ pip install python-openstackclient -* Clone repository & install python-congressclient:: +* Clone master repository & install python-congressclient:: $ git clone https://github.com/openstack/python-congressclient.git $ cd python-congressclient $ python setup.py install -* Read the HTML documentation:: - Install python-sphinx and the oslosphinx extension if missing. +* (Optional) Clone a branch; for example, if you are using the Ocata version of OpenStack and Congress:: + + $ git clone -b stable/ocata https://github.com/openstack/python-congressclient.git + $ cd python-congressclient + $ python setup.py install + +* Read the HTML documentation. Install python-sphinx and the oslosphinx extension if missing:: + $ sudo pip install sphinx $ sudo pip install oslosphinx @@ -42,7 +53,7 @@ $ make docs Open doc/html/index.html in a browser - + * To execute CLI commands:: $ cd python-congressclient diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/congressclient/common/utils.py new/python-congressclient-1.8.0/congressclient/common/utils.py --- old/python-congressclient-1.6.0/congressclient/common/utils.py 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/congressclient/common/utils.py 2017-07-26 20:48:46.000000000 +0200 @@ -131,7 +131,7 @@ return name_match if double_name_match and not id_match: # NOTE(arosen): this should only occur is using congress - # as admin and multiple tenants use the same datsource name. + # as admin and multiple projects use the same datsource name. raise exceptions.Conflict( "Multiple resources have this name %s. Please specify id." % name) if id_match: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/congressclient/i18n.py new/python-congressclient-1.8.0/congressclient/i18n.py --- old/python-congressclient-1.6.0/congressclient/i18n.py 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/congressclient/i18n.py 2017-07-26 20:48:46.000000000 +0200 @@ -12,7 +12,7 @@ """oslo_i18n integration module for novaclient. -See http://docs.openstack.org/developer/oslo.i18n/usage.html . +See https://docs.openstack.org/oslo.i18n/latest/user/usage.html. """ @@ -23,13 +23,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-congressclient-1.6.0/congressclient/osc/osc_plugin.py new/python-congressclient-1.8.0/congressclient/osc/osc_plugin.py --- old/python-congressclient-1.6.0/congressclient/osc/osc_plugin.py 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/congressclient/osc/osc_plugin.py 2017-07-26 20:48:46.000000000 +0200 @@ -14,7 +14,7 @@ """OpenStackClient plugin for Governance service.""" -import logging +from oslo_log import log as logging from congressclient.common import utils diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/congressclient/osc/v1/api_versions.py new/python-congressclient-1.8.0/congressclient/osc/v1/api_versions.py --- old/python-congressclient-1.6.0/congressclient/osc/v1/api_versions.py 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/congressclient/osc/v1/api_versions.py 2017-07-26 20:48:46.000000000 +0200 @@ -30,6 +30,9 @@ return super(ListAPIVersions, self).get_parser(prog_name) def take_action(self, parsed_args): + # set default max-width + if parsed_args.max_width == 0: + parsed_args.max_width = 80 client = self.app.client_manager.congressclient data = client.list_api_versions()['versions'] # sort API by id diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/congressclient/osc/v1/datasource.py new/python-congressclient-1.8.0/congressclient/osc/v1/datasource.py --- old/python-congressclient-1.6.0/congressclient/osc/v1/datasource.py 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/congressclient/osc/v1/datasource.py 2017-07-26 20:48:46.000000000 +0200 @@ -35,6 +35,9 @@ return parser def take_action(self, parsed_args): + # set default max-width + if parsed_args.max_width == 0: + parsed_args.max_width = 80 client = self.app.client_manager.congressclient data = client.list_datasources()['results'] # Type is always None, so disabling it for now. @@ -61,6 +64,9 @@ def take_action(self, parsed_args): self.log.debug('take_action(%s)' % parsed_args) + # set default max-width + if parsed_args.max_width == 0: + parsed_args.max_width = 80 client = self.app.client_manager.congressclient name_or_id = parsed_args.datasource_name data = client.list_datasource_tables(name_or_id)['results'] @@ -87,6 +93,9 @@ def take_action(self, parsed_args): self.log.debug('take_action(%s)' % parsed_args) + # set default max-width + if parsed_args.max_width == 0: + parsed_args.max_width = 80 client = self.app.client_manager.congressclient datasource_id = parsed_args.datasource_name data = client.list_datasource_status(datasource_id) @@ -110,7 +119,7 @@ self.log.debug('take_action(%s)' % parsed_args) # as we know output it's long, limit column length here if parsed_args.max_width == 0: - parsed_args.max_width = 40 + parsed_args.max_width = 80 client = self.app.client_manager.congressclient datasource_id = parsed_args.datasource_name @@ -142,6 +151,9 @@ def take_action(self, parsed_args): self.log.debug('take_action(%s)' % parsed_args) + # set default max-width + if parsed_args.max_width == 0: + parsed_args.max_width = 80 client = self.app.client_manager.congressclient datasource_id = parsed_args.datasource_name data = client.show_datasource_schema(datasource_id) @@ -175,6 +187,9 @@ def take_action(self, parsed_args): self.log.debug('take_action(%s)' % parsed_args) + # set default max-width + if parsed_args.max_width == 0: + parsed_args.max_width = 80 client = self.app.client_manager.congressclient datasource_id = parsed_args.datasource_name data = client.show_datasource_table_schema( @@ -205,6 +220,9 @@ def take_action(self, parsed_args): self.log.debug('take_action(%s)' % parsed_args) + # set default max-width + if parsed_args.max_width == 0: + parsed_args.max_width = 80 client = self.app.client_manager.congressclient datasource_id = parsed_args.datasource_name results = client.list_datasource_rows(datasource_id, @@ -238,6 +256,9 @@ def take_action(self, parsed_args): self.log.debug('take_action(%s)' % parsed_args) + # set default max-width + if parsed_args.max_width == 0: + parsed_args.max_width = 80 client = self.app.client_manager.congressclient data = client.show_datasource_table(parsed_args.datasource_name, parsed_args.table_id) @@ -274,6 +295,9 @@ def take_action(self, parsed_args): self.log.debug('take_action(%s)' % parsed_args) + # set default max-width + if parsed_args.max_width == 0: + parsed_args.max_width = 80 client = self.app.client_manager.congressclient body = {'name': parsed_args.name, 'driver': parsed_args.driver, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/congressclient/osc/v1/driver.py new/python-congressclient-1.8.0/congressclient/osc/v1/driver.py --- old/python-congressclient-1.6.0/congressclient/osc/v1/driver.py 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/congressclient/osc/v1/driver.py 2017-07-26 20:48:46.000000000 +0200 @@ -32,6 +32,9 @@ return parser def take_action(self, parsed_args): + # set default max-width + if parsed_args.max_width == 0: + parsed_args.max_width = 80 client = self.app.client_manager.congressclient data = client.list_drivers()['results'] columns = ['id', 'description'] @@ -57,6 +60,9 @@ def take_action(self, parsed_args): self.log.debug('take_action(%s)' % parsed_args) + # set default max-width + if parsed_args.max_width == 0: + parsed_args.max_width = 80 client = self.app.client_manager.congressclient data = client.show_driver( parsed_args.driver) @@ -86,6 +92,9 @@ def take_action(self, parsed_args): self.log.debug('take_action(%s)' % parsed_args) + # set default max-width + if parsed_args.max_width == 0: + parsed_args.max_width = 80 client = self.app.client_manager.congressclient data = client.show_driver( parsed_args.driver) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/congressclient/osc/v1/policy.py new/python-congressclient-1.8.0/congressclient/osc/v1/policy.py --- old/python-congressclient-1.6.0/congressclient/osc/v1/policy.py 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/congressclient/osc/v1/policy.py 2017-07-26 20:48:46.000000000 +0200 @@ -23,6 +23,7 @@ from oslo_log import log as logging from oslo_serialization import jsonutils import six +import yaml from congressclient.common import utils @@ -79,6 +80,9 @@ def take_action(self, parsed_args): self.log.debug('take_action(%s)' % parsed_args) + # set default max-width + if parsed_args.max_width == 0: + parsed_args.max_width = 80 client = self.app.client_manager.congressclient body = {'rule': parsed_args.rule} if parsed_args.rule_name: @@ -223,6 +227,9 @@ def take_action(self, parsed_args): self.log.debug('take_action(%s)' % parsed_args) + # set default max-width + if parsed_args.max_width == 0: + parsed_args.max_width = 80 client = self.app.client_manager.congressclient data = client.list_policy_tables(parsed_args.policy_name)['results'] columns = ['id'] @@ -243,6 +250,9 @@ return parser def take_action(self, parsed_args): + # set default max-width + if parsed_args.max_width == 0: + parsed_args.max_width = 80 client = self.app.client_manager.congressclient data = client.list_policy()['results'] columns = ['id', 'name', 'owner_id', 'kind', 'description'] @@ -284,6 +294,9 @@ def take_action(self, parsed_args): self.log.debug('take_action(%s)' % parsed_args) + # set default max-width + if parsed_args.max_width == 0: + parsed_args.max_width = 80 client = self.app.client_manager.congressclient body = {'name': parsed_args.policy_name, 'description': parsed_args.description, @@ -293,6 +306,47 @@ return zip(*sorted(six.iteritems(data))) +class CreatePolicyFromFile(show.ShowOne): + """Create a policy.""" + + log = logging.getLogger(__name__ + '.CreatePolicy') + + def get_parser(self, prog_name): + parser = super(CreatePolicyFromFile, self).get_parser(prog_name) + parser.add_argument( + 'policy_file_path', + metavar="<policy_file_path>", + help="Path to policy file") + return parser + + def take_action(self, parsed_args): + self.log.debug('take_action(%s)' % parsed_args) + # set default max-width + if parsed_args.max_width == 0: + parsed_args.max_width = 80 + client = self.app.client_manager.congressclient + with open(parsed_args.policy_file_path, "r") as stream: + policies = yaml.load_all(stream) + try: + body = next(policies) + except StopIteration: + raise Exception('No policy found in file.') + try: + body = next(policies) + raise Exception( + 'More than one policy found in file. None imported.') + except StopIteration: + pass + data = client.create_policy(body) + + def rule_dict_to_string(rules): + rule_str_list = [rule['rule'] for rule in rules] + return "\n".join(rule_str_list) + + data['rules'] = rule_dict_to_string(data['rules']) + return zip(*sorted(six.iteritems(data))) + + class DeletePolicy(command.Command): """Delete a policy.""" @@ -337,6 +391,9 @@ def take_action(self, parsed_args): self.log.debug('take_action(%s)' % parsed_args) + # set default max-width + if parsed_args.max_width == 0: + parsed_args.max_width = 80 client = self.app.client_manager.congressclient answer = client.list_policy_rows(parsed_args.policy_name, parsed_args.table, @@ -373,6 +430,9 @@ def take_action(self, parsed_args): self.log.debug('take_action(%s)' % parsed_args) + # set default max-width + if parsed_args.max_width == 0: + parsed_args.max_width = 80 client = self.app.client_manager.congressclient results = client.list_policy_rules(parsed_args.policy_name) rule_id = utils.get_resource_id_from_name( @@ -401,6 +461,9 @@ def take_action(self, parsed_args): self.log.debug('take_action(%s)' % parsed_args) + # set default max-width + if parsed_args.max_width == 0: + parsed_args.max_width = 80 client = self.app.client_manager.congressclient data = client.show_policy_table(parsed_args.policy_name, parsed_args.table_id) @@ -423,6 +486,9 @@ def take_action(self, parsed_args): self.log.debug('take_action(%s)' % parsed_args) + # set default max-width + if parsed_args.max_width == 0: + parsed_args.max_width = 80 client = self.app.client_manager.congressclient results = client.list_policy() policy_id = utils.get_resource_id_from_name( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/congressclient/tests/fakes.py new/python-congressclient-1.8.0/congressclient/tests/fakes.py --- old/python-congressclient-1.6.0/congressclient/tests/fakes.py 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/congressclient/tests/fakes.py 2017-07-26 20:48:46.000000000 +0200 @@ -22,7 +22,7 @@ AUTH_URL = "http://0.0.0.0" -class FakeStdout: +class FakeStdout(object): def __init__(self): self.content = [] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/congressclient/tests/v1/test_datasource.py new/python-congressclient-1.8.0/congressclient/tests/v1/test_datasource.py --- old/python-congressclient-1.6.0/congressclient/tests/v1/test_datasource.py 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/congressclient/tests/v1/test_datasource.py 2017-07-26 20:48:46.000000000 +0200 @@ -60,7 +60,7 @@ u"driver": 'driver1', u"config": { u'username': u'admin', - u'tenant_name': u'admin', + u'project_name': u'admin', u'poll_time': u'10', u'password': u'<hidden>', u'auth_url': u'http://127.0.0.1:5000/v2.0' @@ -287,7 +287,7 @@ name = 'arosen-neutronv2' response = {"description": '', "config": {"username": "admin", - "tenant_name": "admin", + "project_name": "admin", "password": "password", "auth_url": "http://127.0.0.1:5000/v2.0"}, "enabled": True, @@ -301,13 +301,13 @@ "--config", "username=admin", "--config", "password=password", "--config", "auth_url=http://1.1.1.1/foo", - "--config", "tenant_name=admin"] + "--config", "project_name=admin"] verifylist = [ ('driver', driver), ('name', name), ('config', {'username': 'admin', 'password': 'password', 'auth_url': 'http://1.1.1.1/foo', - 'tenant_name': 'admin'}), + 'project_name': 'admin'}), ] mocker = mock.Mock(return_value=response) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/congressclient/tests/v1/test_policy.py new/python-congressclient-1.8.0/congressclient/tests/v1/test_policy.py --- old/python-congressclient-1.6.0/congressclient/tests/v1/test_policy.py 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/congressclient/tests/v1/test_policy.py 2017-07-26 20:48:46.000000000 +0200 @@ -10,6 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. # +import os import mock @@ -47,6 +48,43 @@ self.assertEqual(filtered, result) +class TestCreatePolicyFromFile(common.TestCongressBase): + + def test_create_policy(self): + policy_path = os.path.dirname( + os.path.abspath(__file__)) + '/test_policy_file.yaml' + policy_id = "e531f2b3-3d97-42c0-b3b5-b7b6ab532018" + response = {"description": "", + "id": policy_id, + "name": "test_policy", + "kind": "nonrecursive", + "owner": "system", + "abbreviation": "abbr", + "rules": [ + {'comment': 'test comment', 'name': 'test name', + 'rule': 'p(x) :- q(x)'}, + {'comment': 'test comment2', 'name': 'test name2', + 'rule': 'p(x) :- q2(x)'}]} + + arglist = [policy_path] + verifylist = [ + ('policy_file_path', policy_path), + ] + + mocker = mock.Mock(return_value=response) + self.app.client_manager.congressclient.create_policy = mocker + cmd = policy.CreatePolicyFromFile(self.app, self.namespace) + parsed_args = self.check_parser(cmd, arglist, verifylist) + result = list(cmd.take_action(parsed_args)) + filtered = [('abbreviation', 'description', 'id', 'kind', 'name', + 'owner', 'rules'), + ('abbr', '', policy_id, 'nonrecursive', + 'test_policy', 'system', + 'p(x) :- q(x)\n' + 'p(x) :- q2(x)')] + self.assertEqual(filtered, result) + + class TestShowPolicy(common.TestCongressBase): def test_show_policy(self): policy_id = "14f2897a-155a-4c9d-b3de-ef85c0a171d8" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/congressclient/tests/v1/test_policy_file.yaml new/python-congressclient-1.8.0/congressclient/tests/v1/test_policy_file.yaml --- old/python-congressclient-1.6.0/congressclient/tests/v1/test_policy_file.yaml 1970-01-01 01:00:00.000000000 +0100 +++ new/python-congressclient-1.8.0/congressclient/tests/v1/test_policy_file.yaml 2017-07-26 20:48:46.000000000 +0200 @@ -0,0 +1,17 @@ +--- +name: PauseBadFlavors +description: "Pause any server using a flavor that is not permitted" +rules: + - + comment: "User should customize this. Permitted flavors." + rule: permitted_flavor('m1.tiny') + - + comment: "User should customize this. Permitted flavors." + rule: permitted_flavor('m1.large') + - + rule: > + server_with_bad_flavor(id) :- nova:servers(id=id,flavor_id=flavor_id), + nova:flavors(id=flavor_id, name=flavor), not permitted_flavor(flavor) + - + comment: "Remediation: Pause any VM that shows up in the server_with_bad_flavor table" + rule: "execute[nova:servers.pause(id)] :- server_with_bad_flavor(id), nova:servers(id,status='ACTIVE')" \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/congressclient/v1/client.py new/python-congressclient-1.8.0/congressclient/v1/client.py --- old/python-congressclient-1.6.0/congressclient/v1/client.py 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/congressclient/v1/client.py 2017-07-26 20:48:46.000000000 +0200 @@ -18,12 +18,14 @@ class Client(object): """Client for the Congress v1 API. - Example:: + Example + :: + from keystoneauth1.identity import v2 from keystoneauth1 import session from congressclient.v1 import client auth = v2.Password(auth_url=AUTH_URL, username=USERNAME, - password=PASSWORD, tenant_name=TENANT_NAME) + password=PASSWORD, project_name=TENANT_NAME) sess = session.Session(auth=auth) congress = client.Client(session=sess, auth=None, @@ -33,7 +35,6 @@ congress.create_policy_rule(..) """ - policy = '/v1/policies' policy_path = '/v1/policies/%s' policy_rules = '/v1/policies/%s/rules' policy_rules_path = '/v1/policies/%s/rules/%s' @@ -43,6 +44,8 @@ policy_rows_trace = '/v1/policies/%s/tables/%s/rows?trace=True' policies = '/v1/policies' policy_action = '/v1/policies/%s?%s' + library_policy_path = '/v1/librarypolicies/%s' + library_policies = '/v1/librarypolicies' datasources = '/v1/data-sources' datasource_path = '/v1/data-sources/%s' datasource_tables = '/v1/data-sources/%s/tables' @@ -64,7 +67,7 @@ def create_policy(self, body): resp, body = self.httpclient.post( - self.policy, body=body) + self.policies, body=body) return body def delete_policy(self, policy): @@ -77,6 +80,21 @@ self.policy_path % policy) return body + def create_library_policy(self, body): + resp, body = self.httpclient.post( + self.library_policies, body=body) + return body + + def delete_library_policy(self, policy): + resp, body = self.httpclient.delete( + self.library_policy_path % policy) + return body + + def show_library_policy(self, policy): + resp, body = self.httpclient.get( + self.library_policy_path % policy) + return body + def create_policy_rule(self, policy_name, body=None): resp, body = self.httpclient.post( self.policy_rules % policy_name, body=body) @@ -108,6 +126,10 @@ resp, body = self.httpclient.get(self.policies) return body + def list_library_policy(self): + resp, body = self.httpclient.get(self.library_policies) + return body + def list_policy_tables(self, policy_name): resp, body = self.httpclient.get(self.policy_tables % (policy_name)) return body diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/doc/source/conf.py new/python-congressclient-1.8.0/doc/source/conf.py --- old/python-congressclient-1.6.0/doc/source/conf.py 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/doc/source/conf.py 2017-07-26 20:48:46.000000000 +0200 @@ -23,9 +23,17 @@ extensions = [ 'sphinx.ext.autodoc', #'sphinx.ext.intersphinx', - 'oslosphinx' + 'openstackdocstheme' ] +# openstackdocstheme options +repository_name = 'openstack/python-congressclient' +bug_project = 'python-congressclient' +bug_tag = '' + +# Must set this variable to include year, month, day, hours, and minutes. +html_last_updated_fmt = '%Y-%m-%d %H:%M' + # autodoc generation is a bit aggressive and a nuisance when doing heavy # text edit cycles. # execute "export SPHINX_DEBUG=1" in your terminal to disable @@ -55,12 +63,15 @@ # The theme to use for HTML and HTML Help pages. Major themes that come with # Sphinx are currently 'default' and 'sphinxdoc'. # html_theme_path = ["."] -# html_theme = '_theme' +html_theme = 'openstackdocs' # html_static_path = ['static'] # Output file base name for HTML help builder. htmlhelp_basename = '%sdoc' % project +# A list of ignored prefixes for module index sorting. +modindex_common_prefix = ['congressclient.'] + # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass # [howto/manual]). @@ -72,4 +83,4 @@ ] # Example configuration for intersphinx: refer to the Python standard library. -#intersphinx_mapping = {'http://docs.python.org/': None} \ No newline at end of file +#intersphinx_mapping = {'http://docs.python.org/': None} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/doc/source/contributing.rst new/python-congressclient-1.8.0/doc/source/contributing.rst --- old/python-congressclient-1.6.0/doc/source/contributing.rst 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/doc/source/contributing.rst 1970-01-01 01:00:00.000000000 +0100 @@ -1,4 +0,0 @@ -============ -Contributing -============ -.. include:: ../../CONTRIBUTING.rst \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/doc/source/contributor/index.rst new/python-congressclient-1.8.0/doc/source/contributor/index.rst --- old/python-congressclient-1.6.0/doc/source/contributor/index.rst 1970-01-01 01:00:00.000000000 +0100 +++ new/python-congressclient-1.8.0/doc/source/contributor/index.rst 2017-07-26 20:48:46.000000000 +0200 @@ -0,0 +1,4 @@ +============ +Contributing +============ +.. include:: ../../../CONTRIBUTING.rst \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/doc/source/index.rst new/python-congressclient-1.8.0/doc/source/index.rst --- old/python-congressclient-1.6.0/doc/source/index.rst 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/doc/source/index.rst 2017-07-26 20:48:46.000000000 +0200 @@ -9,16 +9,21 @@ Contents: .. toctree:: - :maxdepth: 2 + :maxdepth: 1 - readme - installation - usage - contributing - -Indices and tables -================== + user/readme + install/index + user/index + contributor/index + reference/index * :ref:`genindex` -* :ref:`modindex` * :ref:`search` + +.. # Below are items we don't want to show doc consumers but need to be + # included to avoid sphinx warning/error. + # api/autoindex hidden because the information is already in modindex above +.. toctree:: + :hidden: + + reference/api/autoindex \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/doc/source/install/index.rst new/python-congressclient-1.8.0/doc/source/install/index.rst --- old/python-congressclient-1.6.0/doc/source/install/index.rst 1970-01-01 01:00:00.000000000 +0100 +++ new/python-congressclient-1.8.0/doc/source/install/index.rst 2017-07-26 20:48:46.000000000 +0200 @@ -0,0 +1,12 @@ +============ +Installation +============ + +At the command line:: + + $ pip install python-congressclient + +Or, if you have virtualenvwrapper installed:: + + $ mkvirtualenv python-congressclient + $ pip install python-congressclient \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/doc/source/installation.rst new/python-congressclient-1.8.0/doc/source/installation.rst --- old/python-congressclient-1.6.0/doc/source/installation.rst 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/doc/source/installation.rst 1970-01-01 01:00:00.000000000 +0100 @@ -1,12 +0,0 @@ -============ -Installation -============ - -At the command line:: - - $ pip install python-congressclient - -Or, if you have virtualenvwrapper installed:: - - $ mkvirtualenv python-congressclient - $ pip install python-congressclient \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/doc/source/readme.rst new/python-congressclient-1.8.0/doc/source/readme.rst --- old/python-congressclient-1.6.0/doc/source/readme.rst 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/doc/source/readme.rst 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -.. include:: ../../README.rst \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/doc/source/reference/index.rst new/python-congressclient-1.8.0/doc/source/reference/index.rst --- old/python-congressclient-1.6.0/doc/source/reference/index.rst 1970-01-01 01:00:00.000000000 +0100 +++ new/python-congressclient-1.8.0/doc/source/reference/index.rst 2017-07-26 20:48:46.000000000 +0200 @@ -0,0 +1,5 @@ +========== +References +========== + +* :ref:`modindex` \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/doc/source/usage.rst new/python-congressclient-1.8.0/doc/source/usage.rst --- old/python-congressclient-1.6.0/doc/source/usage.rst 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/doc/source/usage.rst 1970-01-01 01:00:00.000000000 +0100 @@ -1,7 +0,0 @@ -======== -Usage -======== - -To use python-congressclient in a project:: - - import congressclient \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/doc/source/user/index.rst new/python-congressclient-1.8.0/doc/source/user/index.rst --- old/python-congressclient-1.6.0/doc/source/user/index.rst 1970-01-01 01:00:00.000000000 +0100 +++ new/python-congressclient-1.8.0/doc/source/user/index.rst 2017-07-26 20:48:46.000000000 +0200 @@ -0,0 +1,7 @@ +===== +Usage +===== + +To use python-congressclient in a project:: + + import congressclient \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/doc/source/user/readme.rst new/python-congressclient-1.8.0/doc/source/user/readme.rst --- old/python-congressclient-1.6.0/doc/source/user/readme.rst 1970-01-01 01:00:00.000000000 +0100 +++ new/python-congressclient-1.8.0/doc/source/user/readme.rst 2017-07-26 20:48:46.000000000 +0200 @@ -0,0 +1,5 @@ +########## +README +########## + +.. include:: ../../../README.rst diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/python_congressclient.egg-info/PKG-INFO new/python-congressclient-1.8.0/python_congressclient.egg-info/PKG-INFO --- old/python-congressclient-1.6.0/python_congressclient.egg-info/PKG-INFO 2017-01-24 12:21:05.000000000 +0100 +++ new/python-congressclient-1.8.0/python_congressclient.egg-info/PKG-INFO 2017-07-26 20:50:20.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: python-congressclient -Version: 1.6.0 +Version: 1.8.0 Summary: Client for Congress Home-page: http://git.openstack.org/cgit/openstack/python-congressclient Author: OpenStack @@ -22,27 +22,38 @@ Client for Congress * Free software: Apache license - * Documentation: https://github.com/openstack/python-congressclient/blob/master/README.rst - * Source: http://git.openstack.org/cgit/openstack/python-congressclient - * Bugs: http://bugs.launchpad.net/python-congressclient + * Documentation: https://docs.openstack.org/python-congressclient/latest/ + * Source: https://git.openstack.org/cgit/openstack/python-congressclient + * Bugs: https://bugs.launchpad.net/python-congressclient Client for Standalone Congress ------------------------------ - To execute CLI commands to standalone congress set with noauth: + Install the Congress CLI by cloning the repository and running the setup file. + The master repository always contains the latest source code, so if you are + installing and testing a specific branch of Congress, clone the matching branch + of the python-congressclient. + + To execute CLI commands to standalone Congress installed with noauth: * Install python-openstackclient:: $ pip install python-openstackclient - * Clone repository & install python-congressclient:: + * Clone master repository & install python-congressclient:: $ git clone https://github.com/openstack/python-congressclient.git $ cd python-congressclient $ python setup.py install - * Read the HTML documentation:: - Install python-sphinx and the oslosphinx extension if missing. + * (Optional) Clone a branch; for example, if you are using the Ocata version of OpenStack and Congress:: + + $ git clone -b stable/ocata https://github.com/openstack/python-congressclient.git + $ cd python-congressclient + $ python setup.py install + + * Read the HTML documentation. Install python-sphinx and the oslosphinx extension if missing:: + $ sudo pip install sphinx $ sudo pip install oslosphinx @@ -50,7 +61,7 @@ $ make docs Open doc/html/index.html in a browser - + * To execute CLI commands:: $ cd python-congressclient @@ -104,4 +115,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-congressclient-1.6.0/python_congressclient.egg-info/SOURCES.txt new/python-congressclient-1.8.0/python_congressclient.egg-info/SOURCES.txt --- old/python-congressclient-1.6.0/python_congressclient.egg-info/SOURCES.txt 2017-01-24 12:21:06.000000000 +0100 +++ new/python-congressclient-1.8.0/python_congressclient.egg-info/SOURCES.txt 2017-07-26 20:50:21.000000000 +0200 @@ -39,14 +39,16 @@ congressclient/tests/v1/test_datasource.py congressclient/tests/v1/test_drivers.py congressclient/tests/v1/test_policy.py +congressclient/tests/v1/test_policy_file.yaml congressclient/v1/__init__.py congressclient/v1/client.py doc/source/conf.py -doc/source/contributing.rst doc/source/index.rst -doc/source/installation.rst -doc/source/readme.rst -doc/source/usage.rst +doc/source/contributor/index.rst +doc/source/install/index.rst +doc/source/reference/index.rst +doc/source/user/index.rst +doc/source/user/readme.rst python_congressclient.egg-info/PKG-INFO python_congressclient.egg-info/SOURCES.txt python_congressclient.egg-info/dependency_links.txt diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/python_congressclient.egg-info/entry_points.txt new/python-congressclient-1.8.0/python_congressclient.egg-info/entry_points.txt --- old/python-congressclient-1.6.0/python_congressclient.egg-info/entry_points.txt 2017-01-24 12:21:05.000000000 +0100 +++ new/python-congressclient-1.8.0/python_congressclient.egg-info/entry_points.txt 2017-07-26 20:50:20.000000000 +0200 @@ -18,6 +18,7 @@ congress_driver_list = congressclient.osc.v1.driver:ListDrivers congress_driver_schema_show = congressclient.osc.v1.driver:ShowDriverSchema congress_policy_create = congressclient.osc.v1.policy:CreatePolicy +congress_policy_create-from-file = congressclient.osc.v1.policy:CreatePolicyFromFile congress_policy_delete = congressclient.osc.v1.policy:DeletePolicy congress_policy_list = congressclient.osc.v1.policy:ListPolicy congress_policy_row_list = congressclient.osc.v1.policy:ListPolicyRows diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/python_congressclient.egg-info/pbr.json new/python-congressclient-1.8.0/python_congressclient.egg-info/pbr.json --- old/python-congressclient-1.6.0/python_congressclient.egg-info/pbr.json 2017-01-24 12:21:05.000000000 +0100 +++ new/python-congressclient-1.8.0/python_congressclient.egg-info/pbr.json 2017-07-26 20:50:20.000000000 +0200 @@ -1 +1 @@ -{"git_version": "ab2eea3", "is_release": true} \ No newline at end of file +{"git_version": "e2baac2", "is_release": true} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/python_congressclient.egg-info/requires.txt new/python-congressclient-1.8.0/python_congressclient.egg-info/requires.txt --- old/python-congressclient-1.6.0/python_congressclient.egg-info/requires.txt 2017-01-24 12:21:05.000000000 +0100 +++ new/python-congressclient-1.8.0/python_congressclient.egg-info/requires.txt 2017-07-26 20:50:20.000000000 +0200 @@ -1,10 +1,8 @@ -pbr>=1.8 -Babel>=2.3.4 -cliff>=2.3.0 -keystoneauth1>=2.18.0 -oslo.i18n>=2.1.0 -oslo.log>=3.11.0 -oslo.serialization>=1.10.0 -oslo.utils>=3.18.0 -requests!=2.12.2,>=2.10.0 +pbr!=2.1.0,>=2.0.0 +Babel!=2.4.0,>=2.3.4 +cliff>=2.8.0 +keystoneauth1>=3.0.1 +oslo.i18n!=3.15.2,>=2.1.0 +oslo.log>=3.22.0 +oslo.serialization!=2.19.1,>=1.10.0 six>=1.9.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/requirements.txt new/python-congressclient-1.8.0/requirements.txt --- old/python-congressclient-1.6.0/requirements.txt 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/requirements.txt 2017-07-26 20:48:46.000000000 +0200 @@ -1,13 +1,11 @@ # The order of packages is significant, because pip processes them in the order # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. -pbr>=1.8 # Apache-2.0 -Babel>=2.3.4 # BSD -cliff>=2.3.0 # Apache-2.0 -keystoneauth1>=2.18.0 # Apache-2.0 -oslo.i18n>=2.1.0 # Apache-2.0 -oslo.log>=3.11.0 # Apache-2.0 -oslo.serialization>=1.10.0 # Apache-2.0 -oslo.utils>=3.18.0 # Apache-2.0 -requests!=2.12.2,>=2.10.0 # Apache-2.0 +pbr!=2.1.0,>=2.0.0 # Apache-2.0 +Babel!=2.4.0,>=2.3.4 # BSD +cliff>=2.8.0 # Apache-2.0 +keystoneauth1>=3.0.1 # Apache-2.0 +oslo.i18n!=3.15.2,>=2.1.0 # Apache-2.0 +oslo.log>=3.22.0 # Apache-2.0 +oslo.serialization!=2.19.1,>=1.10.0 # Apache-2.0 six>=1.9.0 # MIT diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/setup.cfg new/python-congressclient-1.8.0/setup.cfg --- old/python-congressclient-1.6.0/setup.cfg 2017-01-24 12:21:06.000000000 +0100 +++ new/python-congressclient-1.8.0/setup.cfg 2017-07-26 20:50:21.000000000 +0200 @@ -16,7 +16,7 @@ Programming Language :: Python :: 2 Programming Language :: Python :: 2.7 Programming Language :: Python :: 3 - Programming Language :: Python :: 3.4 + Programming Language :: Python :: 3.5 [files] packages = @@ -27,6 +27,7 @@ congressclient = congressclient.osc.osc_plugin openstack.congressclient.v1 = congress_policy_create = congressclient.osc.v1.policy:CreatePolicy + congress_policy_create-from-file = congressclient.osc.v1.policy:CreatePolicyFromFile congress_policy_delete = congressclient.osc.v1.policy:DeletePolicy congress_policy_show = congressclient.osc.v1.policy:ShowPolicy congress_policy_rule_create = congressclient.osc.v1.policy:CreatePolicyRule @@ -55,10 +56,16 @@ congress_driver_list = congressclient.osc.v1.driver:ListDrivers congress_version_list = congressclient.osc.v1.api_versions:ListAPIVersions +[pbr] +autodoc_index_modules = True +api_doc_dir = reference/api +warnerrors = True + [build_sphinx] source-dir = doc/source build-dir = doc/build all_files = 1 +warning-is-error = 1 [upload_sphinx] upload-dir = doc/build/html diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/setup.py new/python-congressclient-1.8.0/setup.py --- old/python-congressclient-1.6.0/setup.py 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/setup.py 2017-07-26 20:48:46.000000000 +0200 @@ -25,5 +25,5 @@ pass setuptools.setup( - setup_requires=['pbr>=1.8'], + setup_requires=['pbr>=2.0.0'], pbr=True) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/test-requirements.txt new/python-congressclient-1.8.0/test-requirements.txt --- old/python-congressclient-1.6.0/test-requirements.txt 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/test-requirements.txt 2017-07-26 20:48:46.000000000 +0200 @@ -1,15 +1,13 @@ # The order of packages is significant, because pip processes them in the order # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. -hacking<0.10,>=0.9.2 +hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0 -coverage>=4.0 # Apache-2.0 +coverage!=4.4,>=4.0 # Apache-2.0 fixtures>=3.0.0 # Apache-2.0/BSD python-subunit>=0.0.18 # Apache-2.0/BSD -sphinx!=1.3b1,<1.4,>=1.2.1 # BSD -oslosphinx>=4.7.0 # Apache-2.0 +sphinx>=1.6.2 # BSD +openstackdocstheme>=1.11.0 # Apache-2.0 testrepository>=0.0.18 # Apache-2.0/BSD -testscenarios>=0.4 # Apache-2.0/BSD testtools>=1.4.0 # MIT mock>=2.0 # BSD -WebOb>=1.6.0 # MIT diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-congressclient-1.6.0/tox.ini new/python-congressclient-1.8.0/tox.ini --- old/python-congressclient-1.6.0/tox.ini 2017-01-24 12:19:32.000000000 +0100 +++ new/python-congressclient-1.8.0/tox.ini 2017-07-26 20:48:46.000000000 +0200 @@ -1,6 +1,6 @@ [tox] minversion = 2.0 -envlist = py34,py27,pep8 +envlist = py35,py27,pep8 skipsdist = True [testenv]
participants (1)
-
root@hilbert.suse.de