mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-10 18:38:39 +00:00
[Docs] More fixes for testing with tox
This commit is contained in:
parent
6a5982f3ce
commit
fedca3167d
2 changed files with 5 additions and 9 deletions
|
@ -51,18 +51,15 @@ class Mock(object):
|
||||||
else:
|
else:
|
||||||
return Mock()
|
return Mock()
|
||||||
|
|
||||||
MOCK_MODULES = ['deluge.ui.languages', 'deluge.ui.countries', 'deluge.ui.gtkui.gtkui',
|
MOCK_MODULES = ['deluge.ui.languages', 'deluge.ui.countries', 'deluge.ui.gtkui.gtkui', 'deluge._libtorrent',
|
||||||
'psyco', 'rencode', 'win32file', 'win32event',
|
'libtorrent', 'psyco', 'rencode',
|
||||||
'twisted.web', 'twisted.web.client', 'twisted.web.error',
|
'twisted.web', 'twisted.web.client', 'twisted.web.error',
|
||||||
'win32gui', 'win32api', 'win32con', '_winreg']
|
'win32file', 'win32event', 'win32gui', 'win32api', 'win32con', '_winreg',
|
||||||
|
'pygtk', "gtk", "gobject", "gtk.gdk", "pango", "cairo", "pangocairo"]
|
||||||
if on_rtd or on_travis:
|
|
||||||
MOCK_MODULES += ['libtorrent', 'pygtk', "gtk", "gobject", "gtk.gdk", "pango", "cairo", "pangocairo"]
|
|
||||||
|
|
||||||
for mod_name in MOCK_MODULES:
|
for mod_name in MOCK_MODULES:
|
||||||
sys.modules[mod_name] = Mock()
|
sys.modules[mod_name] = Mock()
|
||||||
|
|
||||||
|
|
||||||
# General configuration
|
# General configuration
|
||||||
# ---------------------
|
# ---------------------
|
||||||
|
|
||||||
|
@ -110,7 +107,7 @@ today_fmt = '%B %d, %Y'
|
||||||
# List of directories, relative to source directories, that shouldn't be searched
|
# List of directories, relative to source directories, that shouldn't be searched
|
||||||
# for source files.
|
# for source files.
|
||||||
# exclude_dirs = []
|
# exclude_dirs = []
|
||||||
exclude_patterns = ['deluge/_libtorrent.py', 'deluge/__rpcapi.py']
|
# exclude_patterns = []
|
||||||
|
|
||||||
# The reST default role (used for this markup: `text`) to use for all documents.
|
# The reST default role (used for this markup: `text`) to use for all documents.
|
||||||
# default_role = None
|
# default_role = None
|
||||||
|
|
1
tox.ini
1
tox.ini
|
@ -137,5 +137,4 @@ deps =
|
||||||
sphinxcontrib-napoleon
|
sphinxcontrib-napoleon
|
||||||
PIL
|
PIL
|
||||||
commands=
|
commands=
|
||||||
python -c "import sphinxcontrib.napoleon"
|
|
||||||
sphinx-build -E -W -b html -d build/doctrees source build/html
|
sphinx-build -E -W -b html -d build/doctrees source build/html
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue