Repository navigation
Generate CITATION.cff from codemeta.json - #868
Merged
apdavison merged 1 commit intoNov 19, 2026
Merged
Conversation
apdavison
force-pushed
the
citation-from-codemeta
branch
from
November 19, 2026 17:34
6c2eea9 to
75b6116
Compare
CITATION.cff listed only the authors of the 2008 article, with the wrong year (the article was published in January 2009), although its type is "software". It is now generated from codemeta.json by tools/codemeta2cff.py, with all the contributors, the RRID, and the article as the preferred citation.
apdavison
force-pushed
the
citation-from-codemeta
branch
from
November 19, 2026 17:35
75b6116 to
1a454d5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To ensure
CITATION.cffandcodemeta.jsonare consistent, we generate the former from the latter with a new script,tools/codemeta2cff.py:codemeta.json, the version, the licence, the repository and the RRID.preferred-citation, so GitHub's "Cite this repository" still gives the article.To make this possible,
referencePublicationincodemeta.jsonis now a fullScholarlyArticle(authors, date, journal, volume, DOI) rather than just the DOI, which CodeMeta allows.After changing
codemeta.json, runpython tools/codemeta2cff.pyto updateCITATION.cff;python tools/codemeta2cff.py --checkreports whether it is up to date. The generated file is valid according tocffconvert --validate.