Skip to content

Commit

Permalink
rm maintainer.json dependancy
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfiex authored Apr 21, 2024
1 parent 80e8cd6 commit 3f8ca2d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/libs/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# load the maintainer file
##########################################

maintainers = json.load(open('.github/maintainer_institutes.json', 'r'))
# maintainers = json.load(open('.github/maintainer_institutes.json', 'r'))
##########################################
# get repo information
##########################################
Expand Down Expand Up @@ -114,14 +114,14 @@ def process_files(files,token = None, branch=None,force=False):
if author_match:
author_info = author_match.group(1).split(" <")
commit_dict["author_name"] = author_info[0]
try:
commit_dict["author_institute"] = maintainers[author_info[0]]['institute']
commit_dict["author_name"] = maintainers[author_info[0]]['published_name']
except:
commit_dict["author_name"] = author_match.group(1)
print( f'Please add \n\t "{author_info[0]}": \n\t\t','{"institute": "", "published_name": "Name you wish to use"}')
# this was a keyerror
# try:
# commit_dict["author_institute"] = maintainers[author_info[0]]['institute']
# commit_dict["author_name"] = maintainers[author_info[0]]['published_name']
# except:
commit_dict["author_name"] = author_match.group(1)

# print( f'Please add \n\t "{author_info[0]}": \n\t\t','{"institute": "", "published_name": "Name you wish to use"}')
# this was a keyerror

commit_dict["author_email"] = author_info[1][:-1]

Expand Down

0 comments on commit 3f8ca2d

Please sign in to comment.