Sync with oslo-incubator copy of setup.py and version.py

Keep up with the changes to the master copy

Change-Id: I24522c7de91c2dea0f7e4b8cac2a27ff162df7f1
Don't print the empty table on list operations.

Changes to strutils.safe_encode cause the empty
table to be printed out when no objects are actually
retrieved.

This patch just adds a check of the object list length
before calling strutils.safe_encode, if the length is NOT
> 0 we just return like we used to.

Change-Id: I57930b5210c975baa7c4510fcf82b17157e17788
Fixed unit test name in v1 and v2 tests

Change-Id: Ia6a88be09a07ed269b1e9b43a86c88731c80784c
Merge "Don't print the empty table on list operations."
Add support for volume backups

Implements support for the volume backup api added to cinder in
https://review.openstack.org/19468. This is a resubmit of the
expired change https://review.openstack.org/25299 with the
following changes:

* Added unit tests for backups (v1 and v2)
* Changed references in backup code to display_name and
  display_description to name and description respectively
* Removed links from backup-show output
* Added object_count to _translate_backup_keys
* Removed unneccesary items from _translate_backup_keys
* Fixed backups docstrings including removing references to swift.

Adds backup-create, backup-delete, backup-list, backup-restore
and backup-show to both the v1 and v2 clients, since the volume
backup extension is available via both APIs.

Change-Id: I197384f1c2fd2af641d207a5f4dba0dfbc5c681a
Update setup.py prior to next upload to pypi.

Minor updates to the setup.py file including:
author and email.

Change-Id: I0194a5fdaa1ea441115e6e869182e4dcb5b531e0
Update release info in index.rst.

Add release notes and fix revision number mishap.

Change-Id: Ia48be8462e17c900562b794fd69ba2234f6c6c03
Add license information.

Several files were missing the license issue, so simply
add them.

Change-Id: I866ec03096a72fe8ae7d776e2ffe040379ec5bc6
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Fixed do_create() in v2 shell.

Previously when creating a volume v2 shell was able to create
it but then failed to display volume properties. Instead of that
it displayed a non-informative error message. This patch fixes
the problem.

Change-Id: I1d3f9127ddd793a905527660b64ffe8c28f20f1d
Allow generator as input to utils.print_list.

Once the table is built, the length of the prettytable's internal array
is checked rather than re-iterrating over the input.

Adds tests for utils.print_list with list and generator input.

Change-Id: I4c0bd08bf0c943de42ad90d255a2d831c2e98828
Fixes: bug #1180059
Add .coveragerc file to show correct code coverage

Change-Id: I85eaa7f96c9ebf82984356cd08f2d05a0915e0e5
Merge "Add .coveragerc file to show correct code coverage"
Merge "Allow generator as input to utils.print_list."
Migrate to flake8.

Fixes bug 1172444.

Change-Id: Ia063ec67de9e6061ce38b948c9eb60b5589c7bb4
Make ManagerWithFind abstract and fix its descendants

ManagerWithFind requires list() method in its descendants.
Make it abstract and fix its improper descendants that do
not implement list() (QuotaSetManager and others).

Change-Id: I691ca389b5fea4c1bb36499a264b578fa825bbbf
Fixes: bug #1180393
Implement scheduler hints for APIv2

We've done this implementation because we need to use scheduler hint in
cinder with some specific filters. So, most part of code have been
imported from nova.

bp scheduler-hints
docimpact

Change-Id: Ib7e858e98110a30c5f8d5ff05d03ce2d61f04f92
Migrate to pbr.

Fixes bug 1179007.

Change-Id: I66b78ec4b5ba70a1bf1e375a5d1b7575a1879730
Rename requires files to standard names.

Fixes bug 1179008.

Change-Id: I6765bb82df1ae672790662a30ee3527450685036
Move tests into cinderclient package.

tests/__init__.py implies a package in the global namespace called
tests. That's not what these are - they're tests in the cinderclient
namespace.

Change-Id: I29c95bcd8747c3f5f21d5d900879c9b6b1c9a963
Only add logging handlers if there currently aren't any

This corrects an odd problem where Horizon would stand up multiple
client objects, which would cause duplicate/triplicate/dozens of
repeated log lines in its log files, due to multiple identical
handlers being added to the logging object

Fixes Bug 1182678

Change-Id: I198f3ecbb687bff69a06a166574b998cce54f2ac