Skip to content

Commit

Permalink
use base version
Browse files Browse the repository at this point in the history
  • Loading branch information
wtbarnes authored and Cadair committed Sep 25, 2024
1 parent dcd5ea6 commit 33f857c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions {{ cookiecutter.package_name }}/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
_version_ = Version(__version__)
# NOTE: Avoid "post" appearing in version string in rendered docs
if _version_.is_postrelease:
version = release = f'{_version_.major}.{_version_.minor}.{_version_.micro}'
version = release = _version_.base_version
# NOTE: Avoid long githashes in rendered Sphinx docs
elif _version_.is_devrelease:
version = release = f'{_version_.major}.{_version_.minor}.dev{_version_.dev}'
version = release = f'{_version_.base_version}.dev{_version_.dev}'
else:
version = release = str(_version_)
is_development = _version_.is_devrelease
Expand Down

0 comments on commit 33f857c

Please sign in to comment.