diff --git a/web/pandas/about/team.md b/web/pandas/about/team.md index 2982105616f47..261d577b2abc1 100644 --- a/web/pandas/about/team.md +++ b/web/pandas/about/team.md @@ -6,10 +6,10 @@ _pandas_ is made with love by more than [2,000 volunteer contributors](https://g If you want to support pandas development, you can find information in the [donations page](../donate.html). -## Maintainers +## Active maintainers
- {% for person in maintainers.people %} + {% for person in maintainers.active_with_github_info %}
@@ -60,10 +60,14 @@ The project governance is available in the [project governance page](governance. {% endfor %} -## Emeritus maintainers +## Inactive maintainers diff --git a/web/pandas/config.yml b/web/pandas/config.yml index aa4deaea98a6c..79a77e80830f3 100644 --- a/web/pandas/config.yml +++ b/web/pandas/config.yml @@ -68,13 +68,10 @@ maintainers: - wesm - jorisvandenbossche - TomAugspurger - - shoyer - jreback - - chris-b1 - sinhrks - cpcloud - gfyoung - - toobaz - WillAyd - mroeschke - jschendel @@ -93,10 +90,15 @@ maintainers: - attack68 - fangchenli - twoertwein - emeritus: - - Wouter Overmeire - - Skipper Seabold - - Jeff Tratner + - lithomas1 + - mzeitlin11 + inactive: + - lodagro + - jseabold + - jtratner + - shoyer + - chris-b1 + - toobaz coc: - Safia Abdalla - Tom Augspurger diff --git a/web/pandas_web.py b/web/pandas_web.py index 16e9024d8d1d8..290443d1d2970 100755 --- a/web/pandas_web.py +++ b/web/pandas_web.py @@ -148,13 +148,20 @@ def maintainers_add_info(context): Given the active maintainers defined in the yaml file, it fetches the GitHub user information for them. """ - context["maintainers"]["people"] = [] - for user in context["maintainers"]["active"]: - resp = requests.get(f"https://api.github.com/users/{user}") - if context["ignore_io_errors"] and resp.status_code == 403: - return context - resp.raise_for_status() - context["maintainers"]["people"].append(resp.json()) + repeated = set(context["maintainers"]["active"]) & set( + context["maintainers"]["inactive"] + ) + if repeated: + raise ValueError(f"Maintainers {repeated} are both active and inactive") + + for kind in ("active", "inactive"): + context["maintainers"][f"{kind}_with_github_info"] = [] + for user in context["maintainers"][kind]: + resp = requests.get(f"https://api.github.com/users/{user}") + if context["ignore_io_errors"] and resp.status_code == 403: + return context + resp.raise_for_status() + context["maintainers"][f"{kind}_with_github_info"].append(resp.json()) return context @staticmethod