From 62abf76540c2be0c581dd7e385dd4671cf7d2120 Mon Sep 17 00:00:00 2001 From: Thierry de Pauw Date: Sat, 2 Dec 2023 16:42:05 +0100 Subject: [PATCH] Read the git tag from the DMARCReporting module version (closes #14) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7c96988..6766b80 100644 --- a/Makefile +++ b/Makefile @@ -38,6 +38,6 @@ dist: clean ## Creates a source distribution and wheel distribution pipenv run check-wheel-contents dist/*.whl tag: ## Tag version - if [[ -z "${version}" ]]; then echo "version must be set";false; fi + $(eval version := $(shell head -n 1 DMARCReporting/__init__.py | sed -e "s/__version__ = //" | sed -e "s/\"//g")) git tag -a $(version) -m "Bump version $(version)" git push origin master --follow-tags