cookpete / auto-changelog

Command line tool for generating a changelog from git tags and commit history
MIT License
1.26k stars 157 forks source link

Support `--package pyproject.toml` #271

Open janosh opened 1 year ago

janosh commented 1 year ago

Would be great if auto-changelog could read the latest version from pyproject.toml. Would make it easier to use with Python projects.

npm run auto-changelog --package pyproject.toml

raises

SyntaxError: Unexpected token 'b', "[build-syst"... is not valid JSON

Minimal example pyproject.toml

[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"

[project]
name = "pkg-name"
version = "1.0.0"
# ...