ionelmc / cookiecutter-pylibrary

Enhanced cookiecutter template for Python libraries.
BSD 2-Clause "Simplified" License
1.25k stars 207 forks source link

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

Open SterlingPeet opened 11 months ago

SterlingPeet commented 11 months ago

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.

ionelmc commented 10 months ago

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...

SterlingPeet commented 10 months ago

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 commented 8 months ago

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.