Skip to content

Configure and add Towncrier files #273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

tomschr
Copy link
Member

@tomschr tomschr commented Jun 16, 2020

This PR fixes #270 and contains the following changes:

  • Add changelog.d/.gitignore to keep this directory
  • Create changelog.d/README.rst with some descriptions
  • Add changelog.d/_template.rst as Towncrier template
  • Add [tool.towncrier] section in pyproject.toml
  • Add "changelog" target into tox.ini. Use it like tox -e changelog -- CMD whereas CMD is a towncrier command. The default tox -e changelog calls towncrier to create a draft of the changelog file and output it to stdout.
  • Update documentation and add include a new section "Changelog" included from changelog.d/README.rst

@python-semver/reviewers @tlaferriere this PR is an attempt to show how this could work.

The changelog.d directory contains some example files whereas only file 270.feature.rst is "real", the other newsfragments will be removed before merging to master.

I've documented the procedure, see changelog.d/README.rst. If you prefer to read it as HTML, build the documentation with tox -e docs and look into "Contributing to semver" / "Changelog".

Would like to hear your ideas, feedback, or comments. Thank you!

@tomschr tomschr added the Infra All about infrastructure (GitHub Action, project build etc.) label Jun 16, 2020
@tomschr tomschr self-assigned this Jun 16, 2020
@tomschr tomschr force-pushed the feature/270-towncrier branch from ef30f81 to 60e1244 Compare June 16, 2020 20:25
@tomschr tomschr requested a review from a team June 16, 2020 20:26
* Add `changelog.d/.gitignore` to keep this directory
* Create `changelog.d/README.rst` with some descriptions
* Add `changelog.d/_template.rst` as Towncrier template
* Add `[tool.towncrier]` section in pyproject.toml
* Add "changelog" target into `tox.ini`. Use it like "tox -e changes -- CMD"
  whereas CMD is a towncrier command. The default "tox -e changes"
  calls towncrier to create a draft of the changelog file and
  output it to stdout.
* Update documentation and add include a new section "Changelog"
  included from `changelog.d/README.rst`
@tomschr tomschr force-pushed the feature/270-towncrier branch from 60e1244 to da6179e Compare June 17, 2020 06:09
@tomschr
Copy link
Member Author

tomschr commented Oct 19, 2020

This will be integrated into PR #290 so closing this.

@tomschr tomschr closed this Oct 19, 2020
@tomschr tomschr deleted the feature/270-towncrier branch October 25, 2020 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infra All about infrastructure (GitHub Action, project build etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Towncrier for Changelog?
1 participant