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
Add --show option to print only the version number #57
Comments
yep, let's do this -- I've run into this myself |
Any thoughts on this? I've found that changing the behaviour of |
Getting the next version would be great! Currently doing bump2version minor --dry-run --list | grep new_version | awk -f= '{print $2}' |
Any progress on this feature? Would we see this feature in the next release? |
No progress yet. I'll look into it again, but can't make promises. |
Is there anything I can do to achieve this feature in the next release? any help or contribution? |
You've just motivated me to try to implement it this Christmas holiday :-) |
@kkpattern I like the idea of subcommands, but that's hard to achieve in a backwards-compatible way. For this feature I feel like it's not worth the hassle. |
I think making The If |
On the other hand, you could also achieve that using |
Let's just implement |
@florisla Hello! It's useful feature for me. Do you have estimation for it ? |
Sorry it's slow. I have a working branch but each time I want to make a pull request I'm not sure all the code in there is necessary or understandable. I'll aim for end of February for the pull request. |
The lack of this feature has also slowed me down as well, so I've gone ahead and put up a quick pull request. Happy to merge in the changes from your working branch @florisla, but I tried to keep it minimal. |
For other folks that are blocked, I've moved forward with defaulting to using the dependency management and packaging tool's to gather the |
For the record, this feature is going to be implemented in the new |
External tools currently have to use
grep
andsed
to extract the version number from the output ofbump2version --list
.This is long and not very readable. Worse yet, Windows doesn't offer
grep
orsed
unless you install Cygwin/GnuWin32/Linux subsystem for Windows[/...] .Because it's a common need, I'd like to see (and can contribute) this instead:
I would propose that
show
enforcesdry-run
behavior so it never touches physical files. If you want to physically bump the version and also show it, you simply have to call bump2version two times.The text was updated successfully, but these errors were encountered: