From ea31e492bbb40816e776259f4b42da616e537f51 Mon Sep 17 00:00:00 2001 From: Joongi Kim Date: Mon, 24 Jul 2017 14:04:09 +0900 Subject: [PATCH] refs #17: Adapt CI/RTD scripts to fit with our directory structure --- .travis.yml | 3 ++- python/requirements-docs.txt | 4 +++- python/setup.py | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9f8fc72..9e04d5d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,5 +18,6 @@ install: - cd python && pip install -r requirements-ci.txt # command to run tests +# (we are already in "python" directory here) script: - - cd python && python -m pytest tests/ + - python -m pytest tests/ diff --git a/python/requirements-docs.txt b/python/requirements-docs.txt index d8823ca..913711c 100644 --- a/python/requirements-docs.txt +++ b/python/requirements-docs.txt @@ -1 +1,3 @@ --e .[tf,docs] +# this is to be executed in RTD servers, +# where the current working directory is fixed to the repository root. +-e python[tf,docs] diff --git a/python/setup.py b/python/setup.py index 251adf1..f6b04f6 100644 --- a/python/setup.py +++ b/python/setup.py @@ -18,10 +18,12 @@ # Used in developers' PCs only dev_requires = [ 'pytest-sugar', + 'sphinx', 'sphinx-rtd-theme', ] # Used in ReadTheDocs build servers +# (actually they already have Sphinx, but let's specify it explicitly.) docs_requires = [ 'sphinx', ]