diff --git a/doc/source/_exts/candidates.py b/doc/source/_exts/candidates.py index e27b1847..9983bb40 100644 --- a/doc/source/_exts/candidates.py +++ b/doc/source/_exts/candidates.py @@ -50,6 +50,7 @@ def build_archive(serie, list_type): return db = yaml.safe_load(open(db_file)) # Check for appointed or incumbent footnote + db['tc_seats'] = utils.conf['tc_seats'] db['tags'] = {} for project in db['projects']: for candidate in db['candidates'][project]: @@ -61,6 +62,17 @@ def build_archive(serie, list_type): "results", serie, "%s.rst" % list_type) template_name = "%s_archive.jinja" % list_type template_dir = os.path.join(".", "doc", "source", "_exts") + with open(output, "wb") as out: + out.write( + render_template( + template_name, + db, + template_dir=template_dir + ).encode('utf-8') + ) + output = os.path.join(".", "doc", "source", + "results", serie, "announce_%s.rst" % list_type) + template_name = "%s_announce.jinja" % list_type with open(output, "wb") as out: out.write( render_template( diff --git a/doc/source/_exts/ptl_announce.jinja b/doc/source/_exts/ptl_announce.jinja new file mode 100644 index 00000000..22c3548e --- /dev/null +++ b/doc/source/_exts/ptl_announce.jinja @@ -0,0 +1,20 @@ +To: openstack-dev@lists.openstack.org, openstack-announce@lists.openstack.org +Subject: [all][elections] Project Team Lead Election Conclusion and Results + +Thank you to the electorate, to all those who voted and to all candidates who put their name forward for Project Team Lead (PTL) in this election. A healthy, open process breeds trust in our decision making capability thank you to all those who make this process possible. + +Now for the results of the PTL election process, please join me in extending congratulations to the following PTLs: + +{% for project in projects %} + * {{ project.replace('_', ' ').ljust(25) }} : {% for candidate in candidates[project] %}{% if candidate['elected'] %}{{ candidate['fullname'].ljust(44) }}{% endif %}{% endfor %} + +{% endfor %} + +Elections: +{% for project in projects %}{% if project in elections_results %} +* {{ project }}: {{ elections_results[project] }} +{% endif %}{% endfor %} + +Election process details and results are also available here: https://governance.openstack.org/election/ + +Thank you to all involved in the PTL election process, diff --git a/doc/source/_exts/tc_announce.jinja b/doc/source/_exts/tc_announce.jinja new file mode 100644 index 00000000..952a8490 --- /dev/null +++ b/doc/source/_exts/tc_announce.jinja @@ -0,0 +1,18 @@ +To: openstack-dev@lists.openstack.org, openstack-announce@lists.openstack.org +Subject: [all][elections] Technical Committee Election Results + +Please join me in congratulating the {{ tc_seats }} newly elected members of the Technical Committe (TC). + +{% for candidate in candidates['TC'] %}{% if candidate['elected'] %} +{{ candidate['fullname'] }} ({{ candidate['ircname'] }}) +{% endif %}{% endfor %} + +Full results: {{ elections_results['TC'] }} + +Election process details and results are also available here: https://governance.openstack.org/election/ + +Thank you to all candidates who stood for election, having a good group of candidates helps engage the community in our democratic process. + +Thank you to all who voted and who encouraged others to vote. We need to ensure your voice is heard. + +Thank you for another great round.