Skip to content

Commit

Permalink
rel(24.0.1): update author crediting script
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Aug 20, 2024
1 parent 6ceef45 commit 42b291e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .maint/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
click
fuzzywuzzy
python-Levenshtein
7 changes: 6 additions & 1 deletion .maint/update_authors.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,14 @@ def get_git_lines(fname='line-contributors.txt'):
lines = contrib_file.read_text().splitlines()

git_line_summary_path = shutil.which('git-line-summary')
if not git_line_summary_path:
git_line_summary_path = "git summary --dedup-by-email".split(" ")
else:
git_line_summary_path = [git_line_summary_path]

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()
lines = sp.check_output(git_line_summary_path).decode().splitlines()
lines = [line for line in lines if 'Not Committed Yet' not in line]
contrib_file.write_text('\n'.join(lines))

Expand Down

0 comments on commit 42b291e

Please sign in to comment.