Closed JKatzwinkel closed 2 years ago
i'm postpoing this to 0.4. because:
two+ thoughts:
quality-checks
workflowshould we render the citation file in the release
make target then?
now after some time working on an automated release workflow, i'm sceptical the effort would be worth it here. also, there's the problem that the tag should be created after the file has been generated. perspectively there will also be the generated xpath parser module. this one would have to be generated before running tests on every platform.
henceforth we should rely on scripts for these jobs. i propose that you move the generation logic to such a script, add a git hook that calls it and move the verification to the quality checks workflow (i wouldn't do this locally).
is there a more or less canonical name for paths with such scripts that is descriptive?
I usually put stuff like that into build/
or bin/
.
i was already into setting up something with pre-commit
, but realised that the two generation processes are quiet different.
should we render the citation file in the
release
make target then?
is the question that answers my question when is the proper time to set the file's contens.
https://pypi.org/project/jinja-cli/ looks feasible for the poetry dev environment. also, the validation therefore needs to happen locally. https://github.com/citation-file-format/cff-converter-python has a --validate
flag that acts as subcommand.
i'd move the templates
folder to the root.
i have this branch rebased onto main and added another render approach with just
. i'm afraid force-pushing it will make previous comments less accessible. shall i wait until you settled the contents?
maybe we should leave this unmerged until release, as a reminder that we should not forget to add the
date-released
field with the release date.