-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.versionner.rc
50 lines (43 loc) · 915 Bytes
/
.versionner.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[versionner]
file = ./VERSION
;up_part= patch
;default_init_version = 1.0.0
;default_increase_value = 1
[vcs]
engine = git
tag = yes
tag_params =
commit_message = '%(version)s'
[file:versionner/__init__.py]
enabled = true
match = line
search = ^\s*__version__\s*=.*$
replace = __version__ = '%(version)s'
[file:setup.py]
enabled = true
match = line
search = \bversion\s*=.*$
replace = version='%(version)s',
encoding = utf-8
[file:README.md]
enabled = true
match = file
search = \nCurrent stable version
----------------------
\s+[\w.-]+\n
replace = \nCurrent stable version
----------------------
%(version)s\n
encoding = utf-8
[file:2:README.md]
enabled = true
match = line
search = \b\d+\.\d+\.\d+\.zip\b
replace = %(version)s.zip
encoding = utf-8
[file:3:README.md]
enabled = true
match = line
search = \bcd versionner-\d+\.\d+\.\d+\b
replace = cd versionner-%(version)s
encoding = utf-8