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

AssertionError: Did not find '0.0.0' or 'unreleased #48

Closed fizyk closed 10 years ago

fizyk commented 10 years ago

While trying to set version for new package, I've set up a bumpversion.cfg as I normally do.

However bumping version fails with quite strange error:

Traceback (most recent call last):
  File "/home/fizyk/.virtualenvs/mirakuru/bin/bumpversion", line 9, in <module>
    load_entry_point('bumpversion==0.5.0', 'console_scripts', 'bumpversion')()
  File "/home/fizyk/.virtualenvs/mirakuru/local/lib/python2.7/site-packages/bumpversion/__init__.py", line 885, in main
    f.should_contain_version(current_version, context)
  File "/home/fizyk/.virtualenvs/mirakuru/local/lib/python2.7/site-packages/bumpversion/__init__.py", line 211, in should_contain_version
    assert self.contains(version.original), msg
AssertionError: Did not find '0.0.0' or 'unreleased
-------' in file CHANGES.rst

However works perfectly, when I add a current_version into CHANGES.rst, otherwise it's the error above.

Link to commit introducing bumpversion.cfg: https://github.com/ClearcodeHQ/mirakuru/commit/3145bd587751992fca9a23214dcdbe7bc1862ba7

fizyk commented 10 years ago

okay, scratch that, it's fixed on dev