Skip to content

Commit 573780b

Browse files
authored
fix rtd version (SciTools#4855)
1 parent 036c90c commit 573780b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.readthedocs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ build:
44
os: ubuntu-20.04
55
tools:
66
python: mambaforge-4.10
7+
jobs:
8+
post_checkout:
9+
- git fetch --unshallow
10+
- git fetch --all
711

812
conda:
913
environment: requirements/ci/readthedocs.yml

docs/src/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ def autolog(message):
8787
# |version|, also used in various other places throughout the built documents.
8888

8989
version = get_version("scitools-iris")
90+
if version.endswith("+dirty"):
91+
version = version[: -len("+dirty")]
9092
autolog(f"Iris Version = {version}")
9193

9294
# -- General configuration ---------------------------------------------------

0 commit comments

Comments
 (0)