nedbat / scriv

Changelog management tool
https://scriv.readthedocs.io
Apache License 2.0
260 stars 29 forks source link

Add support for cabal files #91

Closed jasagredo closed 1 year ago

jasagredo commented 1 year ago

Cabal uses its own syntax for the descriptions of the packages, which we can parse ad-hoc for the version number under normal circumstances just by grepping for the version string and getting the value after the colon.

This is a non-invasive change that we would be interested in upstreaming so that there is not a fork just for this purpose.

nedbat commented 1 year ago

I have no experience with cabal files, but this seems fine. I would like to have a test added for the new code, and perhaps even a mention in the docs?

jasagredo commented 1 year ago

I don't know exactly how the tests work, but I replicated what was already there this time for a very minimal cabal literal file. Is this ok?

nedbat commented 1 year ago

Thanks!

nedbat commented 1 year ago

This is now released as part of scriv 1.4.0.