fundus
fundus copied to clipboard
[Question]: Should we use `commitizen` to enforce conventional commits and automate versioning?
Question
While searching for a tool to automate versioning., I stumbled over commitizen.
Commitizen itself does not automate versioning but, when used in combination with pre-commit, enforces commitment conventions and provides functionality to bump up the version according to pep440 or semver using cz bump.
cz bump would also keep track of changes in a changelog.md
This may be two questions in one:
- Do we want to enforce commitment conventions?
- Do we want to use commitizen?
- (Do we want to use version generation?)
Update: We could also omit the version bump of cz bump and only enforce commit conventions 1.0.0 and use release-please for automated release and version bump. Together with #358 the workflow would be.
- Work on the current master branch
release-pleaseopens a release PR which is automatically updated alongside the current master branch (keeps track of changes, bumps version according to semver, pushes into changelog.md)- If the release is ready, merge the release PR
- release-please automatically creates a release with a description based on the release PR
- #358 automatically publishes on testpypi -> test distribution -> publish to PyPi but awaits confirmation.