www icon indicating copy to clipboard operation
www copied to clipboard

Show the release string somewhere on the website

Open rjsparks opened this issue 4 years ago • 3 comments

When a release is made, a module (probably the ietf module) should be updated to report a version. Some view, probably the base, should show what the running version is.

rjsparks avatar Aug 03 '21 15:08 rjsparks

Would the version be autogenerated like a git hash / deploy date?

holloway avatar Apr 21 '22 07:04 holloway

Version is git tag or the release version from https://github.com/ietf-tools/wagtail_website/releases

kesara avatar Apr 21 '22 10:04 kesara

We solved this at the datatracker by writing into ietf/init.py at release time (setting both version and release_hash)

# Copyright The IETF Trust 2007-2020, All Rights Reserved
# -*- coding: utf-8 -*-


from . import checks                           # pyflakes:ignore

# Version must stay in single quotes for automatic CI replace
# Don't add patch number here:
__version__ = '8.0.0'

# Release hash must stay in single quotes for automatic CI replace
__release_hash__ = '87fac4e12a035b0da24ab3aa6a0897d357af4e29'

# Release branch must stay in single quotes for automatic CI replace
__release_branch__ = 'main'

# set this to ".p1", ".p2", etc. after patching
__patch__   = ""

then settings or settings_local pulls these things in to make them easily available to templates.

We can do something similar when we build releases at wagtail-website.

rjsparks avatar Apr 21 '22 17:04 rjsparks