Skip to content

Commit

Permalink
rtd fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed May 4, 2015
1 parent 2100dee commit 6d5de3e
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 14 deletions.
2 changes: 1 addition & 1 deletion ajenti-core/aj/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

__all__ = [
'config', 'platform', 'platform_string', 'platform_unmapped',
'installation_uid', 'version', 'server', 'debug', 'init',
'version', 'server', 'debug', 'init',
'exit', 'restart'
]

Expand Down
50 changes: 38 additions & 12 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,6 @@
version = aj.__version__
release = aj.__version__

import aj
import aj.api
import aj.config
import aj.core
import aj.log
import aj.plugins

aj.context = aj.api.Context()
aj.init()
aj.plugins.PluginManager.get(aj.context).load_all_from([aj.plugins.DirectoryPluginProvider('../../plugins')])


exclude_patterns = []
add_function_parentheses = True
Expand Down Expand Up @@ -104,6 +93,43 @@ def __getattr__(cls, name):
else:
return Mock()

MOCK_MODULES = ['python-ldap', 'gevent', 'gevent.pywsgi', 'gevent.queue', 'gevent-socketio', 'lxml', 'lxml.etree', 'pyOpenSSL', 'Pillow', 'psutil']
MOCK_MODULES = [
'python-ldap',
'gipc',
'gevent',
'gevent.pywsgi',
'gevent.queue',
'gevent.lock',
'gevent.event',
'gevent.ssl',
'socketio',
'socketio.namespace',
'socketio.server',
'socketio.mixins',
'socketio.handler',
'socketio.transports',
'gevent.socket',
'gevent.timeout',
'gevent-socketio',
'lxml',
'lxml.etree',
'pyOpenSSL',
'Pillow',
'psutil'
]
for mod_name in MOCK_MODULES:
sys.modules[mod_name] = Mock()




import aj
import aj.api
import aj.config
import aj.core
import aj.log
import aj.plugins

aj.context = aj.api.Context()
aj.init()
aj.plugins.PluginManager.get(aj.context).load_all_from([aj.plugins.DirectoryPluginProvider('../../plugins')])
2 changes: 1 addition & 1 deletion requirements-rtd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ python-exconsole>=0.1.5
requests>=0.12.0
reconfigure>=0.1.41
pyOpenSSL
psutil>=2
pytz

0 comments on commit 6d5de3e

Please sign in to comment.