Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Commit 58a8788

Browse files
authored
Conda env for docs (#66)
* added conda env for building docs * updated testing ci env * point rtd to new conda env * remove unneeded future impor * removed docs requirements file in favour of conda env * try to prevent loading two versions of python simultaneously
1 parent 8d96b1e commit 58a8788

File tree

5 files changed

+25
-10
lines changed

5 files changed

+25
-10
lines changed

ci/doc.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: datatree-doc
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- pip
6+
- python>=3.9
7+
- xarray>=0.20.2
8+
- netcdf4
9+
- anytree
10+
- sphinx
11+
- sphinx-copybutton
12+
- numpydoc
13+
- sphinx-autosummary-accessors
14+
- ipython
15+
- h5netcdf
16+
- zarr
17+
- pip:
18+
- git+https://github.com/xarray-contrib/datatree

ci/environment.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
name: datatree
1+
name: datatree-test
22
channels:
33
- conda-forge
44
- nodefaults
55
dependencies:
6-
- xarray >=0.19.0
6+
- python>=3.9
7+
- xarray>=0.20.2
78
- netcdf4
89
- anytree
910
- pytest

docs/requirements.txt

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

readthedocs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ version: 2
33
build:
44
image: latest
55

6+
# Optionally set the version of Python and requirements required to build your docs
7+
conda:
8+
environment: ci/doc.yml
9+
610
python:
711
install:
8-
- requirements: docs/requirements.txt
912
- method: pip
1013
path: .

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
xarray>=0.20.2
22
anytree
3-
future

0 commit comments

Comments
 (0)