-
Notifications
You must be signed in to change notification settings - Fork 283
/
.readthedocs.yml
31 lines (27 loc) · 756 Bytes
/
.readthedocs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
version: 2
build:
os: "ubuntu-22.04"
tools:
python: "mambaforge-22.9"
jobs:
post_checkout:
# The SciTools/iris repository is shallow i.e., has a .git/shallow,
# therefore complete the repository with a full history in order
# to allow setuptools-scm to correctly auto-discover the version.
- git fetch --unshallow
- git fetch --all
# Need to stash the local changes that Read the Docs makes so that
# setuptools_scm can generate the correct Iris version.
pre_install:
- git stash
post_install:
- git stash pop
conda:
environment: requirements/readthedocs.yml
sphinx:
configuration: docs/src/conf.py
fail_on_warning: false
python:
install:
- method: pip
path: .