autodoc_exclude_modules doesn't help if warnerrors=True
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PBR |
Won't Fix
|
Low
|
Unassigned |
Bug Description
(docs)mriedem@
You are using pip version 7.0.3, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
---
Metadata-Version: 2.0
Name: pbr
Version: 1.2.0
Summary: Python Build Reasonableness
Home-page: https:/
Author: OpenStack
Author-email: <email address hidden>
License: UNKNOWN
Location: /home/mriedem/
Requires:
(docs)mriedem@
--
I'm trying to fix nova bug 1471934 and setting autodoc_
I'm hitting a problem with autodoc for this sub-module:
https:/
The problem is there is no __init__.py for nova.wsgi (at least I think that's the problem).
I keep hitting this with tox -e docs:
reading sources... [100%] vmstates
2015-07-07 07:03:53.640 22143 CRITICAL nova [req-6066bd01-
2015-07-07 07:03:53.640 22143 ERROR nova Traceback (most recent call last):
2015-07-07 07:03:53.640 22143 ERROR nova File "setup.py", line 29, in <module>
2015-07-07 07:03:53.640 22143 ERROR nova pbr=True)
2015-07-07 07:03:53.640 22143 ERROR nova File "/usr/lib/
2015-07-07 07:03:53.640 22143 ERROR nova dist.run_commands()
2015-07-07 07:03:53.640 22143 ERROR nova File "/usr/lib/
2015-07-07 07:03:53.640 22143 ERROR nova self.run_
2015-07-07 07:03:53.640 22143 ERROR nova File "/usr/lib/
2015-07-07 07:03:53.640 22143 ERROR nova cmd_obj.run()
2015-07-07 07:03:53.640 22143 ERROR nova File "/home/
2015-07-07 07:03:53.640 22143 ERROR nova self._sphinx_run()
2015-07-07 07:03:53.640 22143 ERROR nova File "/home/
2015-07-07 07:03:53.640 22143 ERROR nova app.build(
2015-07-07 07:03:53.640 22143 ERROR nova File "/home/
2015-07-07 07:03:53.640 22143 ERROR nova self.builder.
2015-07-07 07:03:53.640 22143 ERROR nova File "/home/
2015-07-07 07:03:53.640 22143 ERROR nova self.build(None, summary='all source files', method='all')
2015-07-07 07:03:53.640 22143 ERROR nova File "/home/
2015-07-07 07:03:53.640 22143 ERROR nova self.warn(*warning)
2015-07-07 07:03:53.640 22143 ERROR nova File "/home/
2015-07-07 07:03:53.640 22143 ERROR nova raise SphinxWarning(
2015-07-07 07:03:53.640 22143 ERROR nova SphinxWarning: /home/mriedem/
2015-07-07 07:03:53.640 22143 ERROR nova
2015-07-07 07:03:53.640 22143 ERROR nova
So I added autodoc_
[pbr]
autodoc_
autodoc_
warnerrors = true
But it still fails. The fnmatch should be fine though:
Python 2.7.6 (default, Jun 22 2015, 18:00:18)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import fnmatch
>>>
>>> test = 'nova.wsgi.
>>> test
'nova.wsgi.
>>> pattern = 'nova.wsgi.*'
>>> fnmatch.
True
I added some debug code here:
https:/ /github. com/openstack- dev/pbr/ blob/master/ pbr/builddoc. py#L80
And it is parsing the option correctly:
running build_sphinx git/nova python2. 7/distutils/ core.py" , line 151, in setup run_commands( ) python2. 7/distutils/ dist.py" , line 953, in run_commands run_command( cmd) python2. 7/distutils/ dist.py" , line 972, in run_command mriedem/ git/nova/ .tox/docs/ local/lib/ python2. 7/site- packages/ pbr/builddoc. py", line 181, in run mriedem/ git/nova/ .tox/docs/ local/lib/ python2. 7/site- packages/ pbr/builddoc. py", line 84, in generate_autoindex modules) wsgi.*' ])
[pbr] Writing ChangeLog
[pbr] Generating ChangeLog
[pbr] Generating AUTHORS
[pbr] Autodocumenting from /home/mriedem/
Traceback (most recent call last):
File "setup.py", line 29, in <module>
pbr=True)
File "/usr/lib/
dist.
File "/usr/lib/
self.
File "/usr/lib/
cmd_obj.run()
File "/home/
[None, ""])[1].split()))
File "/home/
excluded_
Exception: [pbr] Excluded modules: set(['nova.