Skip to content

Commit e71bd78

Browse files
maresbbrandonwillard
authored andcommitted
Increase Git fetch depth for readthedocs
Avoids 'assert version is not None' from setuptools_scm during the pip install build process
1 parent 51d5d13 commit e71bd78

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

readthedocs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@ build:
77
os: "ubuntu-20.04"
88
tools:
99
python: "mambaforge-4.10"
10+
jobs:
11+
post_checkout:
12+
# This is necessary for setuptools_scm to properly read the tags. The default
13+
# depth of 50 often leads to 'assert version is not None' AssertionError during
14+
# the pip install build process. Alternatively, we could use
15+
# 'git fetch --unshallow', but that is rather intensive.
16+
- git fetch --depth 1000

0 commit comments

Comments
 (0)