From 1ccef21d56c4f2cd8184b540c7f7cdef669e78aa Mon Sep 17 00:00:00 2001 From: Michael F Date: Tue, 31 Jan 2023 18:34:11 +0100 Subject: [PATCH] add tag-version to Makefile --- CHANGELOG.md | 2 +- Makefile | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 191b5fb..012cc3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - add --by-currency option for tagstore composition query - add --csv option for selected commands - First draft for supporting ActorPacks - +- add tag-version pseudo target to Makefile ## [22.11] 2022-11-24 ### Changed diff --git a/Makefile b/Makefile index edaa45c..5c47c55 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,14 @@ SHELL := /bin/bash PROJECT := tagpack-tool VENV := .venv -RELEASE := 'v22.11' -RELEASESEM := 'v1.2.0' +RELEASE := 'v23.01' +RELEASESEM := 'v1.3.0' all: format lint test build +tag-version: + git diff --exit-code && git diff --staged --exit-code && git tag -a $(RELEASE) -m 'Release $(RELEASE)' && git tag -a $(RELEASESEM) -m 'Release $(RELEASE)' || (echo "Repo is dirty please commit first" && exit 1) + test: pytest -v -m "not slow" --cov=src