6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-04 19:03:39 +00:00

Add make version command

This makes tagging simpler.
This commit is contained in:
Régis Behmo 2019-02-24 20:14:25 +01:00
parent 1e2166dacf
commit ee9f2788e4
2 changed files with 7 additions and 2 deletions

View File

@ -7,9 +7,14 @@ compile-requirements: ## Compile requirements files
bundle: ## Bundle the tutor package in a single "dist/tutor" executable
pyinstaller --onefile --name=tutor --add-data=./tutor/templates:./tutor/templates ./bin/main
dist/tutor:
$(MAKE) bundle
version: ## Print the current tutor version
@python -c 'import io, os; about = {}; exec(io.open(os.path.join("tutor", "__about__.py"), "rt", encoding="utf-8").read(), about); print(about["__version__"])'
tag: ## Create a release, update the "latest" tag and push them to origin
$(MAKE) retag TAG=$(TAG)
$(MAKE) retag TAG=$(shell make version)
$(MAKE) retag TAG=latest
retag:

View File

@ -42,4 +42,4 @@ Releasing a new version
- Replace "Latest" by the version name in CHANGELOG.md.
- Create a commit with the version changelog.
- ``git push``
- ``make tag TAG=vxxx``
- ``make tag``