Skip to content

Commit

Permalink
Use conda for documentation build reqs
Browse files Browse the repository at this point in the history
  • Loading branch information
lukelbd committed Nov 27, 2019
1 parent b49f54f commit 354c2b2
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 26 deletions.
6 changes: 4 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ sphinx:
configuration: docs/conf.py

# Python config
build:
image: latest
python:
version: 3.6
install:
- requirements: docs/requirements.txt
conda:
environment: docs/environment.yml
17 changes: 16 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,25 @@ notifications:
python:
- "3.6"

before_install:
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
- conda update -q conda
- conda info -a

install:
- which pip
- conda env create -n climpred-dev --file ci/environment-dev-3.6.yml
- conda activate climpred-dev
- conda install pip
- conda list
- which conda
- which python
- pip install -r docs/requirements.txt
- python setup.py install --user


script:
- pushd docs
Expand Down
20 changes: 20 additions & 0 deletions docs/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: proplot-dev
channels:
- conda-forge
dependencies:
- pip
- numpy
- xarray
- pandas
- matplotlib
- cartopy
- basemap
- sphinx
- nbsphinx
- ipython
- ipykernel
- pip:
- lxml
- pyyaml
- sphinx_rtd_theme
- git+https://github.com/lukelbd/[email protected]
20 changes: 0 additions & 20 deletions docs/requirements.txt

This file was deleted.

5 changes: 2 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Hard requirements
# TODO: Remove lxml after #50 merged
matplotlib>=2.2
numpy>=1.11
lxml>=4.0.0
matplotlib
lxml

0 comments on commit 354c2b2

Please sign in to comment.