forked from pytest-dev/pytest-xdist
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add towncrier for CHANGELOG management
Fix pytest-dev#154
- Loading branch information
1 parent
e59c609
commit 47875cb
Showing
6 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Thanks for submitting a PR, your contribution is really appreciated! | ||
|
||
Here's a quick checklist that should be present in PRs: | ||
|
||
- [ ] Make sure to include reasonable tests for your change if necessary | ||
|
||
- [ ] Add a new news fragment into the changelog folder, following these guidelines: | ||
* Name it `$issue_id.$type` for example `588.bug` | ||
* If you don't have an issue_id change it to the PR id after creating it | ||
* Ensure type is one of `removal`, `feature`, `bugfix`, `vendor`, `doc` or `trivial` | ||
* Make sure to use full sentences with correct case and punctuation, for example: | ||
|
||
``` | ||
Fix issue with non-ascii contents in doctest text files. | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Introduced ``towncrier`` for ``CHANGELOG`` management. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{% for section in sections %} | ||
{% set underline = "-" %} | ||
{% if section %} | ||
{{section}} | ||
{{ underline * section|length }}{% set underline = "~" %} | ||
|
||
{% endif %} | ||
{% if sections[section] %} | ||
{% for category, val in definitions.items() if category in sections[section] and category != 'trivial' %} | ||
|
||
{{ definitions[category]['name'] }} | ||
{{ underline * definitions[category]['name']|length }} | ||
|
||
{% if definitions[category]['showcontent'] %} | ||
{% for text, values in sections[section][category]|dictsort(by='value') %} | ||
- {{ text }}{% if category != 'vendor' %} ({{ values|sort|join(', ') }}){% endif %} | ||
|
||
|
||
{% endfor %} | ||
{% else %} | ||
- {{ sections[section][category]['']|sort|join(', ') }} | ||
|
||
|
||
{% endif %} | ||
{% if sections[section][category]|length == 0 %} | ||
|
||
No significant changes. | ||
|
||
|
||
{% else %} | ||
{% endif %} | ||
{% endfor %} | ||
{% else %} | ||
|
||
No significant changes. | ||
|
||
|
||
{% endif %} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
towncrier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[tool.towncrier] | ||
package = "xdist" | ||
filename = "CHANGELOG.rst" | ||
directory = "changelog/" | ||
title_format = "pytest-xdist {version} ({project_date})" | ||
template = "changelog/_template.rst" | ||
|
||
[[tool.towncrier.type]] | ||
directory = "removal" | ||
name = "Deprecations and Removals" | ||
showcontent = true | ||
|
||
[[tool.towncrier.type]] | ||
directory = "feature" | ||
name = "Features" | ||
showcontent = true | ||
|
||
[[tool.towncrier.type]] | ||
directory = "bugfix" | ||
name = "Bug Fixes" | ||
showcontent = true | ||
|
||
[[tool.towncrier.type]] | ||
directory = "vendor" | ||
name = "Vendored Libraries" | ||
showcontent = true | ||
|
||
[[tool.towncrier.type]] | ||
directory = "doc" | ||
name = "Improved Documentation" | ||
showcontent = true | ||
|
||
[[tool.towncrier.type]] | ||
directory = "trivial" | ||
name = "Trivial Changes" | ||
showcontent = false |