Skip to content

Commit d42aab0

Browse files
committed
MNT: Update contributor tooling, add @bpinsard to contributors
1 parent a571786 commit d42aab0

File tree

3 files changed

+20
-11
lines changed

3 files changed

+20
-11
lines changed

.maint/CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ Before every release, unlisted contributors will be invited again to add their n
1313
| Cieslak | Matthew | @mattcieslak | 0000-0002-1931-4734 | Perelman School of Medicine, University of Pennsylvania, PA, USA |
1414
| MacNicol | Eilidh | @eilidhmacnicol | 0000-0003-3715-7012 | Department of Neuroimaging, King's College London |
1515
| Naveau | Mikaël | @naveau | 0000-0001-6948-9068 | Cyceron, UMS 3408 (CNRS - UCBN), France |
16+
| Pinsard | Basile | @bpinsard | 0000-0002-4391-3075 | University of Montréal, Montréal, Canada |
1617
| Sitek | Kevin R. | @sitek | 0000-0002-2172-5786 | Speech & Hearing Bioscience & Technology Program, Harvard University |
1718
| Sneve | Markus H. | @markushs | 0000-0001-7644-7915 | Center for Lifespan Changes in Brain and Cognition, University of Oslo |

.maint/update_authors.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,12 @@ def get_git_lines(fname="line-contributors.txt"):
117117
print("WARNING: Reusing existing line-contributors.txt file.", file=sys.stderr)
118118
lines = contrib_file.read_text().splitlines()
119119

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

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

@@ -227,7 +229,7 @@ def zenodo(
227229
creator["affiliation"] = creator["affiliation"][0]
228230

229231
Path(zenodo_file).write_text(
230-
"%s\n" % json.dumps(zenodo, indent=2)
232+
"%s\n" % json.dumps(zenodo, indent=2, ensure_ascii=False)
231233
)
232234

233235

.zenodo.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,23 @@
88
"name": "Oscar Esteban"
99
},
1010
{
11-
"orcid": "0000-0002-6533-164X",
11+
"orcid": "0000-0002-7252-7771",
1212
"affiliation": "Department of Psychology, Stanford University, CA, USA",
13-
"name": "Christopher J. Markiewicz"
13+
"name": "Mathias Goncalves"
1414
},
1515
{
16-
"orcid": "0000-0002-7252-7771",
16+
"orcid": "0000-0002-6533-164X",
1717
"affiliation": "Department of Psychology, Stanford University, CA, USA",
18-
"name": "Mathias Goncalves"
18+
"name": "Christopher J. Markiewicz"
1919
}
2020
],
2121
"contributors": [
22+
{
23+
"orcid": "0000-0002-4391-3075",
24+
"affiliation": "University of Montréal, Montréal, Canada",
25+
"name": "Basile Pinsard",
26+
"type": "Researcher"
27+
},
2228
{
2329
"orcid": "0000-0003-3715-7012",
2430
"affiliation": "Department of Neuroimaging, King's College London",
@@ -52,7 +58,7 @@
5258
{
5359
"orcid": "0000-0001-6948-9068",
5460
"affiliation": "Cyceron, UMS 3408 (CNRS - UCBN), France",
55-
"name": "Mika\u00ebl Naveau",
61+
"name": "Mikaël Naveau",
5662
"type": "Researcher"
5763
},
5864
{

0 commit comments

Comments
 (0)