Skip to content

Commit

Permalink
DOC: added RTD configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffgortmaker committed Apr 22, 2018
1 parent 308e820 commit 404fb6d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
5 changes: 5 additions & 0 deletions readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
python:
version: 3.6
pip_install: true
extra_requirements:
- docs
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
packages=find_packages(),
python_requires='>=3.6',
install_requires=['numpy', 'scipy'],
extras_require={
'tests': ['pytest', 'pytest-xdist'],
'docs': ['sphinx', 'pandas', 'ipython', 'matplotlib', 'readme_renderer', 'sphinx_rtd_theme'],
},
include_package_data=True,
description="BLP demand estimation with Python 3",
long_description=read('README.rst'),
Expand Down
18 changes: 3 additions & 15 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,27 +1,15 @@
# Configuration for automated testing, building, and releasing.

[tox]
envlist = py36, docs

[testenv]
passenv =
KNITRODIR
ARTELYS_LICENSE
deps =
pytest
pytest-xdist
extras = tests
passenv = KNITRODIR ARTELYS_LICENSE
commands =
pytest -x {posargs}

[testenv:docs]
extras = docs
changedir = docs
deps =
sphinx
pandas
ipython
matplotlib
readme_renderer
sphinx_rtd_theme
commands =
python ../setup.py check -r -s
sphinx-build -E -W -n -b html -d build/doctrees source build/html
Expand Down

0 comments on commit 404fb6d

Please sign in to comment.