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

Show the release string somewhere on the website #113

Open
rjsparks opened this issue Aug 3, 2021 · 3 comments
Open

Show the release string somewhere on the website #113

rjsparks opened this issue Aug 3, 2021 · 3 comments
Labels
enhancement New feature or request internal Fix internally

Comments

@rjsparks
Copy link
Member

rjsparks commented Aug 3, 2021

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 rjsparks added enhancement New feature or request internal Fix internally labels Aug 3, 2021
@holloway
Copy link

holloway commented Apr 21, 2022

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

@kesara
Copy link
Member

kesara commented Apr 21, 2022

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

@rjsparks
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request internal Fix internally
Projects
None yet
Development

No branches or pull requests

3 participants