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
{{ message }}
Repository navigation
Assemble release notes at release time, not during development #13707
This has been brought up before (#8603), but I think it's time to create a tracking issue.
We have a number of problems with how we currently manage release notes:
They frequently create merge conflicts which are frustrating for everyone to rebase
If a PR does not make it into its intended release, the PR is unmergeable until someone gets around to moving the release notes
If a PR is scheduled for a future version that isn't the next release, there's no way to write the release notes at all until it becomes the "current" release
Backported PRs requires manual reassembly of release notes
All of these would be fixed by a "one file per section" approach to release notes, which matches what matplotlib and cpython do.
SciPy did what NumPy does, considered the same problem, and switched to just putting release notes in a wiki page at merge time. It solves the pain points, the tradeoffs are:
Con: it's still some manual work (not much, but probably more than blurb/towncrier)
Pro: there's no tool/syntax to learn, so you can just ask any contributor "can you please edit this wiki page" and they know what to do.
Just to note, we discussed it a bit today, and while nobody seemed to have a huge preference, I think the consensus was to try the wiki based approach while probably editing the initial PRs post/comment to include a draft of the release notes which can be copied over easily.
EDIT: The reason for the PR notes, is that you can only place it in the wiki once it is actually merged (and it is probably good to have it there as well in any case).
IIRC there was a lot of support for that as well on the mailing list. Lets bring it up tomorrow and unless Chuck feels differently, probably go for it for 1.18.
I noted that the dev meeting notes mention the fact that this will require using pyproject.toml. Note that this is not the case, and indeed, for matplotlib, we are putting the config in towncrier.toml (requires a flag when invoking towncrier; see discussion in matplotlib/matplotlib#14589).
@anntzer I would maybe prefer that solution, but I have not seen that towncrier actually added that functionality as of now (it does exist for python -m towncrier.check, but that seems not the correct incarnation?). Although... assuming we are right and towncrier does not support/check for towncrier.toml yet, we could fix that upstream I suppose.
Matplotlib moved from PRs editing one file to one file per change for exactly the reasons in the OP (mostly the merge conflicts). However, the manual re-combination is surprisingly time consuming (hence why we are looking at towncrier).
With the wiki approach do you copy the wiki page into the main docs at release time?
I will close this, there may still be some bumps about towncrier, but it should be working fine (although with the current development version). And this was about the general thing, not specifics.
Activity
eric-wieser commentedon Jun 4, 2019
@tacaswell: would be great to hear matplotlib's perspective on this
rgommers commentedon Jun 4, 2019
SciPy did what NumPy does, considered the same problem, and switched to just putting release notes in a wiki page at merge time. It solves the pain points, the tradeoffs are:
blurb/towncrier)seberg commentedon Jun 5, 2019
Just to note, we discussed it a bit today, and while nobody seemed to have a huge preference, I think the consensus was to try the wiki based approach while probably editing the initial PRs post/comment to include a draft of the release notes which can be copied over easily.
EDIT: The reason for the PR notes, is that you can only place it in the wiki once it is actually merged (and it is probably good to have it there as well in any case).
mattip commentedon Jun 27, 2019
Matplotlib has a PR to move to towncrier matplotlib/matplotlib#14589.
seberg commentedon Jun 27, 2019
IIRC there was a lot of support for that as well on the mailing list. Lets bring it up tomorrow and unless Chuck feels differently, probably go for it for 1.18.
anntzer commentedon Jul 16, 2019
I noted that the dev meeting notes mention the fact that this will require using pyproject.toml. Note that this is not the case, and indeed, for matplotlib, we are putting the config in towncrier.toml (requires a flag when invoking towncrier; see discussion in matplotlib/matplotlib#14589).
seberg commentedon Jul 16, 2019
@anntzer I would maybe prefer that solution, but I have not seen that towncrier actually added that functionality as of now (it does exist for
python -m towncrier.check, but that seems not the correct incarnation?). Although... assuming we are right and towncrier does not support/check fortowncrier.tomlyet, we could fix that upstream I suppose.anntzer commentedon Jul 16, 2019
I haven't checked in depth that the PR on matplotlib's side actually works :p just pointing out the discussion.
tacaswell commentedon Jul 21, 2019
Matplotlib moved from PRs editing one file to one file per change for exactly the reasons in the OP (mostly the merge conflicts). However, the manual re-combination is surprisingly time consuming (hence why we are looking at towncrier).
With the wiki approach do you copy the wiki page into the main docs at release time?
rgommers commentedon Jul 21, 2019
Yes indeed. The process is as simple as asking on any PR that needs release notes to add an entry to (e.g. for 1.3.) https://github.com/scipy/scipy/wiki/Release-note-entries-for-SciPy-1.3.0, and then after branching copy the whole thing into a single release notes file. No machinery, no conflicts. It's quite nice.
seberg commentedon Sep 22, 2019
I will close this, there may still be some bumps about towncrier, but it should be working fine (although with the current development version). And this was about the general thing, not specifics.