Add config files
Change-Id: I4dc76dff7dfb7ceb2ca92044f564d5baab74c9e5
This commit is contained in:
parent
5fd2a77893
commit
62a9ebd821
12
etc/higgins/README-higgins.conf.txt
Normal file
12
etc/higgins/README-higgins.conf.txt
Normal file
@ -0,0 +1,12 @@
|
||||
To generate the sample higgins.conf file, run the following
|
||||
command from the top level of the higgins directory:
|
||||
|
||||
tox -egenconfig
|
||||
|
||||
Or you can generate the sample higgins.conf file in global
|
||||
environment, run the following command from the top level
|
||||
of the higgins directory:
|
||||
|
||||
pip install oslo.config
|
||||
oslo-config-generator --config-file \
|
||||
etc/higgins/higgins-config-generator.conf
|
0
etc/higgins/api-paste.ini
Normal file
0
etc/higgins/api-paste.ini
Normal file
5
etc/higgins/higgins-config-generator.conf
Normal file
5
etc/higgins/higgins-config-generator.conf
Normal file
@ -0,0 +1,5 @@
|
||||
[DEFAULT]
|
||||
output_file = etc/higgins/higgins.conf.sample
|
||||
wrap_width = 79
|
||||
|
||||
namespace = higgins
|
1
etc/higgins/policy.json
Normal file
1
etc/higgins/policy.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
15
higgins/opts.py
Normal file
15
higgins/opts.py
Normal file
@ -0,0 +1,15 @@
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy
|
||||
# of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
|
||||
def list_opts():
|
||||
return []
|
@ -8,5 +8,6 @@ greenlet>=0.3.2 # MIT
|
||||
pbr>=1.6 # Apache-2.0
|
||||
pecan>=1.0.0 # BSD
|
||||
oslo.i18n>=2.1.0 # Apache-2.0
|
||||
oslo.config>=3.9.0 # Apache-2.0
|
||||
six>=1.9.0 # MIT
|
||||
WebOb>=1.2.3 # MIT
|
||||
|
@ -43,3 +43,7 @@ input_file = higgins/locale/higgins.pot
|
||||
keywords = _ gettext ngettext l_ lazy_gettext
|
||||
mapping_file = babel.cfg
|
||||
output_file = higgins/locale/higgins.pot
|
||||
|
||||
[entry_points]
|
||||
oslo.config.opts =
|
||||
higgins = higgins.opts:list_opts
|
||||
|
4
tox.ini
4
tox.ini
@ -72,3 +72,7 @@ commands =
|
||||
|
||||
install_command = pip install -U --force-reinstall {opts} {packages}
|
||||
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||
|
||||
[testenv:genconfig]
|
||||
commands =
|
||||
oslo-config-generator --config-file etc/higgins/higgins-config-generator.conf
|
||||
|
Loading…
Reference in New Issue
Block a user