c4urself / bump2version

Version-bump your software with a single command
https://pypi.python.org/pypi/bump2version
MIT License
1.05k stars 135 forks source link

How to split bumping and tagging to allow intermediate step in between #256

Open albertogomcas opened 1 year ago

albertogomcas commented 1 year ago

My use case, I have some versioned source code that can be compiled into a binary. The binary is added to a dist folder on the same repo (may be an anti-pattern...)

Steps as I have it configured now:

  1. (bump2version) Bump version of the code, commit [+ tag]
  2. build the binary, replace the old binary
  3. commit binary file
  4. push and push tags

The problem is that the binary commit happens after the tag.

What I would need:

  1. (bump2version) Bump version of the code, commit [no tag]
  2. build the binary, replace the old binary
  3. commit binary file
  4. tag with the bumped version
  5. push and push tags

I can of course script myself the new step 4, but I was wondering if I have missed some option of bump2version that allows for this, basically create the tag without bumping the version