Santiago Fraire Willemoes
Santiago Fraire Willemoes
You'd have to publish a package with the custom provider in python, no code goes in pyproject.toml. Then you'd install: ```sh pip install commitizen cz-attr-version ``` And then you'd do...
Now that I think about it... maybe we could even make the existing provider `pep621` read this, right? pep621 is reading from the `version` field, that means it should be...
Hi, in my experience, the script hooks have been a problem, and the user I helped solved the problem in a different way in the end. Would something like this...
But you can still reuse the same code to get the next version, right? ```sh NEXT=$(cz bump --git-output-to-stderr --dry-run | grep 'tag to create:' | grep -Eo '[0-9].+') CURRENT=$(cz version...
Mmmm it feels like stretching commitizen too much to be honest. As a maintainer of the project, adding python hooks which would run inside commitizen seems like a huge burden,...
Hoy can either build your own provider: https://commitizen-tools.github.io/commitizen/config/#custom-version-provider Or a good way to start is to use the version files setting: https://commitizen-tools.github.io/commitizen/bump/#version_files
Sorry, I think I don't get it, would you mind elaborating with some examples?
`version_files` is for any file. But it traverses the file line by line and you can use a regex to find the match, in your case, if you are using...
Unfortunately as of now it's one line at a time, so more complex regex are not possible. IIRC we had multi line support but we had troubles with it and...
In principle, you can achieve that with a custom "version provider" specifically design for your application. Version providers are plugins, that can be implemented as new python packages. You just...