peritus / bumpversion

Version-bump your software with a single command
https://pypi.python.org/pypi/bumpversion
MIT License
1.5k stars 148 forks source link

Version is not replaced in setup.cfg if bumpversion config is there too #198

Open manycoding opened 5 years ago

manycoding commented 5 years ago
[bumpversion]
current_version = 2018.01.31
commit = False
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
serialize = 
    {major}.{minor}.{patch}

[bumpversion:file:setup.cfg]

[metadata]
name = perfect-jsonschema
version = 2018.01.31

If I run bumpversion --allow-dirty --new-version 2019.02.05 patch, the metadata:version won't change. The workaround is to move bumpversion setup to its .bumpversion.cfg

manycoding commented 5 years ago

@peritus Hi, any ideas?