cookiecutter-pylibrary icon indicating copy to clipboard operation
cookiecutter-pylibrary copied to clipboard

``bump2version`` is deprecated, new development is in **Bump My Version**

Open SterlingPeet opened this issue 1 year ago • 3 comments

Looks like the latest development in the bumpversion saga is another project change:

bump2version

Bump My Version

Figured you might be interested to know, especially since the new project supports pyproject.toml. Out of curiosity, are you using tbump in your projects? I would like for my version bump, commit, and tagging command to include auto-generation of my changelog. It appears that tbump may be better suited to doing that for me, rather than me having to hack in some sort of git amend script around the bump[2]version command.

SterlingPeet avatar Dec 06 '23 00:12 SterlingPeet

Ooof.... it's not a drop in replacement. I'll give it a try tho.

tbump - I have tried it, works well enough, with the nice addition of being able to run arbitrary commands on bump. I still like that I can just run bumpversion patch all the time and not have to think what my next version is tho...

ionelmc avatar Dec 10 '23 20:12 ionelmc

I can agree on bumpversion patch, I guess I didn't realize the missing calculation aspect of tbump. I generate changelogs with a custom gitchangelog configuration, and it would be nice to let the tool tag and upload. Unfortunately, I have to to git amend the changelog into my version bump commit then tag and push everything manually. The changelogs look great though!

SterlingPeet avatar Dec 17 '23 23:12 SterlingPeet

Hey, so I reached to these guys last week about bumping the date along with the version. They responded very quickly and the tool itself is way more flexible than the predecessors.

https://github.com/callowayproject/bump-my-version/discussions/141

Plus, it supports your desire not to worry about the exact version number, you just need to add an extra argument because they expanded the code bump-my-version bump minor.

Given my experience, I'm upgrading my recommendation: I think you should seriously consider switching to this as your default.

SterlingPeet avatar Feb 26 '24 16:02 SterlingPeet