diff options
author | Jose Plana <jplana@gmail.com> | 2013-09-30 21:45:22 +0200 |
---|---|---|
committer | Jose Plana <jplana@gmail.com> | 2013-10-01 01:34:21 +0200 |
commit | 3fd8076c1691bd03876abc571c80e1d6aa6781bf (patch) | |
tree | ad3b910f80418412298abb425c691ac9beda449e /docs-source/conf.py | |
parent | a7fb596130c1a0f6a4a4b12e118fb371b078baab (diff) |
Added travis and readthedocs support
Diffstat (limited to 'docs-source/conf.py')
-rw-r--r-- | docs-source/conf.py | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/docs-source/conf.py b/docs-source/conf.py index 8a9f332..dfb095a 100644 --- a/docs-source/conf.py +++ b/docs-source/conf.py @@ -1,18 +1,29 @@ # -*- coding: utf-8 -*- -# -# python-etcd documentation build configuration file, created by -# sphinx-quickstart on Sat Sep 14 15:58:06 2013. -# -# This file is execfile()d with the current directory set to its containing dir. -# -# Note that not all possible configuration values are present in this -# autogenerated file. -# -# All configuration values have a default; values that are commented out -# serve to show the default. import sys, os +class Mock(object): + def __init__(self, *args, **kwargs): + pass + + def __call__(self, *args, **kwargs): + return Mock() + + @classmethod + def __getattr__(cls, name): + if name in ('__file__', '__path__'): + return '/dev/null' + elif name[0] == name[0].upper(): + mockType = type(name, (), {}) + mockType.__module__ = __name__ + return mockType + else: + return Mock() + +MOCK_MODULES = ['urllib3'] +for mod_name in MOCK_MODULES: + sys.modules[mod_name] = Mock() + # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. @@ -48,9 +59,9 @@ copyright = u'2013, Jose Plana' # built documents. # # The short X.Y version. -version = '0.1' +version = '0.2' # The full version, including alpha/beta/rc tags. -release = '0.1' +release = '0.2.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. |