Skip to content

Commit

Permalink
MNT: Update contributor tooling, add @bpinsard to contributors
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Dec 9, 2022
1 parent a571786 commit d42aab0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
1 change: 1 addition & 0 deletions .maint/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ Before every release, unlisted contributors will be invited again to add their n
| Cieslak | Matthew | @mattcieslak | 0000-0002-1931-4734 | Perelman School of Medicine, University of Pennsylvania, PA, USA |
| MacNicol | Eilidh | @eilidhmacnicol | 0000-0003-3715-7012 | Department of Neuroimaging, King's College London |
| Naveau | Mikaël | @naveau | 0000-0001-6948-9068 | Cyceron, UMS 3408 (CNRS - UCBN), France |
| Pinsard | Basile | @bpinsard | 0000-0002-4391-3075 | University of Montréal, Montréal, Canada |
| Sitek | Kevin R. | @sitek | 0000-0002-2172-5786 | Speech & Hearing Bioscience & Technology Program, Harvard University |
| Sneve | Markus H. | @markushs | 0000-0001-7644-7915 | Center for Lifespan Changes in Brain and Cognition, University of Oslo |
14 changes: 8 additions & 6 deletions .maint/update_authors.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,12 @@ def get_git_lines(fname="line-contributors.txt"):
print("WARNING: Reusing existing line-contributors.txt file.", file=sys.stderr)
lines = contrib_file.read_text().splitlines()

git_line_summary_path = shutil.which("git-line-summary")
if not lines and git_line_summary_path:
print("Running git-line-summary on repo")
lines = sp.check_output([git_line_summary_path]).decode().splitlines()
cmd = [shutil.which("git-line-summary")]
if cmd == [None]:
cmd = [shutil.which("git-summary"), "--line"]
if not lines and cmd[0]:
print(f"Running {' '.join(cmd)!r} on repo")
lines = sp.check_output(cmd).decode().splitlines()
lines = [l for l in lines if "Not Committed Yet" not in l]
contrib_file.write_text("\n".join(lines))

Expand All @@ -130,7 +132,7 @@ def get_git_lines(fname="line-contributors.txt"):
Could not find line-contributors from git repository.%s"""
% """ \
git-line-summary not found, please install git-extras. """
* (git_line_summary_path is None)
* (cmd[0] is None)
)
return [" ".join(line.strip().split()[1:-1]) for line in lines if "%" in line]

Expand Down Expand Up @@ -227,7 +229,7 @@ def zenodo(
creator["affiliation"] = creator["affiliation"][0]

Path(zenodo_file).write_text(
"%s\n" % json.dumps(zenodo, indent=2)
"%s\n" % json.dumps(zenodo, indent=2, ensure_ascii=False)
)


Expand Down
16 changes: 11 additions & 5 deletions .zenodo.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,23 @@
"name": "Oscar Esteban"
},
{
"orcid": "0000-0002-6533-164X",
"orcid": "0000-0002-7252-7771",
"affiliation": "Department of Psychology, Stanford University, CA, USA",
"name": "Christopher J. Markiewicz"
"name": "Mathias Goncalves"
},
{
"orcid": "0000-0002-7252-7771",
"orcid": "0000-0002-6533-164X",
"affiliation": "Department of Psychology, Stanford University, CA, USA",
"name": "Mathias Goncalves"
"name": "Christopher J. Markiewicz"
}
],
"contributors": [
{
"orcid": "0000-0002-4391-3075",
"affiliation": "University of Montréal, Montréal, Canada",
"name": "Basile Pinsard",
"type": "Researcher"
},
{
"orcid": "0000-0003-3715-7012",
"affiliation": "Department of Neuroimaging, King's College London",
Expand Down Expand Up @@ -52,7 +58,7 @@
{
"orcid": "0000-0001-6948-9068",
"affiliation": "Cyceron, UMS 3408 (CNRS - UCBN), France",
"name": "Mika\u00ebl Naveau",
"name": "Mikaël Naveau",
"type": "Researcher"
},
{
Expand Down

0 comments on commit d42aab0

Please sign in to comment.