If the package that is being released has a pyproject.toml with towncrier config, and we cannot find the towncrier executable, then our hook should either warn about this or fail with an error.
Probably a question is best:
According to the pyproject.toml file, towncrier is used to update the changelog.
The problem is: we cannot find the towncrier executable.
Please make sure it is on your PATH.
Do you want to continue anyway? (y/N)
Default answer would be no, at which point we would do a sys.exit(1).
If the package that is being released has a
pyproject.toml
with towncrier config, and we cannot find thetowncrier
executable, then our hook should either warn about this or fail with an error. Probably a question is best:Default answer would be no, at which point we would do a
sys.exit(1)
.