diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-03-02 17:10:59 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-03-02 17:10:59 +0100 |
commit | 7452a351308ea5b8ea319f87f111dcc6bca9de92 (patch) | |
tree | 2b991fbd3f381a813892e101db795e704dfacb21 /Makefile | |
parent | get rid of extra files in the wheel (diff) | |
download | cgitize-7452a351308ea5b8ea319f87f111dcc6bca9de92.tar.gz cgitize-7452a351308ea5b8ea319f87f111dcc6bca9de92.zip |
Makefile: add a recipe to create git tags
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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" |