1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/changeset/029237b5d5a2/ changeset: 029237b5d5a2 user: clements date: 2012-11-03 17:34:06 summary: Added ReadTheDocs section to Sphinx's conf.py. This lists modules that need to be mocked up, Ithink. affected #: 1 file
diff -r f8c03b26fd59f8546959789af33b2ae0370b8551 -r 029237b5d5a2a511c7a787b7d7abbc6de94c01f3 doc/source/conf.py --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -252,3 +252,27 @@
# How to display URL addresses: 'footnote', 'no', or 'inline'. #texinfo_show_urls = 'footnote' + +# -- ReadTheDocs.org Settings ------------------------------------------------ + +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 = ['tables', 'pbs_python', 'DRMAA_python', 'decorator'] +for mod_name in MOCK_MODULES: + sys.modules[mod_name] = Mock()
Repository URL: https://bitbucket.org/galaxy/galaxy-central/
--
This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
galaxy-commits@lists.galaxyproject.org