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

AssertionError #52

Closed
nuin opened this issue Aug 14, 2014 · 5 comments
Closed

AssertionError #52

nuin opened this issue Aug 14, 2014 · 5 comments

Comments

@nuin
Copy link

nuin commented Aug 14, 2014

I tried the version installed by pip (0.5) and from src (0.5.1-dev, installing manually) and I am getting a similar error either running with arguments or using a configuration file.

With version 0.5 I get

Traceback (most recent call last):
  File "/usr/local/bin/bumpversion", line 9, in <module>
    load_entry_point('bumpversion==0.5.0', 'console_scripts', 'bumpversion')()
  File "/Library/Python/2.7/site-packages/bumpversion/__init__.py", line 647, in main
    vcs_info.update(vcs.latest_tag_info())
  File "/Library/Python/2.7/site-packages/bumpversion/__init__.py", line 143, in latest_tag_info
    assert 0 == len(describe_out)
AssertionError

and on version 0.5.1-dev

Traceback (most recent call last):
  File "/usr/local/bin/bumpversion", line 9, in <module>
    load_entry_point('bumpversion==0.5.1-dev', 'console_scripts', 'bumpversion')()
  File "build/bdist.macosx-10.9-intel/egg/bumpversion/__init__.py", line 657, in main

  File "build/bdist.macosx-10.9-intel/egg/bumpversion/__init__.py", line 143, in latest_tag_info

AssertionError
@peritus
Copy link
Owner

peritus commented Aug 15, 2014

Looks like a problem with parsing tags from git.

How are you invoking bumpversion, what is your config file and what is the latest tag in your repo?

Sent from my pocket calculator

On 14 Aug 2014, at 23:35, Paulo Nuin [email protected] wrote:

I tried the version installed by pip (0.5) and from src (0.5.1-dev, installing manually) and I am getting a similar error either running with arguments or using a configuration file.

With version 0.5 I get

Traceback (most recent call last):
File "/usr/local/bin/bumpversion", line 9, in
load_entry_point('bumpversion==0.5.0', 'console_scripts', 'bumpversion')()
File "/Library/Python/2.7/site-packages/bumpversion/init.py", line 647, in main
vcs_info.update(vcs.latest_tag_info())
File "/Library/Python/2.7/site-packages/bumpversion/init.py", line 143, in latest_tag_info
assert 0 == len(describe_out)
AssertionError
and on version 0.5.1-dev

Traceback (most recent call last):
File "/usr/local/bin/bumpversion", line 9, in
load_entry_point('bumpversion==0.5.1-dev', 'console_scripts', 'bumpversion')()
File "build/bdist.macosx-10.9-intel/egg/bumpversion/init.py", line 657, in main

File "build/bdist.macosx-10.9-intel/egg/bumpversion/init.py", line 143, in latest_tag_info

AssertionError

Reply to this email directly or view it on GitHub.

@nuin
Copy link
Author

nuin commented Aug 15, 2014

I tried invoking in the command line

$ bumpversion --current-version 0.1.0 patch Version

and this was the initial configuration file I tried

[bumpversion]
current_version = 0.1.0
commit = True
tag = True
tag_name = Version-{new_version}
file = Version

And this is a new repo that I am using to test bump version before adding to my production/development repos:

Version-0.1.0-0-g7d6faca

@jpleger
Copy link

jpleger commented Oct 11, 2014

I am also seeing this error as well.

$ cat .bumpversion.cfg 
[bumpversion]
commit = True
tag = True
current_version = 0.0.3-dev
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?
serialize = 
    {major}.{minor}.{patch}-{release}
    {major}.{minor}.{patch}
message = Bump Version {current_version} -> {new_version}

[bumpversion:file:app/settings.py]

[bumpversion:file:README.rst]
search = **unreleased**
replace = **unreleased**
    -
    **v{new_version}**

[bumpversion:part:release]
optional_value = gamma
values = 
    dev
    gamma

$ bumpversion patch
Traceback (most recent call last):
  File "/usr/local/bin/bumpversion", line 9, in <module>
    load_entry_point('bumpversion==0.5.0', 'console_scripts', 'bumpversion')()
  File "/Library/Python/2.7/site-packages/bumpversion/__init__.py", line 647, in main
    vcs_info.update(vcs.latest_tag_info())
  File "/Library/Python/2.7/site-packages/bumpversion/__init__.py", line 143, in latest_tag_info
    assert 0 == len(describe_out)
AssertionError
$

@thomasf
Copy link

thomasf commented Oct 11, 2014

duplicate of #51

@peritus
Copy link
Owner

peritus commented Oct 22, 2014

Indeed a duplicate of #51, @thomasf

@peritus peritus closed this as completed Oct 22, 2014
peritus added a commit that referenced this issue Oct 22, 2014
Guess this was a bit too defensive.

Fixes #51 #52
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

4 participants