Skip to content

Commit 419e7c3

Browse files
committed
fix date-released field and remove license from CITATION.cff to make cffconvert action work
1 parent aa0a84c commit 419e7c3

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

template/{% if AddCitation %}CITATION.cff{% endif %}.jinja

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,14 @@
33
cff-version: "1.2.0"
44
title: "{{ package_name }}"
55
authors:
6-
-
7-
family-names: {{ full_name.replace('\"', '\\\"').split(' ')[-1] }}
6+
- family-names: {{ full_name.replace('\"', '\\\"').split(' ')[-1] }}
87
given-names: {{ full_name.replace('\"', '\\\"').split(' ')[0] }}
98
orcid: "https://orcid.org/0000-0000-0000-0000"
10-
date-released: 20??-MM-DD
11-
doi: <insert your DOI here>
9+
date-released: {{ '%Y-%m-%d' | strftime }}
1210
version: "{{ version }}"
1311
repository-code: "{{ repository_url }}"
1412
keywords:
1513
{%- for item in keywords.split(',') %}
1614
- "{{ item }}"
1715
{%- endfor %}
1816
message: "If you use this software, please cite it using these metadata."
19-
{{ { "Apache Software License 2.0": "license: Apache-2.0",
20-
"MIT license": "license: MIT",
21-
"BSD license": "license: BSD-3-Clause",
22-
"ISC license": "license: ISC",
23-
"GNU General Public License v3 or later": "license: GPL-3.0-or-later",
24-
"Not open source": ""
25-
}[license] }}

0 commit comments

Comments
 (0)