From 100a91eec33b51dc4520e521a0f367026c37b3f4 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Mon, 10 Aug 2020 18:06:11 +0100 Subject: [PATCH] Update contributors.json with recent contributors --- .github/contributors.json | 27 ++++++++++++++++- scripts/rst_to_json.py | 61 ++++++++++++++++++++------------------- 2 files changed, 57 insertions(+), 31 deletions(-) diff --git a/.github/contributors.json b/.github/contributors.json index 7a932526e..aeb0b61fd 100644 --- a/.github/contributors.json +++ b/.github/contributors.json @@ -68,6 +68,11 @@ "github_login": "a7p", "twitter_username": "" }, + { + "name": "Aadith PM", + "github_login": "aadithpm", + "twitter_username": "" + }, { "name": "Aaron Eikenberry", "github_login": "aeikenberry", @@ -173,6 +178,11 @@ "github_login": "areski", "twitter_username": "" }, + { + "name": "AsheKR", + "github_login": "ashekr", + "twitter_username": "" + }, { "name": "Ashley Camba", "github_login": "", @@ -653,6 +663,11 @@ "github_login": "glasslion", "twitter_username": "" }, + { + "name": "Leon Kim", + "github_login": "PilhwanKim", + "twitter_username": "" + }, { "name": "Leonardo Jimenez", "github_login": "xpostudio4", @@ -733,6 +748,11 @@ "github_login": "mjsisley", "twitter_username": "" }, + { + "name": "Matthias Sieber", + "github_login": "manonthemat", + "twitter_username": "MatzeOne" + }, { "name": "Meghan Heintz", "github_login": "dot2dotseurat", @@ -828,6 +848,11 @@ "github_login": "rm--", "twitter_username": "" }, + { + "name": "Richard Hajdu", + "github_login": "Tusky", + "twitter_username": "" + }, { "name": "Roman Afanaskin", "github_login": "siauPatrick", @@ -988,4 +1013,4 @@ "github_login": "mapx", "twitter_username": "" } -] +] \ No newline at end of file diff --git a/scripts/rst_to_json.py b/scripts/rst_to_json.py index 37f5b2193..1cb3f585c 100644 --- a/scripts/rst_to_json.py +++ b/scripts/rst_to_json.py @@ -7,61 +7,60 @@ ROOT = CURRENT_FILE.parents[1] def main(): input_file_path = ROOT / "CONTRIBUTORS.rst" - with input_file_path.open() as ifd: - content = ifd.read() + content = input_file_path.read_text() table_separator = ( - "============================= ========================== ==================" + "========================== ============================ ==============" ) table_content = content.split(table_separator)[2] profiles_list = [ - { - "name": "Audrey Roy Greenfeld", - "github_login": "audreyr", - "twitter_username": "audreyr", - "is_core": True, - }, - { - "name": "Bruno Alla", - "github_login": "browniebroke", - "twitter_username": "_BrunoAlla", - "is_core": True, - }, - { - "name": "Burhan Khalid", - "github_login": "burhan", - "twitter_username": "burhan", - "is_core": True, - }, { "name": "Daniel Roy Greenfeld", "github_login": "pydanny", "twitter_username": "pydanny", "is_core": True, }, + { + "name": "Audrey Roy Greenfeld", + "github_login": "audreyr", + "twitter_username": "audreyr", + "is_core": True, + }, { "name": "Fábio C. Barrionuevo da Luz", "github_login": "luzfcb", "twitter_username": "luzfcb", "is_core": True, }, - { - "name": "Jannis Gebauer", - "github_login": "jayfk", - "twitter_username": "", - "is_core": True, - }, { "name": "Saurabh Kumar", "github_login": "theskumar", "twitter_username": "_theskumar", "is_core": True, }, + { + "name": "Jannis Gebauer", + "github_login": "jayfk", + "twitter_username": "", + "is_core": True, + }, + { + "name": "Burhan Khalid", + "github_login": "burhan", + "twitter_username": "burhan", + "is_core": True, + }, { "name": "Shupeyko Nikita", "github_login": "webyneter", - "twitter_username": "", + "twitter_username": "webyneter", + "is_core": True, + }, + { + "name": "Bruno Alla", + "github_login": "browniebroke", + "twitter_username": "_BrunoAlla", "is_core": True, }, { @@ -94,8 +93,10 @@ def main(): profiles_list.append(profile) output_file_path = ROOT / ".github" / "contributors.json" - with output_file_path.open("w") as ofd: - json.dump(profiles_list, ofd, indent=2, ensure_ascii=False) + output_file_path.write_text( + json.dumps(profiles_list, indent=2, ensure_ascii=False) + ) + if __name__ == "__main__":