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
This commit is contained in:
Thierry Carrez 2019-12-19 11:28:45 +01:00
parent 0b995f56d4
commit 2860ee81c9
2 changed files with 8 additions and 0 deletions

View File

@ -70,6 +70,8 @@ def _get_category(deliv):
model = deliv.model model = deliv.model
if model == 'cycle-trailing': if model == 'cycle-trailing':
return 'cycle-trailing' return 'cycle-trailing'
if model == 'abandoned':
return 'abandoned'
return deliv.type return deliv.type
@ -103,6 +105,7 @@ class DeliverableDirectiveBase(rst.Directive):
'other', 'other',
'cycle-trailing', 'cycle-trailing',
'tempest-plugin', 'tempest-plugin',
'abandoned',
] ]
def run(self): def run(self):
@ -195,6 +198,7 @@ class DeliverableDirectiveBase(rst.Directive):
'other': 'Other Projects', 'other': 'Other Projects',
'cycle-trailing': 'Deployment and Packaging Tools', 'cycle-trailing': 'Deployment and Packaging Tools',
'tempest-plugin': 'Tempest Plugins', 'tempest-plugin': 'Tempest Plugins',
'abandoned': 'End-of-life deliverables',
} }
def _add_deliverables(self, type_tag, deliverables, series, result): 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 text = str(text) # version numbers might be seen as floats
if self.team_name: if self.team_name:
_add('.. _team-%s-%s:' % (series, text)) _add('.. _team-%s-%s:' % (series, text))
if deliv.model == 'abandoned':
text = '%s (EOL)' % text
else: else:
_add('.. _%s-%s:' % (series, text)) _add('.. _%s-%s:' % (series, text))
_add('') _add('')

View File

@ -602,6 +602,8 @@ class Deliverable(object):
status = 'development' status = 'development'
else: else:
status = self.series_info.status status = self.series_info.status
if self.model == 'abandoned':
status = 'end of life'
return status return status
@property @property