Skip to content

WEB: Update list of maintainers and improve inactive maintainers format #48053

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions web/pandas/about/team.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

<div class="card-group maintainers">
{% for person in maintainers.people %}
{% for person in maintainers.active_with_github_info %}
<div class="card">
<img class="card-img-top" alt="" src="{{ person.avatar_url }}"/>
<div class="card-body">
Expand Down Expand Up @@ -60,10 +60,14 @@ The project governance is available in the [project governance page](governance.
{% endfor %}
</ul>

## Emeritus maintainers
## Inactive maintainers

<ul>
{% for person in maintainers.emeritus %}
<li>{{ person }}</li>
{% for person in maintainers.inactive_with_github_info %}
<li>
<a href="{{ person.blog or person.html_url }}">
{{ person.name or person.login }}
</a>
</li>
{% endfor %}
</ul>
16 changes: 9 additions & 7 deletions web/pandas/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,10 @@ maintainers:
- wesm
- jorisvandenbossche
- TomAugspurger
- shoyer
- jreback
- chris-b1
- sinhrks
- cpcloud
- gfyoung
- toobaz
- WillAyd
- mroeschke
- jschendel
Expand All @@ -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
Expand Down
21 changes: 14 additions & 7 deletions web/pandas_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down