Add release makefile

This commit is contained in:
Andrew Godwin 2016-06-22 10:05:57 -07:00
parent a9daf0dfbb
commit ade39b218c

16
Makefile Normal file
View File

@ -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