|
1 | 1 | # -*- coding: utf-8 -*- |
2 | | -# |
3 | | -# python-etcd documentation build configuration file, created by |
4 | | -# sphinx-quickstart on Sat Sep 14 15:58:06 2013. |
5 | | -# |
6 | | -# This file is execfile()d with the current directory set to its containing dir. |
7 | | -# |
8 | | -# Note that not all possible configuration values are present in this |
9 | | -# autogenerated file. |
10 | | -# |
11 | | -# All configuration values have a default; values that are commented out |
12 | | -# serve to show the default. |
13 | 2 |
|
14 | 3 | import sys, os |
15 | 4 |
|
| 5 | +class Mock(object): |
| 6 | + def __init__(self, *args, **kwargs): |
| 7 | + pass |
| 8 | + |
| 9 | + def __call__(self, *args, **kwargs): |
| 10 | + return Mock() |
| 11 | + |
| 12 | + @classmethod |
| 13 | + def __getattr__(cls, name): |
| 14 | + if name in ('__file__', '__path__'): |
| 15 | + return '/dev/null' |
| 16 | + elif name[0] == name[0].upper(): |
| 17 | + mockType = type(name, (), {}) |
| 18 | + mockType.__module__ = __name__ |
| 19 | + return mockType |
| 20 | + else: |
| 21 | + return Mock() |
| 22 | + |
| 23 | +MOCK_MODULES = ['urllib3'] |
| 24 | +for mod_name in MOCK_MODULES: |
| 25 | + sys.modules[mod_name] = Mock() |
| 26 | + |
16 | 27 | # If extensions (or modules to document with autodoc) are in another directory, |
17 | 28 | # add these directories to sys.path here. If the directory is relative to the |
18 | 29 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
|
48 | 59 | # built documents. |
49 | 60 | # |
50 | 61 | # The short X.Y version. |
51 | | -version = '0.1' |
| 62 | +version = '0.2' |
52 | 63 | # The full version, including alpha/beta/rc tags. |
53 | | -release = '0.1' |
| 64 | +release = '0.2.0' |
54 | 65 |
|
55 | 66 | # The language for content autogenerated by Sphinx. Refer to documentation |
56 | 67 | # for a list of supported languages. |
|
0 commit comments