[meld/build-updates: 9/26] Remove markdown generation from maint script




commit f5d3ccbe55463c05584523ed9b2b28b0fac51936
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Sep 11 08:13:26 2022 +1000

    Remove markdown generation from maint script
    
    This used to be used for release notes, but we're now just using Gitlab
    releases for those.

 maint | 36 ------------------------------------
 1 file changed, 36 deletions(-)
---
diff --git a/maint b/maint
index f44161f3..07d7f558 100755
--- a/maint
+++ b/maint
@@ -77,34 +77,6 @@ APPDATA_TEMPLATE = """
     </release>
 """
 
-MARKDOWN_TEMPLATE = """
-<!--
-{{ [date, app, version]|join(' ') }}
-{{ '=' * [date, app, version]|join(' ')|length }}
--->
-{%- if features %}
-
-Features
---------
-{% for feature in features %}
-{{ feature }}
-{%- endfor %}
-{%- endif %}
-
-Fixes
------
-{% for fix in fixes %}
-{{ fix }}
-{%- endfor %}
-
-Translations
-------------
-{% for translator in translators %}
-{{ translator }}
-{%- endfor %}
-
-"""
-
 
 def get_last_release_tag():
     cmd = ['git', 'describe', '--abbrev=0', '--tags']
@@ -410,12 +382,6 @@ def write_somewhere(filename, output):
         click.echo(output)
 
 
-@cli.command()
-@click.argument('filename', type=click.Path(), default=None, required=False)
-def markdown(filename):
-    write_somewhere(filename, render_template(MARKDOWN_TEMPLATE))
-
-
 @cli.command()
 def dist():
     build_dir = '_build'
@@ -524,8 +490,6 @@ def make_release(ctx):
     archive_path = ctx.forward(dist)
     ctx.forward(tag)
     ctx.forward(gitlab_release)
-    file_prefix = '%s-%s' % (meld.conf.__package__, meld.conf.__version__)
-    ctx.forward(markdown, filename=file_prefix + '.md')
     ctx.forward(version_bump)
     commit(message='Post-release version bump')
     push()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]