Skip to content
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.

Commit

Permalink
Setup and use 'bumpversion' to manage release numbering + tagging
Browse files Browse the repository at this point in the history
There is no need for anyone to do this manually!
  • Loading branch information
marvinpinto committed Sep 24, 2015
1 parent ca8bf36 commit 683b1d0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Makefile
Expand Up @@ -12,6 +12,13 @@ help:
@echo 'checkstyle: Run flake8'
@echo 'run: Run CharlesBOT locally'

# Utility target for checking required parameters
guard-%:
@if [ "$($*)" = '' ]; then \
echo "Missing required $* variable."; \
exit 1; \
fi;

clean:
py3clean .
rm -f .coverage
Expand Down Expand Up @@ -41,3 +48,6 @@ test: install

run:
PYTHONWARNINGS=default PYTHONASYNCIODEBUG=1 $(ENV)/bin/charlesbot

release: guard-PART
$(ENV)/bin/bumpversion $(PART)
1 change: 1 addition & 0 deletions requirements-dev.txt
@@ -1,6 +1,7 @@
-r requirements.txt

asynctest==0.4.0
bumpversion==0.5.3
coverage==3.7.1
flake8==2.4.1
mccabe==0.3.1
Expand Down
6 changes: 6 additions & 0 deletions setup.cfg
@@ -0,0 +1,6 @@
[bumpversion]
current_version = 0.4.0
commit = True
tag = True

[bumpversion:file:setup.py]
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -6,7 +6,7 @@

setup(
name='charlesbot',
version='0.4',
version='0.4.0',
description='Slack Real Time Messaging robot written in Python 3!',
long_description=long_description,
author='Marvin Pinto',
Expand Down

0 comments on commit 683b1d0

Please sign in to comment.