Skip to content

Commit

Permalink
Merge 14529ae into 4d800ab
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbern committed Aug 2, 2019
2 parents 4d800ab + 14529ae commit a184802
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ install:
- pip install pytest flaky .
script:
- py.test -s -v --cov=convoys .
- sphinx-build -M html docs/ docs/_build/
- python setup.py build_sphinx
after_success:
- coveralls
5 changes: 5 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@
}


# Mock modules during doc generation
# TODO: would be nice if this is pulled automatically from setup.py
autodoc_mock_imports = ['autograd', 'autograd-gamma', 'emcee', 'matplotlib', 'numpy', 'pandas', 'scipy']


# -- Extension configuration -------------------------------------------------

# -- Options for todo extension ----------------------------------------------
Expand Down
11 changes: 10 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from setuptools import setup, find_packages
from sphinx.setup_command import BuildDoc

long_description = '''
For more information, see
Expand Down Expand Up @@ -26,4 +27,12 @@
'pandas',
'numpy',
'scipy',
])
],

# Sphinx-specific setup
cmdclass={'build_sphinx': BuildDoc},
command_options={
'build_sphinx': {
'source_dir': ('setup.py', 'docs'),
'build_dir': ('setup.py', 'docs/_build')}},
)

0 comments on commit a184802

Please sign in to comment.