autohelp: add a module blacklisting mechanism
Change-Id: I932bc5ad740c9eaee3d1db05462ccb2c2a2779a7
This commit is contained in:
parent
c5af452d8c
commit
b4cb74cb07
@ -9,8 +9,9 @@ Release notes
|
|||||||
* ``autohelp.py``: Improve sanitizer, better support for i18n in
|
* ``autohelp.py``: Improve sanitizer, better support for i18n in
|
||||||
projects, allow setting of title name for tables.
|
projects, allow setting of title name for tables.
|
||||||
* ``autohelp-wrapper``: Smarter handling of the manuals repo and environment
|
* ``autohelp-wrapper``: Smarter handling of the manuals repo and environment
|
||||||
setup, add support for the ``create`` subcommand, add support for
|
setup, add support for the ``create`` subcommand.
|
||||||
offline/fast operation.
|
* ``autohelp-wrapper``: Add support for offline/fast operation.
|
||||||
|
* ``autohelp-wrapper``: Add a module blacklisting mechanism.
|
||||||
* ``diff_branches.py``: Updated output format.
|
* ``diff_branches.py``: Updated output format.
|
||||||
|
|
||||||
0.18.1
|
0.18.1
|
||||||
|
@ -37,6 +37,11 @@ from hooks import HOOKS # noqa
|
|||||||
|
|
||||||
EXTENSIONS = ['oslo.messaging', 'oslo.db']
|
EXTENSIONS = ['oslo.messaging', 'oslo.db']
|
||||||
|
|
||||||
|
IGNORE = ['trove.guestagent.datastore.postgresql.manager',
|
||||||
|
'trove.guestagent.datastore.postgresql.service.root',
|
||||||
|
'trove.guestagent.datastore.postgresql.service.users',
|
||||||
|
'trove.guestagent.datastore.postgresql.service.database']
|
||||||
|
|
||||||
BASE_XML = '''<?xml version="1.0" encoding="UTF-8"?>
|
BASE_XML = '''<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<para xmlns="http://docbook.org/ns/docbook"
|
<para xmlns="http://docbook.org/ns/docbook"
|
||||||
version="5.0">
|
version="5.0">
|
||||||
@ -127,6 +132,8 @@ def import_modules(repo_location, package_name, verbose=0):
|
|||||||
modname = '.'.join(modname)
|
modname = '.'.join(modname)
|
||||||
if modname.endswith('.__init__'):
|
if modname.endswith('.__init__'):
|
||||||
modname = modname[:modname.rfind(".")]
|
modname = modname[:modname.rfind(".")]
|
||||||
|
if modname in IGNORE:
|
||||||
|
continue
|
||||||
try:
|
try:
|
||||||
module = importlib.import_module(modname)
|
module = importlib.import_module(modname)
|
||||||
if verbose >= 1:
|
if verbose >= 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user