mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-05-28 20:00:49 +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
|
bundle: ## Bundle the tutor package in a single "dist/tutor" executable
|
||||||
pyinstaller --onefile --name=tutor --add-data=./tutor/templates:./tutor/templates ./bin/main
|
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
|
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
|
$(MAKE) retag TAG=latest
|
||||||
|
|
||||||
retag:
|
retag:
|
||||||
|
|
|
@ -42,4 +42,4 @@ Releasing a new version
|
||||||
- Replace "Latest" by the version name in CHANGELOG.md.
|
- Replace "Latest" by the version name in CHANGELOG.md.
|
||||||
- Create a commit with the version changelog.
|
- Create a commit with the version changelog.
|
||||||
- ``git push``
|
- ``git push``
|
||||||
- ``make tag TAG=vxxx``
|
- ``make tag``
|
||||||
|
|
Loading…
Reference in New Issue
Block a user