Skip to content

Commit

Permalink
Update to newer release.mk
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Apr 22, 2021
1 parent 1e198dd commit 273ac4e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions release.mk
@@ -1,4 +1,4 @@
# release.mk version 2.0 (2020-10-11)
# release.mk version 2.1 (2021-04-19)
#
# Helpful Makefile rules for releasing Python packages.
# https://github.com/mgedmin/python-project-skel
Expand Down Expand Up @@ -142,18 +142,24 @@ release: releasechecklist do-release ##: prepare a new PyPI release
do-release:
$(release_recipe)

ifndef release_recipe
define release_recipe =
define default_release_recipe_publish_and_tag =
# I'm chicken so I won't actually do these things yet
@echo "Please run"
@echo
@echo " $(PYPI_PUBLISH)"
@echo " $(VCS_TAG)"
@echo
endef
define default_release_recipe_increment_and_push =
@echo "Please increment the version number in $(FILE_WITH_VERSION)"
@echo "and add a new empty entry at the top of the changelog in $(FILE_WITH_CHANGELOG), then"
@echo
@echo ' $(VCS_COMMIT_AND_PUSH)'
@echo
endef
ifndef release_recipe
define release_recipe =
$(default_release_recipe_publish_and_tag)
$(default_release_recipe_increment_and_push)
endef
endif

0 comments on commit 273ac4e

Please sign in to comment.