Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit 908148c

Browse files
authored
Add bumpversion config (#1115)
* Add bumpversion config
1 parent 17a274e commit 908148c

File tree

3 files changed

+36
-6
lines changed

3 files changed

+36
-6
lines changed

.bumpversion.cfg

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[bumpversion]
2+
commit = False
3+
tag = False
4+
tag_name = {new_version}
5+
current_version = 6.3.0
6+
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<dev>\d+))?
7+
serialize =
8+
{major}.{minor}.{patch}.{release}{dev}
9+
{major}.{minor}.{patch}
10+
message = Release: {current_version} → {new_version}
11+
12+
[bumpversion:file:raven/__init__.py]
13+
14+
[bumpversion:part:release]
15+
optional_value = production
16+
values =
17+
dev
18+
production

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
'bottle',
6161
'celery>=2.5',
6262
'exam>=0.5.2',
63-
'flake8==3.4.1',
63+
'flake8==3.5.0',
6464
'logbook',
6565
'mock',
6666
'nose',
@@ -73,7 +73,7 @@
7373
'pytest-sugar==0.8',
7474
'pytest-assume',
7575
'pytest-cov',
76-
'pytest-flake8',
76+
'pytest-flake8==0.9',
7777
'requests',
7878
'tornado>=4.1',
7979
'webob',

tox.ini

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,22 @@ commands =
141141
basepython = python3.5
142142
skip_install = true
143143
deps =
144-
{[testenv:build]deps}
145-
twine >= 1.9.1
144+
bumpversion
146145
commands =
147-
{[testenv:build]commands}
148-
twine upload --skip-existing dist/*
146+
bumpversion --tag --commit {posargs} release
149147

148+
[testenv:minor]
149+
basepython = python3.5
150+
skip_install = true
151+
deps =
152+
bumpversion
153+
commands =
154+
bumpversion --tag --commit {posargs} minor
150155

156+
[testenv:dev]
157+
basepython = python3.5
158+
skip_install = true
159+
deps =
160+
bumpversion
161+
commands =
162+
bumpversion {posargs} --commit {posargs} patch

0 commit comments

Comments
 (0)