Use SOMETAG rather than from git, if available

This commit is contained in:
IamTheFij 2018-04-18 17:36:39 -07:00
parent b8d86917e1
commit 26b17a4019

View File

@ -40,7 +40,8 @@ build: env
# Verify that the python version matches the git tag so we don't push bad shas # Verify that the python version matches the git tag so we don't push bad shas
.PHONY: verify-tag-version .PHONY: verify-tag-version
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 # Uses twine to upload to pypi
.PHONY: upload .PHONY: upload