Update tag command
@@ -7,6 +7,7 @@ MANAGE_PY := $(PYTHON) manage.py
PYTHON_PIP := /usr/bin/env pip3
PIP_COMPILE := /usr/bin/env pip-compile
PART := patch
+PACKAGE_VERSION = $(shell $(PYTHON) setup.py --version)
# Put it first so that "make" without argument is like "make help".
help:
@@ -49,7 +50,7 @@ update-requirements: ## Updates the requirement.txt adding missing package depe
@$(PIP_COMPILE)
tag-build:
- @git tag $($PYTHON setup.py --version)
+ @git tag v$(PACKAGE_VERSION)
release-to-pypi: clean-build increase-version tag-build ## Release project to pypi
@$(PYTHON_PIP) install -U twine pypandoc
