From 21cd1a128a92d781389498e2a591555eb491bbbe Mon Sep 17 00:00:00 2001 From: Mark Nottingham Date: Wed, 20 Dec 2023 12:00:49 +1100 Subject: [PATCH] Update pyproject makefile --- Makefile.pyproject | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile.pyproject b/Makefile.pyproject index 638e490..c6b30a9 100644 --- a/Makefile.pyproject +++ b/Makefile.pyproject @@ -54,7 +54,7 @@ clean_py: clean-venv .PHONY: tidy_py tidy_py: venv - $(VENV)/black $(PROJECT) test + $(VENV)/black $(PROJECT) .PHONY: lint_py lint_py: venv @@ -117,10 +117,10 @@ version: typecheck lint test bump-$(VERSIONING) build: venv $(VENV)/python -m build -.PHONY: changelog.md changelog.md: - $(eval PREV_RELEASE=$(shell git tag -l v* | tail -1)) - $(shell git log --pretty="- %s (%h)" $(PREV_RELEASE)..HEAD --grep "^Changed:" --grep "^Fixed:" --grep "^Added:" --grep "^Changed:" --grep "^Removed:" --output=changelog.md) + $(eval PREV_RELEASE=$(shell git tag --sort=-taggerdate -l v* | head -1)) + git --no-pager log --pretty="- %s" $(PREV_RELEASE)..HEAD --grep "^Changed:" --grep "^Fixed:" --grep "^Added:" --grep "^Changed:" --grep "^Removed:" --output=$@ + sed -i "" -e "1s/^/\n\n/" $@ # Manual pypi publication; no GitHub release .PHONY: pypi-pub