Skip to content

Commit ef1ce06

Browse files
Fix broken build on readthedocs, third attempt
This actually breaks the < 1.3 builds (as sadly there is no way to specify the requirements file per version, it is a global setting). Since we do not actually need to build more docs for 1.2 or less, this is not too much of a problem.
1 parent f28eb97 commit ef1ce06

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

docs/conf.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,6 @@
1313

1414
import sys, os
1515

16-
17-
18-
# To avoid builds failing because of missing C libraries, see:
19-
# http://read-the-docs.readthedocs.org/en/latest/faq.html
20-
# #i-get-import-errors-on-libraries-that-depend-on-c-modules
21-
try:
22-
from unittest.mock import MagicMock
23-
except ImportError:
24-
from mock import Mock as MagicMock
25-
26-
class Mock(MagicMock):
27-
@classmethod
28-
def __getattr__(cls, name):
29-
return Mock()
30-
31-
MOCK_MODULES = ['pycups']
32-
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
33-
34-
3516
# If extensions (or modules to document with autodoc) are in another directory,
3617
# add these directories to sys.path here. If the directory is relative to the
3718
# documentation root, use os.path.abspath to make it absolute, like shown here.

docs/requirements.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)