Open jimustafa opened 1 year ago
Maybe a bump-my-version integration would be a good step?
https://github.com/callowayproject/bump-my-version
I would like to write an integration for that tool, but I'm not familiar with developing plugins for hatch.
In some cases, the version string can be present in multiple files, such as in
__about__.py
, the README, or referenced in the documentation. There exists some tools to match and update the version string across multiple files, such as tbump and bump2version, among others. It could be useful to incorporate similar functionality intohatch
: a scheme that allows the specification of multiple files and their associated patterns for matching and updating the version string.Another option could be a
post-version-update
hook that runstbump
orbumpversion
to update a collection of files, and maybe even rungit
to create a "bump version" commit. Below is an example of trying to do this with a script usingtbump
that is called manually withhatch run tbump-sync
after updating the version withhatch version
: