zarr-python icon indicating copy to clipboard operation
zarr-python copied to clipboard

Generate changelogs from fragements

Open joshmoore opened this issue 4 years ago • 8 comments
trafficstars

e.g. https://github.com/ansible-community/antsibull-changelog/blob/main/docs/other-projects.rst

At the moment, PRs regularly conflict due to conflicts to release.rst. By moving to a fragment based system, this should go away.

Any other recommendations for frameworks?

joshmoore avatar Sep 09 '21 15:09 joshmoore

Towncrier is used by NumPy and we are considering it for scikit-image

grlee77 avatar Sep 10 '21 11:09 grlee77

Had looked at that one previously as well. :+1: All the better if your experiences have been good.

joshmoore avatar Sep 10 '21 16:09 joshmoore

We have a draft PR and were planning to start using it in the near future, so I don't have much experience with it yet. I was not aware of the ansible one you linked above, but it sounds like something similar.

Another approach that SciPy has used in the past is having contributors update a wiki page that the release manager can then pull from when making the release notes. I'm not sure how consistently it is applied, though.

Towncrier or antsibull will solve the conflicts problem, but there is still the separate problem of prompting contributors to create the fragments needed!

grlee77 avatar Sep 10 '21 16:09 grlee77

I'd hope it'd be easy enough to add an action that says, "must have fragment". Worst case: we can push it to the PRs manually. :wink:

joshmoore avatar Sep 12 '21 14:09 joshmoore

Another possible option: https://sphinx-github-changelog.readthedocs.io/en/latest/ (...as I struggle with the anchors for pre-releases ...)

cc: @MSanKeys963

joshmoore avatar May 25 '22 11:05 joshmoore

  • @jakirkham suggests https://github.com/regro/rever
  • @alimanfoo suggests looking at how dask does it.

But generally, :+1: for:

  • keeping it simple
  • having a check on all PRs
  • ability to break the current formatting & move to something new (e.g. with zarr-python 3.x)

joshmoore avatar May 26 '22 16:05 joshmoore

We've used rever in conda-smithy

jakirkham avatar May 26 '22 16:05 jakirkham

Josh mentioned this changelog proposal.

jakirkham avatar May 26 '22 17:05 jakirkham

Another option somewhat similar to towncrier is scriv

jakirkham avatar Oct 20 '22 06:10 jakirkham

@MSanKeys963: this is something to review before we (potentially) launch the outreachy project.

joshmoore avatar Oct 24 '22 10:10 joshmoore

Sure. Adding to the list. We can let the Outreachy intern experiment with multiple tools before we finalise a single one for Zarr.

sanketverma1704 avatar Oct 24 '22 11:10 sanketverma1704

+1 though it would be good to make sure that those experimenting get credit for that (even if it doesn't wind up merged). The experimenting is itself a useful step 🙂

jakirkham avatar Oct 24 '22 21:10 jakirkham