Skip to content

Commit

Permalink
Update pyproject makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Dec 20, 2023
1 parent 39572a3 commit 21cd1a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile.pyproject
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 21cd1a1

Please sign in to comment.