Mock more modules for RTD

Also add a requirements.txt for RTD so that it will install Mako into
the virtualenv when generating the documentation.
This commit is contained in:
Brian C. Lane 2015-04-09 10:57:15 -07:00
parent da59f8af4b
commit 9b384e084f
2 changed files with 2 additions and 1 deletions

View File

@ -377,6 +377,6 @@ class Mock(object):
def __getitem__(cls, key): def __getitem__(cls, key):
return cls.__getattr__(key) return cls.__getattr__(key)
MOCK_MODULES = ["selinux"] MOCK_MODULES = ["selinux", "dnf", "rpmUtils", "rpmUtils.arch"]
for mod_name in MOCK_MODULES: for mod_name in MOCK_MODULES:
sys.modules[mod_name] = Mock() sys.modules[mod_name] = Mock()

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
Mako