Upgrade hacking to >=0.10.0

The current version of hacking is very old; upgrade hacking
and fix any minor errors that were uncovered.

Change-Id: Iabf38881b6030dce903c8e74670bfd6e5eabbc20
This commit is contained in:
Steve Martinelli 2015-02-06 01:40:11 -05:00
parent c91842de47
commit c7425da06f
3 changed files with 5 additions and 3 deletions

View File

@ -21,6 +21,7 @@ from oslo_policy import policy
def list_opts():
"""Return a list of oslo.config options available in the library.
The returned list includes all oslo.config options which may be registered
at runtime by the library.
Each element of the list is a tuple. The first element is the name of the
@ -31,6 +32,8 @@ def list_opts():
under the 'oslo.config.opts' namespace.
The purpose of this is to allow tools like the Oslo sample config file
generator to discover the options exposed to users by this library.
:returns: a list of (group_name, opts) tuples
"""
return [('oslo_policy', copy.deepcopy(policy._opts))]

View File

@ -2,7 +2,7 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
hacking>=0.5.6,<0.8
hacking>=0.10.0,<0.11
oslotest
# These are needed for docs generation

View File

@ -30,10 +30,9 @@ commands = python setup.py testr --coverage
[flake8]
# H803 skipped on purpose per list discussion.
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125,H803
ignore = H803
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build