setup.cfg: use bumpversion to update versions in setup.py and fontTools/__init__.py
make bumpversion configuration aware of pre-release .devN suffix
This commit is contained in:
parent
685c5a1140
commit
f73ce62c12
24
setup.cfg
24
setup.cfg
@ -1,9 +1,28 @@
|
|||||||
[bumpversion]
|
[bumpversion]
|
||||||
current_version = 3.3.1.dev0
|
current_version = 3.3.1.dev0
|
||||||
commit = True
|
commit = True
|
||||||
tag = True
|
tag = False
|
||||||
tag_name = {new_version}
|
tag_name = {new_version}
|
||||||
files = Lib/fontTools/__init__.py
|
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}
|
||||||
|
|
||||||
|
[bumpversion:part:release]
|
||||||
|
optional_value = final
|
||||||
|
values =
|
||||||
|
dev
|
||||||
|
final
|
||||||
|
|
||||||
|
[bumpversion:part:dev]
|
||||||
|
|
||||||
|
[bumpversion:file:Lib/fontTools/__init__.py]
|
||||||
|
search = __version__ = "{current_version}"
|
||||||
|
replace = __version__ = "{new_version}"
|
||||||
|
|
||||||
|
[bumpversion:file:setup.py]
|
||||||
|
search = version="{current_version}"
|
||||||
|
replace = version="{new_version}"
|
||||||
|
|
||||||
[wheel]
|
[wheel]
|
||||||
universal = 1
|
universal = 1
|
||||||
@ -30,3 +49,4 @@ addopts =
|
|||||||
-r a
|
-r a
|
||||||
--doctest-modules
|
--doctest-modules
|
||||||
--doctest-ignore-import-errors
|
--doctest-ignore-import-errors
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user