nedbat/scriv

yaml support for literals

fkuep opened this issue · 2 comments

fkuep commented

Hi Ned and everybody,

I want to use scriv to changlog my ansible collection .
It's version is in a galaxy.yaml file like this:

namespace: myCollections
name: a_collection
version: 1.2.3
authors:
- Me  <ich@mag.net>
description: This is gonna be great!
repository: https://github.com/example-corp/fluffy_husky.git
issues: https://github.com/example-corp/fluffy_husky/issues
build_ignore: ['*.tar.gz', '*.pass', '*.key', '*.id_rsa', publish.sh,
  .gitignore, 'changelog.d/*']

Now - wouldn't it be great, if literals could be enhanced to parse yaml files ?

fkuep commented

This seems to work:

$ scriv collect --keep
Collecting from changelog.d
$

changelog.d/scriv.ini

[scriv]
format = md
version = literal: galaxy.yml: version

generated CHANGELOG.md

<a id='changelog-1.2.3'></a>
# 1.2.3 — 2022-11-25

## Added

- I did the following new ...

Implemented in 65f7e96.