diff --git a/Makefile b/Makefile index 7a8fed6..039afe4 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ .PHONY: clean clean-test clean-pyc clean-build -VERSION = $(shell grep VERSION setup.py|cut -d\" -f2) +VERSION = 1.1.1 clean: clean-build clean-pyc clean-test ## remove all build, test, coverage and Python artifacts @@ -23,7 +23,7 @@ clean-test: ## remove test and coverage artifacts rm -f .coverage rm -fr htmlcov/ -release: clean build +release: clean build docker-release sdist: python setup.py sdist @@ -57,3 +57,7 @@ sdist/bot_z-$(VERSION)-py3-none-macosx.whl: build-macos install: clean ## install the package to the active Python's site-packages python setup.py install + +docker-release: + docker build -t botz:latest . + docker tag botz:latest botz:$(VERSION) diff --git a/setup.cfg b/setup.cfg index ce9bbd0..68a4610 100644 --- a/setup.cfg +++ b/setup.cfg @@ -16,6 +16,10 @@ replace = __version__ = "{new_version}" search = LABEL io.troubles.botz.version="{current_version}" replace = LABEL io.troubles.botz.version="{new_version}" +[bumpversion:file:Makefile] +search = VERSION = {current_version} +replace = VERSION = {new_version} + [bdist_wheel] universal = 0