peritus / bumpversion

Version-bump your software with a single command

Home Page:https://pypi.python.org/pypi/bumpversion

Repository from Github https://github.comperitus/bumpversionRepository from Github https://github.comperitus/bumpversion

--dry-run should give information about what it would do

machinist opened this issue · comments

There is now output about what would happen without --dry-run

Valid. This probably goes along with #21.

You're trying to get me to work during the holidays, right ?

Ok, v0.4.0 (now on PyPI) includes a --verbose option.

Here's me pretending to create version v29.0.0 of bumpversion:

~/workspace/bumpversion git:(master) ○ bumpversion --verbose --dry-run --new-version 29.0.0 major
Reading config file .bumpversion.cfg:
[bumpversion]
files = setup.py bumpversion/__init__.py
commit = True
tag = True
current_version = 0.4.0


Parsing current version '0.4.0' with '(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)'
Parsed the following values: major=0, minor=4, patch=0
Attempting to increment part 'major'
Values are now: major=1, minor=0, patch=0
Available serialization formats: '{major}.{minor}.{patch}'
Found '{major}.{minor}.{patch}' to be a usable serialization format
Selected serialization format '{major}.{minor}.{patch}'
Serialized to '1.0.0'
Dry run active, won't touch any files.
New version will be '29.0.0'
Asserting files setup.py, bumpversion/__init__.py contain string '0.4.0':
Found '0.4.0' in setup.py at line 4:     version='0.4.0',
Found '0.4.0' in bumpversion/__init__.py at line 29: __VERSION__ = '0.4.0'
Would change file setup.py:
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@

 setup(
     name='bumpversion',
-    version='0.4.0',
+    version='29.0.0',
     url='https://github.com/peritus/bumpversion',
     author='Filip Noetzel',
     author_email='filip+bumpversion@j03.de',
Would change file bumpversion/__init__.py:
--- a/bumpversion/__init__.py
+++ b/bumpversion/__init__.py
@@ -27,7 +27,7 @@
 import codecs
 sys.stdout = codecs.getwriter('utf8')(sys.stdout)

-__VERSION__ = '0.4.0'
+__VERSION__ = '29.0.0'

 DESCRIPTION = 'bumpversion: v{} (using Python v{})'.format(
     __VERSION__,
Would write to config file .bumpversion.cfg:
[bumpversion]
files = setup.py bumpversion/__init__.py
commit = True
tag = True
current_version = 0.4.0


Preparing Git commit
Would add changes in file 'setup.py' to Git
Would add changes in file 'bumpversion/__init__.py' to Git
Would add changes in file '.bumpversion.cfg' to Git
Would commit to Git with message 'Bump version: 0.4.0 → 29.0.0'
Would tag 'v29.0.0' in Git