Skip to content

Commit 0c83647

Browse files
committed
Add bumpversion configuration
Resolves: #46
1 parent c4eed48 commit 0c83647

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

.bumpversion.cfg

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[bumpversion]
2+
commit = True
3+
tag = True
4+
current_version = 2.1.0
5+
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?
6+
serialize =
7+
{major}.{minor}.{patch}-{release}
8+
{major}.{minor}.{patch}
9+
10+
[bumpversion:file:bugzilla/apiversion.py]
11+
12+
[bumpversion:file:sonar-project.properties]
13+
14+
[bumpversion:part:release]
15+
optional_value = gamma
16+
values =
17+
dev
18+
gamma
19+

CONTRIBUTING.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,19 @@ at python-bugzilla@lists.fedorahosted.org using 'git send-email'.
6565
# Bug reports
6666

6767
Bug reports should be submitted as github issues, or sent to the mailing list
68+
69+
# Release and tag management
70+
71+
This project uses [bumpversion](https://github.com/peritus/bumpversion) to manage releases.
72+
73+
## Example release steps
74+
```sh
75+
# release the current version, eg: 2.2.0-dev -> 2.2.0
76+
bumpversion release
77+
78+
# prepare the next patch (z-stream) version, eg: 2.2.0 -> 2.2.1-dev
79+
bumpversion --no-tag patch
80+
81+
# else, prepare the next minor (y-stream) version, eg: 2.2.0 -> 2.3.0-dev
82+
bumpversion --no-tag minor
83+
```

0 commit comments

Comments
 (0)