From: Thierry Parmentelat Date: Tue, 2 Feb 2016 10:28:49 +0000 (+0100) Subject: make pypi : X-Git-Tag: nepi-6.0.6-pypi~2 X-Git-Url: http://git.onelab.eu/?p=nepi.git;a=commitdiff_plain;h=49bd882678d4c6ac2cb4bb7968e97be8d6ad546e make pypi : check that CHANGELOG.md has a mention of the version being published --- diff --git a/Makefile b/Makefile index c50b971c..db13b68a 100644 --- a/Makefile +++ b/Makefile @@ -110,6 +110,7 @@ endef pypi: version @if [ $(GIT-CHANGES) != 0 ]; then echo "You have uncommitted changes - cannot publish"; false; fi @if [ -n "$(GIT-TAG-ALREADY-SET)" ] ; then echo "tag $(VERSIONTAG) already set"; false; fi + @if ! grep -q ' $(VERSION)' CHANGELOG.md ; then echo no mention of $(VERSION) in CHANGELOG.md; false; fi @echo "You are about to release $(VERSION) - OK (Ctrl-c if not) ? " ; read _ git tag $(VERSIONTAG) $(call upload_pypi,pypi)