Skip to content

Commit

Permalink
Unshallow git clone on RTD
Browse files Browse the repository at this point in the history
Fetch full history so that setuptools-scm could detect correct version

For the context:
- pypa/setuptools_scm#790
- https://docs.readthedocs.io/en/latest/build-customization.html#unshallow-git-clone
  • Loading branch information
atugushev committed Jul 29, 2023
1 parent de746ec commit a63e31e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .readthedocs.yaml
Expand Up @@ -17,6 +17,9 @@ build:
tools:
python: >-
3.11
jobs:
post_checkout:
- git fetch --unshallow || true

python:
install:
Expand Down

0 comments on commit a63e31e

Please sign in to comment.