Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update RTD config #1591

Merged
merged 2 commits into from
Jul 17, 2023
Merged

Update RTD config #1591

merged 2 commits into from
Jul 17, 2023

Conversation

larrybradley
Copy link
Member

RTD "latest" (dev) builds show a wrong version number because they perform a shallow clone (depth 50) of the repo (https://docs.readthedocs.io/en/stable/build-customization.html#unshallow-git-clone). This often prevents setuptools_scm from finding the most-recent tag from which to build the version number. This PR fixes that issue by "unshallowing" the clone back to at least the latest tag. It also prevents having a dirty git index (which can also alter the version) during the RTD build (https://docs.readthedocs.io/en/stable/build-customization.html#avoid-having-a-dirty-git-index).

Fixes: #1588

@larrybradley larrybradley merged commit cb11a4d into astropy:main Jul 17, 2023
16 checks passed
@larrybradley larrybradley deleted the rtd-config branch July 17, 2023 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation - RTD latest points to an old version?
1 participant