Bump version $ARGUMENTS.
Steps:
- •Read current version from
pyproject.toml(line containingversion = "x.y.z") - •If no argument provided, default to minor bump
- •If argument is
estimate, analyze changes since last tag to determine bump type:- •Use
git logandgit diffto review recent changes - •patch: bug fixes, documentation, minor tweaks
- •minor: new features, non-breaking enhancements
- •major: breaking changes, API modifications
- •Present recommendation to user for confirmation before proceeding
- •Use
- •Calculate new version:
- •patch: x.y.z → x.y.(z+1)
- •minor: x.y.z → x.(y+1).0
- •major: x.y.z → (x+1).0.0
- •Update version in:
- •
pyproject.toml: Updateversion = "x.y.z"line - •
README.md: Update version in Docker tagging section
- •
- •Display summary: old version → new version, files updated
- •Remind user to commit and tag:
git tag vx.y.z