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