From 9b384e084f598c77175559c71b83ac1864352286 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Thu, 9 Apr 2015 10:57:15 -0700 Subject: [PATCH] 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. --- docs/conf.py | 2 +- requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 requirements.txt diff --git a/docs/conf.py b/docs/conf.py index 070d607d..395f4c2d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -377,6 +377,6 @@ class Mock(object): def __getitem__(cls, key): return cls.__getattr__(key) -MOCK_MODULES = ["selinux"] +MOCK_MODULES = ["selinux", "dnf", "rpmUtils", "rpmUtils.arch"] for mod_name in MOCK_MODULES: sys.modules[mod_name] = Mock() diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..315a3412 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +Mako