Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
machinist opened this issue Dec 16, 2013 · 2 comments
Closed

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

machinist opened this issue Dec 16, 2013 · 2 comments
Assignees

Comments

@machinist
Copy link

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

@peritus
Copy link
Owner

peritus commented Dec 17, 2013

Valid. This probably goes along with #21.

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

@ghost ghost assigned peritus Dec 17, 2013
@peritus
Copy link
Owner

peritus commented Jan 29, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants