www
www copied to clipboard
Show the release string somewhere on the website
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.
Would the version be autogenerated like a git hash / deploy date?
Version is git tag or the release version from https://github.com/ietf-tools/wagtail_website/releases
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.