Skip to content

Commit

Permalink
Merge pull request #440 from justanr/add-bumpversion
Browse files Browse the repository at this point in the history
Setup bumpversion
  • Loading branch information
sh4nks committed Apr 9, 2018
2 parents 551f734 + 17a65a9 commit 5620ece
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
7 changes: 7 additions & 0 deletions .bumpversion.cfg
@@ -0,0 +1,7 @@
[bumpversion]
current_version = 2.0.0.dev0
commit = True
tag = True

[bumpversion:file:setup.py]
[bumpversion:file:flaskbb/__init__.py]
1 change: 1 addition & 0 deletions requirements-dev.txt
Expand Up @@ -8,3 +8,4 @@ Sphinx
alabaster
flake8
tox==2.9.0
bumpversion==0.5.3
10 changes: 1 addition & 9 deletions setup.py
Expand Up @@ -64,14 +64,6 @@ def read(*parts):
return fp.read()


def find_version(*file_paths):
version_match = re.search(r'__version__\s+=\s+(.*)',
read(*file_paths)).group(1)
if version_match:
return str(ast.literal_eval(version_match))
raise RuntimeError("Unable to find version string.")


def get_requirements(e=None):
rf = "requirements.txt" if e is None else 'requirements-{}.txt'.format(e)
r = read(rf)
Expand All @@ -84,7 +76,7 @@ def get_requirements(e=None):

setup(
name='FlaskBB',
version=find_version("flaskbb", "__init__.py"),
version="2.0.0.dev0",
url='https://github.com/sh4nks/flaskbb/',
license='BSD',
author='Peter Justin',
Expand Down

0 comments on commit 5620ece

Please sign in to comment.