mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-25 21:06:23 +02:00
Updated conf
This commit is contained in:
parent
2be2c63bcd
commit
94c9c9ce99
1 changed files with 22 additions and 2 deletions
|
|
@ -36,6 +36,20 @@ extensions = [
|
|||
'sphinx.ext.viewcode',
|
||||
]
|
||||
|
||||
import sys
|
||||
try:
|
||||
from unittest.mock import MagicMock
|
||||
except:
|
||||
from mock import Mock as MagicMock
|
||||
|
||||
class Mock(MagicMock):
|
||||
@classmethod
|
||||
def __getattr__(cls, name):
|
||||
return Mock()
|
||||
|
||||
MOCK_MODULES = []
|
||||
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['_templates']
|
||||
|
||||
|
|
@ -60,9 +74,15 @@ author = u'GPy Authors'
|
|||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = '0.8.8'
|
||||
with open('../../GPy/__version__.py', 'r') as f:
|
||||
version = f.read()
|
||||
release = version
|
||||
|
||||
print version
|
||||
|
||||
# version = '0.8.8'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = '0.8.8'
|
||||
# release = '0.8.8'
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue