aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-03-02 17:10:59 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-03-02 17:10:59 +0100
commit7452a351308ea5b8ea319f87f111dcc6bca9de92 (patch)
tree2b991fbd3f381a813892e101db795e704dfacb21
parentget rid of extra files in the wheel (diff)
downloadcgitize-7452a351308ea5b8ea319f87f111dcc6bca9de92.tar.gz
cgitize-7452a351308ea5b8ea319f87f111dcc6bca9de92.zip
Makefile: add a recipe to create git tags
Diffstat (limited to '')
-rw-r--r--Makefile7
-rw-r--r--README.md8
2 files changed, 15 insertions, 0 deletions
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"
diff --git a/README.md b/README.md
index 6a64b7f..43d541d 100644
--- a/README.md
+++ b/README.md
@@ -65,6 +65,14 @@ Upgrade virtual environment packages (this will also update requirements.txt):
make venv/upgrade
+### Releases
+
+Make a git tag with (requires a virtual environment):
+
+ make tag
+
+You can now review that it's OK and push w/ `git push --tags`.
+
### Linting
Requires [Pylint].