Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Introduced towncrier changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
fao89 committed May 5, 2020
1 parent 81c7c9e commit 08d82fc
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
@@ -0,0 +1,4 @@
=========
Changelog
=========

37 changes: 37 additions & 0 deletions CHANGES/.TEMPLATE.rst
@@ -0,0 +1,37 @@

{# TOWNCRIER TEMPLATE #}
{% for section, _ in sections.items() %}
{% set underline = underlines[0] %}{% if section %}{{section}}
{{ underline * section|length }}{% set underline = underlines[1] %}

{% endif %}

{% if sections[section] %}
{% for category, val in definitions.items() if category in sections[section]%}
{{ definitions[category]['name'] }}
{{ underline * definitions[category]['name']|length }}

{% if definitions[category]['showcontent'] %}
{% for text, values in sections[section][category].items() %}
- {{ text }}
{{ values|join(',\n ') }}
{% endfor %}

{% else %}
- {{ sections[section][category]['']|join(', ') }}

{% endif %}
{% if sections[section][category]|length == 0 %}
No significant changes.

{% else %}
{% endif %}

{% endfor %}
{% else %}
No significant changes.


{% endif %}
{% endfor %}
----
1 change: 1 addition & 0 deletions CHANGES/6602.misc
@@ -0,0 +1 @@
Introduced towncrier changelog
Empty file added pulp_installer/__init__.py
Empty file.
7 changes: 7 additions & 0 deletions pyproject.toml
@@ -0,0 +1,7 @@
[tool.towncrier]
package = "pulp_installer"
filename = "CHANGES.rst"
directory = "CHANGES/"
title_format = "{version} ({project_date})"
template = "CHANGES/.TEMPLATE.rst"
issue_format = "`#{issue} <https://pulp.plan.io/issues/{issue}>`_"

0 comments on commit 08d82fc

Please sign in to comment.