From 2860ee81c92fa4a15f3b1076e362aaf9dc793347 Mon Sep 17 00:00:00 2001 From: Thierry Carrez Date: Thu, 19 Dec 2019 11:28:45 +0100 Subject: [PATCH] Display abandoned deliverables in separate section This updates our sphinx extension to show abandoned deliverables as EOL, in a separate section at the bottom of the independent deliverables page. It adds an 'EOL' mention to such deliverables on team pages. Change-Id: I56b9fbad9314c523e2f18765371746d21a71ed88 --- doc/source/_exts/deliverables.py | 6 ++++++ openstack_releases/deliverable.py | 2 ++ 2 files changed, 8 insertions(+) diff --git a/doc/source/_exts/deliverables.py b/doc/source/_exts/deliverables.py index d821b7e375..e1ec1ed413 100644 --- a/doc/source/_exts/deliverables.py +++ b/doc/source/_exts/deliverables.py @@ -70,6 +70,8 @@ def _get_category(deliv): model = deliv.model if model == 'cycle-trailing': return 'cycle-trailing' + if model == 'abandoned': + return 'abandoned' return deliv.type @@ -103,6 +105,7 @@ class DeliverableDirectiveBase(rst.Directive): 'other', 'cycle-trailing', 'tempest-plugin', + 'abandoned', ] def run(self): @@ -195,6 +198,7 @@ class DeliverableDirectiveBase(rst.Directive): 'other': 'Other Projects', 'cycle-trailing': 'Deployment and Packaging Tools', 'tempest-plugin': 'Tempest Plugins', + 'abandoned': 'End-of-life deliverables', } def _add_deliverables(self, type_tag, deliverables, series, result): @@ -289,6 +293,8 @@ class DeliverableDirectiveBase(rst.Directive): text = str(text) # version numbers might be seen as floats if self.team_name: _add('.. _team-%s-%s:' % (series, text)) + if deliv.model == 'abandoned': + text = '%s (EOL)' % text else: _add('.. _%s-%s:' % (series, text)) _add('') diff --git a/openstack_releases/deliverable.py b/openstack_releases/deliverable.py index 4e97a11a09..2ada026511 100644 --- a/openstack_releases/deliverable.py +++ b/openstack_releases/deliverable.py @@ -602,6 +602,8 @@ class Deliverable(object): status = 'development' else: status = self.series_info.status + if self.model == 'abandoned': + status = 'end of life' return status @property