-
Notifications
You must be signed in to change notification settings - Fork 147
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
tag_name option doesn't work in .bumpversion.cfg #9
Comments
Thanks! See, I thought I'd spare myself that test and write only one for the CLI case. Damn. Care to submit a PR w/ a failing test and/or a fix ? |
I would, but I don't have a reliable way to verify what I'm doing, and I'm not at all familiar with the inner-workings of argparse, so I can't just eyeball it:
But, having overcome that because I recognise the tests format and tox.ini, even running
So ... yeah. I tried, but as I can't even get into a state where I can write a test which fails for the reason I expect, I'm afraid I can't get help further. |
Alright, playing around with pdb in the source, it seems like a fix is to change this line so that instead of being |
Yes, tox is optional (i use that mainly to test against multiple python implementations), but just py.test is fine. I have to admit that this is largely a wrapper for argparse, yes. |
That looks about right, a test for that should also be pretty straight forward. Thanks for the digging! |
Note to self: Also check if |
The regex parser doesn't do that because it's set as a default here. |
Well, that's where my understanding of argparse falls over, because |
Hey. Added a failing test to demonstrate the problem (appears to be with GTG, |
this is part of bumpversion 0.3.4, available on PyPI as of now. |
Using a
.bumpversion.cfg
like the below, and doingbumpversion minor
the
tag_name
argument as specified in theREADME.rst
has no effect - it goes into parser2 as a default correctly, but somewhere along the lines it gets reset to the global default ("v{new_version}"
) so that whenvcs.tag(args.tag_name.format(**formatargs))
is hit, the wrong string is used. I've tried this with and without quotes, without success.Using it via the CLI, eg: `bumpversion minor --tag-name="{new_version}" works as I'd expect.
Addendum: the example in the
README.rst
for using it via the CLI is incorrect -- it's using themessage
example.Edited to note: using 0.3.3 from PyPI.
The text was updated successfully, but these errors were encountered: