From 7452a351308ea5b8ea319f87f111dcc6bca9de92 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 2 Mar 2023 17:10:59 +0100 Subject: Makefile: add a recipe to create git tags --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index becd0a2..2fd5e2a 100644 --- a/Makefile +++ b/Makefile @@ -142,3 +142,10 @@ python: .PHONY: test test: . '$(call escape,$(venv_dir))/bin/activate' && python -m unittest --verbose --buffer + +.PHONY: tag +tag: + . '$(call escape,$(venv_dir))/bin/activate' \ + && pip install -q --upgrade setuptools-scm \ + && version="$$( python -m setuptools_scm --strip-dev )" \ + && git tag "v$$version" -- cgit v1.2.3