From 2422c6382b5dcb6463fbc70b7646c267dafb8980 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Tue, 28 Jun 2016 15:27:04 -0700 Subject: [PATCH] Add release makefile --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1a1f55e --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +.PHONY: release + +all: + +release: +ifndef version + $(error Please supply a version) +endif + @echo Releasing version $(version) +ifeq (,$(findstring $(version),$(shell git log --oneline -1))) + $(error Last commit does not match version) +endif + git tag $(version) + git push + git push --tags + python setup.py sdist bdist_wheel upload