diff options
author | Ashley Camba <ashwoods@gmail.com> | 2017-10-26 11:18:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-26 11:18:18 +0200 |
commit | 908148c1e159406c2c2cede9404887b042f19ec1 (patch) | |
tree | d7c0695a8c0bb5564cecf2ce9e7e91545c04134d | |
parent | 17a274e5d982f7bbf1592b854650274c55964fe0 (diff) | |
download | raven-908148c1e159406c2c2cede9404887b042f19ec1.tar.gz |
Add bumpversion config (#1115)
* Add bumpversion config
-rw-r--r-- | .bumpversion.cfg | 18 | ||||
-rwxr-xr-x | setup.py | 4 | ||||
-rw-r--r-- | tox.ini | 20 |
3 files changed, 36 insertions, 6 deletions
diff --git a/.bumpversion.cfg b/.bumpversion.cfg new file mode 100644 index 0000000..58747dc --- /dev/null +++ b/.bumpversion.cfg @@ -0,0 +1,18 @@ +[bumpversion] +commit = False +tag = False +tag_name = {new_version} +current_version = 6.3.0 +parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<dev>\d+))? +serialize = + {major}.{minor}.{patch}.{release}{dev} + {major}.{minor}.{patch} +message = Release: {current_version} → {new_version} + +[bumpversion:file:raven/__init__.py] + +[bumpversion:part:release] +optional_value = production +values = + dev + production @@ -60,7 +60,7 @@ tests_require = [ 'bottle', 'celery>=2.5', 'exam>=0.5.2', - 'flake8==3.4.1', + 'flake8==3.5.0', 'logbook', 'mock', 'nose', @@ -73,7 +73,7 @@ tests_require = [ 'pytest-sugar==0.8', 'pytest-assume', 'pytest-cov', - 'pytest-flake8', + 'pytest-flake8==0.9', 'requests', 'tornado>=4.1', 'webob', @@ -141,10 +141,22 @@ commands = basepython = python3.5 skip_install = true deps = - {[testenv:build]deps} - twine >= 1.9.1 + bumpversion commands = - {[testenv:build]commands} - twine upload --skip-existing dist/* + bumpversion --tag --commit {posargs} release +[testenv:minor] +basepython = python3.5 +skip_install = true +deps = + bumpversion +commands = + bumpversion --tag --commit {posargs} minor +[testenv:dev] +basepython = python3.5 +skip_install = true +deps = + bumpversion +commands = + bumpversion {posargs} --commit {posargs} patch |