Skip to content

Commit

Permalink
Increase Git fetch depth for readthedocs
Browse files Browse the repository at this point in the history
Avoids 'assert version is not None' from setuptools_scm
during the pip install build process
  • Loading branch information
maresb authored and brandonwillard committed Jan 10, 2023
1 parent 51d5d13 commit e71bd78
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,10 @@ build:
os: "ubuntu-20.04"
tools:
python: "mambaforge-4.10"
jobs:
post_checkout:
# This is necessary for setuptools_scm to properly read the tags. The default
# depth of 50 often leads to 'assert version is not None' AssertionError during
# the pip install build process. Alternatively, we could use
# 'git fetch --unshallow', but that is rather intensive.
- git fetch --depth 1000

0 comments on commit e71bd78

Please sign in to comment.