OpenStack library for config
Go to file
Stephen Finucane eb6b43ba06 sphinxext: Reporting correct lines for errors
Previously, we had an issue whereby errors found in the generated source
would result in the following, rather unhelpful error messages:

  <oslo_config.sphinxext>:1: WARNING: Unexpected indentation.

Turns out that the 'ViewList.append' function takes a third argument,
'offset', to indicate where in the source an error is occurring. Start
using this to improve the quality of the error messages we get from
poorly formatted options. Given that we don't actually modify the source
file, it's also necessary to write the output from the directive to an
intermediate temp file.

This also fixes the order of imports, given that we're adding new
imports as we go.

Change-Id: I6f6796629705926dbed5015f20d47187b77c9c50
Related-Bug: #1755783
2018-06-18 12:29:18 +01:00
.zuul.d add a job to run unit tests against the lower bounds of our dependencies 2018-03-24 21:02:20 -04:00
doc improve the documentation for option location information 2018-06-13 13:37:16 -04:00
oslo_config sphinxext: Reporting correct lines for errors 2018-06-18 12:29:18 +01:00
releasenotes Update reno for stable/queens 2018-01-24 18:04:22 +00:00
.coveragerc Fix coverage configuration and execution 2015-10-05 17:20:49 -04:00
.gitignore Add * to .coverage in .gitignore 2016-04-12 17:19:12 +00:00
.gitreview Rename oslo-config to oslo.config. 2013-03-14 12:04:19 -07:00
.testr.conf Upgrade testing to use testr. 2013-05-03 17:26:07 -04:00
CONTRIBUTING.rst trivial change to contributing instructions 2018-02-19 09:51:56 -05:00
HACKING.rst Update URLs in documents according to document migration 2017-07-12 22:32:03 +08:00
LICENSE Add LICENSE file 2013-02-17 09:25:32 +00:00
README.rst Trivial: Update pypi url to new url 2018-04-21 11:12:06 +08:00
bindep.txt Add bindep.txt file to prevent fallback to generic list 2018-03-20 10:26:47 -05:00
lower-constraints.txt fix lower-constraints 2018-05-15 11:34:17 -04:00
requirements.txt Updated from global requirements 2018-03-15 07:47:33 +00:00
setup.cfg Follow the new PTI for document build 2018-03-21 15:59:01 -05:00
setup.py Updated from global requirements 2017-03-03 00:02:50 +00:00
test-requirements.txt Follow the new PTI for document build 2018-03-21 15:59:01 -05:00
tox.ini fix tox python3 overrides 2018-06-06 14:57:00 -04:00

README.rst

Team and repository tags

image

Oslo Configuration Library

Latest Version

Downloads

The Oslo configuration API supports parsing command line arguments and .ini style configuration files.