Skip to content

Commit

Permalink
Use unshallow Git fetch for setuptools-scm (Read the Docs) (#491)
Browse files Browse the repository at this point in the history
* Test unshallow.

* Add comment.
  • Loading branch information
trexfeathers authored Oct 2, 2024
1 parent 5b7f56a commit 81b9d5b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ build:
python: mambaforge-4.10
jobs:
post_checkout:
# reference: https://github.com/SciTools/cf-units/pull/272
# perform a "git fetch --unshallow" when the cf-units repo
# becomes incomplete i.e., there is a .git/shallow.
# The SciTools/cf-units 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
pre_install:
# create a "common" link to the underlying rtd conda environment,
Expand Down

0 comments on commit 81b9d5b

Please sign in to comment.