From 26b17a4019e5d2265dae782288794d06033d7d8a Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Wed, 18 Apr 2018 17:36:39 -0700 Subject: [PATCH] Use SOMETAG rather than from git, if available --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ed2721a..3179068 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,8 @@ build: env # Verify that the python version matches the git tag so we don't push bad shas .PHONY: verify-tag-version verify-tag-version: - test "v$(shell python setup.py -V)" = "$(shell git describe --tags --exact-match)" + $(eval TAG_NAME = $(shell [ -n "$(DRONE_TAG)" ] && echo $(DRONE_TAG) || git describe --tags --exact-match)) + test "v$(shell python setup.py -V)" = "$(TAG_NAME)" # Uses twine to upload to pypi .PHONY: upload