towncrier integration (#647)

* Added towncrier and clone changelog from GitHub Releases page

* Added record to changelog

* Extended makefile

* Fix typo

* Changed ref in changelog

* Auto-confirm towncrier question on build

Co-authored-by: evgfilim1 <evgfilim1@yandex.ru>
This commit is contained in:
Alex Root Junior 2021-08-01 19:08:03 +03:00 committed by GitHub
parent 16cf6419d3
commit 9114abe919
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 644 additions and 1 deletions

View file

@ -123,3 +123,23 @@ build: clean flake8-report mypy-report test-coverage
bump:
poetry version $(args)
$(python) scripts/bump_versions.py
.PHONY: towncrier-build
towncrier-build:
towncrier build --yes
.PHONY: towncrier-draft
towncrier-draft:
towncrier build --draft
.PHONY: towncrier-draft-github
towncrier-draft-github:
mkdir -p dist
towncrier build --draft | pandoc - -o dist/release.md
.PHONY: prepare-release
prepare-release: bump towncrier-draft-github towncrier-build
.PHONY: tag-release
tag-release:
git tag v$(poetry version -s)