Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add basic structure for a CITATION.cff file #93

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

amangoel185
Copy link

@amangoel185 amangoel185 commented Jul 4, 2022

Add a template for CITATION.cff file, some changes can be made to complete the file during setup:

  • Ask for ORCID and Affiliation
  • Separate Family Name and Given Name
  • Ask for keywords
  • Provision for multiple authors

File format referred from hist/CITATION.cff, I believe that currently Nox is failing a few tests.

@henryiii
Copy link
Collaborator

Is it better to leave the unfilled items empty or commented out? I'd like this to work out of the box as well as possible if someone forgets to customize it. CC @matthewfeickert.

@matthewfeickert
Copy link
Member

Is it better to leave the unfilled items empty or commented out?

I would be inclined to say that if it doesn't pass pipx run cffconvert --validate that is a problem. Empty entries will automatically fail validation and commented out entries aren't much better as you still need to have a minimum viable spec. In my mind this means that it should either be customized as part of setup or that it should be left as a suggestion but not an automatic part of cookie.

@mfisher87
Copy link
Contributor

cffconvert offers a validate-cff pre-commit hook: https://github.com/citation-file-format/cffconvert/blob/main/.pre-commit-hooks.yaml

@henryiii Would it be OK for me to help move forward the two CFF PRs and also add documentation about what a CITATION.cff file does and how to set up the Zenodo-GitHub integration to automatically generate DOIs? Since these haven't had activity since 2022 I want to check what's up before I start :)

@henryiii
Copy link
Collaborator

Docs for sure. The problem with adding this by default is that a user has to configure it to use it, a partial file isn't helpful and not everyone wants or knows to set it up. What I'd really like is support for a check boxes in cookiecutter and copier, then we could provide a list of optional features to enable.

@mfisher87
Copy link
Contributor

support for a check boxes in cookiecutter and copier

Fairly sure we can have a boolean answer in copier that we can use to create or not create file, is that what you mean?

@henryiii
Copy link
Collaborator

Yes, but I'd like a series of these, and having to answer for each one is less ideal than a list of checkboxes. But having a "Include citation file?" is probably the right way to go for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants