peritus / bumpversion

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

0.3.6 doesn't seem to use .bumpversion config file. #27

Closed zirpu closed 10 years ago

zirpu commented 10 years ago
(WORK)13:27:53 allanb@ALLANB-MAC.local ~here master ?  % cat .bumpversion

[bumpversion]
files = setup.py
commit = True
tag = True
current_version = 0.7.1
part = patch

(WORK)13:28:00 allanb@ALLANB-MAC.local ~here master ?  % bumpversion
usage: bumpversion [-h] [--config-file FILE] [--parse REGEX]
                   [--serialize FORMAT] [--current-version VERSION]
                   [--dry-run] --new-version VERSION [--commit | --no-commit]
                   [--tag | --no-tag] [--tag-name TAG_NAME]
                   [--message COMMIT_MSG]
                   part file [file ...]
bumpversion: error: too few arguments
[2]    34778 exit 2     bumpversion
(WORK)13:28:02 allanb@ALLANB-MAC.local ~here master ?  % bumpversion patch setup.py                                           2 ↵
usage: bumpversion [-h] [--config-file FILE] [--parse REGEX]
                   [--serialize FORMAT] [--current-version VERSION]
                   [--dry-run] --new-version VERSION [--commit | --no-commit]
                   [--tag | --no-tag] [--tag-name TAG_NAME]
                   [--message COMMIT_MSG]
                   part file [file ...]
bumpversion: error: argument --new-version is required
[2]    34859 exit 2     bumpversion patch setup.py
(WORK)13:28:21 allanb@ALLANB-MAC.local ~here master ?  % bumpversion patch setup.py --new-version 0.7.2                       2 ↵
Traceback (most recent call last):
  File "/Users/allanb/.virtualenvs/WORK/bin/bumpversion", line 9, in <module>
    load_entry_point('bumpversion==0.3.6', 'console_scripts', 'bumpversion')()
  File "/Users/allanb/.virtualenvs/WORK/lib/python2.7/site-packages/bumpversion/__init__.py", line 376, in main
    assert args.current_version in before, 'Did not find string {} in file {}'.format(
TypeError: coercing to Unicode: need string or buffer, NoneType found
[2]    35386 exit 1     bumpversion patch setup.py --new-version 0.7.2
zirpu commented 10 years ago

BAH! right after I opened this I see that it should be .bumpversion.cfg .cfg is important.

peritus commented 10 years ago

Sorry about that :(