Closed tedder closed 7 years ago
You should be able to accomplish this with the .bumpversion.cfg
file.
Create project/.bumpversion.cfg
[bumpversion]
commit = True
tag = True
current_version = 0.0.1
[bumpversion:file:setup.py]
e.g. project/setup.py
#!/usr/bin/env python
from distutils.core import setup
setup(name='Example',
version='0.0.1',
description='Bumpversion',
author='John Doe',
author_email='John.Doe@python.net',
packages=['distutils', 'distutils.command'],
)
Now issuing bumpversion patch
in your project root will detect and bump 0.0.1 --> 0.0.2
accordingly.
I guess that's the straight-up RTFM. I didn't try it with a .bumpversion.cfg
, so it's my fault. Thanks for replying.
I'd like to be able to arbitrarily increment the version. For instance, this works:
I'd like this to work:
Can you confirm that isn't possible now?