Skip to content

Commit

Permalink
Merge pull request #235 from QuantEcon/fix-rtd
Browse files Browse the repository at this point in the history
Update rtd to a conda environment and remove mock to correct for missing `jit` functions
  • Loading branch information
mmcky committed Mar 15, 2016
2 parents 859729f + 871d426 commit 4eff123
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 23 deletions.
16 changes: 8 additions & 8 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ def install(package):
# ------------------------------------------------------------------- #
# MOCK MODULES
# ------------------------------------------------------------------- #
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
# on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

if on_rtd:
class Mock(MagicMock):
@classmethod
def __getattr__(cls, name):
return Mock()
# if on_rtd:
# class Mock(MagicMock):
# @classmethod
# def __getattr__(cls, name):
# return Mock()

MOCK_MODULES = ['pandas', 'statsmodels', 'numba']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
# MOCK_MODULES = ['pandas', 'statsmodels', 'numba']
# sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down
2 changes: 2 additions & 0 deletions readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
conda:
file: rtd-environment.yml
60 changes: 60 additions & 0 deletions rtd-environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: rtd
dependencies:
- alabaster=0.7.7=py35_0
- babel=2.2.0=py35_0
- cycler=0.10.0=py35_0
- decorator=4.0.9=py35_0
- docutils=0.12=py35_0
- fontconfig=2.11.1=5
- freetype=2.5.5=0
- ipython=4.1.2=py35_0
- ipython_genutils=0.1.0=py35_0
- jinja2=2.8=py35_0
- libgfortran=3.0=0
- libpng=1.6.17=0
- libxml2=2.9.2=0
- llvmlite=0.9.0=py35_0
- markupsafe=0.23=py35_0
- matplotlib=1.5.1=np110py35_0
- mkl=11.3.1=0
- mpmath=0.19=py35_0
- numba=0.24.0=np110py35_0
- numpy=1.10.4=py35_1
- numpydoc=0.5=py35_1
- openssl=1.0.2g=0
- pandas=0.18.0=np110py35_0
- path.py=8.1.2=py35_1
- patsy=0.4.0=np110py35_0
- pexpect=3.3=py35_0
- pickleshare=0.5=py35_0
- pip=8.1.0=py35_0
- pygments=2.1.1=py35_0
- pyparsing=2.0.3=py35_0
- pyqt=4.11.4=py35_1
- python=3.5.1=0
- python-dateutil=2.5.0=py35_0
- pytz=2015.7=py35_0
- qt=4.8.7=1
- readline=6.2=2
- requests=2.9.1=py35_0
- scipy=0.17.0=np110py35_2
- setuptools=20.2.2=py35_0
- simplegeneric=0.8.1=py35_0
- sip=4.16.9=py35_0
- six=1.10.0=py35_0
- snowballstemmer=1.2.1=py35_0
- sphinx=1.3.5=py35_0
- sphinx_rtd_theme=0.1.9=py35_0
- sqlite=3.9.2=0
- statsmodels=0.6.1=np110py35_0
- sympy=1.0=py35_0
- tk=8.5.18=0
- traitlets=4.1.0=py35_0
- wheel=0.29.0=py35_0
- xz=5.0.5=1
- zlib=1.2.8=0
- pip:
- ipython-genutils==0.1.0
- quantecon==0.3.1
- sphinx-rtd-theme==0.1.9

15 changes: 0 additions & 15 deletions rtd-pip-requirements.txt

This file was deleted.

0 comments on commit 4eff123

Please sign in to comment.