Skip to content

Commit 354c2b2

Browse files
committed
Use conda for documentation build reqs
1 parent b49f54f commit 354c2b2

File tree

5 files changed

+42
-26
lines changed

5 files changed

+42
-26
lines changed

.readthedocs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ sphinx:
88
configuration: docs/conf.py
99

1010
# Python config
11+
build:
12+
image: latest
1113
python:
1214
version: 3.6
13-
install:
14-
- requirements: docs/requirements.txt
15+
conda:
16+
environment: docs/environment.yml

.travis.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,25 @@ notifications:
99
python:
1010
- "3.6"
1111

12+
before_install:
13+
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
14+
- bash miniconda.sh -b -p $HOME/miniconda
15+
- export PATH="$HOME/miniconda/bin:$PATH"
16+
- hash -r
17+
- conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
18+
- conda update -q conda
19+
- conda info -a
20+
1221
install:
13-
- which pip
22+
- conda env create -n climpred-dev --file ci/environment-dev-3.6.yml
23+
- conda activate climpred-dev
24+
- conda install pip
25+
- conda list
26+
- which conda
1427
- which python
1528
- pip install -r docs/requirements.txt
29+
- python setup.py install --user
30+
1631

1732
script:
1833
- pushd docs

docs/environment.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: proplot-dev
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- pip
6+
- numpy
7+
- xarray
8+
- pandas
9+
- matplotlib
10+
- cartopy
11+
- basemap
12+
- sphinx
13+
- nbsphinx
14+
- ipython
15+
- ipykernel
16+
- pip:
17+
- lxml
18+
- pyyaml
19+
- sphinx_rtd_theme
20+
- git+https://github.com/lukelbd/sphinx-automodapi@v0.6.proplot-mods

docs/requirements.txt

Lines changed: 0 additions & 20 deletions
This file was deleted.

requirements.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Hard requirements
22
# TODO: Remove lxml after #50 merged
3-
matplotlib>=2.2
4-
numpy>=1.11
5-
lxml>=4.0.0
3+
matplotlib
4+
lxml

0 commit comments

Comments
 (0)