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:
parent
1e2166dacf
commit
ee9f2788e4
7
Makefile
7
Makefile
@ -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:
|
||||
|
@ -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``
|
||||
|
Loading…
Reference in New Issue
Block a user