You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are considering using towncrier but need to be able to specify the subpackage in the news fragment name and have this end up in the rendered CHANGES.rst output.
I'd be happy to work on a towncrier enhancement to add support for subsections, but would like some feedback in advance about whether this would be acceptable. I spent a little time looking at the code and it seems feasible, but it would be great to get some steering advice on the best way to make this possible.
One idea is to allow fragment file names like <subsection>.<ticket>.<category>[.<counter>][.ext]. Here <subsection> is the new bit and would need to match an entry in a new configuration tool.towncrier.subtype analogous to the current tool.towncrier.type. If no match were found then it would just be ignored per current behavior.
Just a ping on this. I'll take silence as an indication that the towncrier project would not be interested in astropy devs contributing such a feature.
I found by reading the code that there is an undocumented "section" feature (#61) which is almost that. Instead of adding "subsection" fragments it works with sub-directories, but this achieves the same goal.
Activity
taldcroft commentedon May 21, 2020
Just a ping on this. I'll take silence as an indication that the towncrier project would not be interested in astropy devs contributing such a feature.
saimn commentedon Sep 10, 2020
I found by reading the code that there is an undocumented "section" feature (#61) which is almost that. Instead of adding "subsection" fragments it works with sub-directories, but this achieves the same goal.
SmileyChris commentedon May 14, 2024
Yeah, I think the section feature works fine to achieve this. It's documented in the configuration reference now.