Skip to content

Commit

Permalink
zenodo: Re-organize .zenodo.json
Browse files Browse the repository at this point in the history
Instead of a solely alphabetical order, we introduce three categories.
The names of the current maintainers go first.
Next, all contributors where full names (first and last) are available.
Finally, all contributors where we only have GitHub handles are listed.

Signed-off-by: Johannes Demel <[email protected]>
  • Loading branch information
jdemel committed Feb 9, 2022
1 parent e04cd37 commit 94b7986
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .zenodo.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,16 @@
],
"creators": [
{
"name": "Aang23"
"affiliation": "Department of Communications Engineering, University of Bremen, Germany",
"name": "Demel, Johannes",
"orcid": "0000-0002-5434-7232"
},
{
"name": "AlexandreRouma"
"name": "Dickens, Michael"
},
{
"name": "Anderson, Douglas"
},
{
"name": "Andrew"
},
{
"name": "Ashton, Brennan"
},
Expand Down Expand Up @@ -74,14 +73,6 @@
{
"name": "Cruz, Luigi"
},
{
"affiliation": "Department of Communications Engineering, University of Bremen, Germany",
"name": "Demel, Johannes",
"orcid": "0000-0002-5434-7232"
},
{
"name": "Dickens, Michael"
},
{
"name": "Economos, Ron"
},
Expand Down Expand Up @@ -245,6 +236,18 @@
{
"name": "Zapodovnikov, Valerii"
},
{
"name": "\u0160karvada, Jaroslav"
},
{
"name": "Aang23"
},
{
"name": "AlexandreRouma"
},
{
"name": "Andrew"
},
{
"name": "Zlika"
},
Expand All @@ -253,9 +256,6 @@
},
{
"name": "rear1019"
},
{
"name": "\u0160karvada, Jaroslav"
}
]
}
8 changes: 8 additions & 0 deletions scripts/tools/run_citations_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#

import argparse
from pprint import pprint
import regex
import json
import pathlib
Expand Down Expand Up @@ -128,6 +129,13 @@ def main():

# make sure all contributors are sorted alphabetically by their family name.
creators = sorted(creators, key=lambda x: x['name'])
maintainers = ["Demel, Johannes", "Dickens, Michael"]
maintainer_list = list(filter(lambda x: x['name'] in maintainers, creators))
creators = list(filter(lambda x: x['name'] not in maintainers, creators))
nick_list = list(filter(lambda x: ', ' not in x['name'], creators))
fullname_list = list(filter(lambda x: ', ' in x['name'], creators))

creators = maintainer_list + fullname_list + nick_list

citation_file['creators'] = creators
update_citation_file(citation_file_name, citation_file)
Expand Down

0 comments on commit 94b7986

Please sign in to comment.