Show the released version in the docs instead of "0+untagged" - #1926
Merged
Merged
Conversation
Read the Docs clones shallowly and fetches only the branch ref, so the build had no tags for versioneer to describe and `dandi.__version__` fell back to "0+untagged.353.gd92c917". Fetch the history and tags in a post_checkout job, before `pip install .` runs versioneer. Also strip the local version segment for display: `version` is now the released portion (e.g. "0.80.0") while `release` keeps the full commit-precise string, and `html_title` uses `version` since Sphinx's default builds that title from `release`. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1926 +/- ##
==========================================
- Coverage 78.14% 78.12% -0.02%
==========================================
Files 91 91
Lines 13944 13944
==========================================
- Hits 10896 10894 -2
- Misses 3048 3050 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
CodyCBakerPhD
approved these changes
Sep 21, 2026
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Context
The DANDI Client Read the Docs shows the
0+untagged.353.gd92c917version:Here I propose changing this value to the latest version on PyPI.
Changes
post_checkoutjob, beforepip install .runs versioneer.versionis now the released portion (e.g.0.80.0), andhtml_titleusesversionsince Sphinx's default builds that title fromrelease.