Skip to content

Commit 4de9574

Browse files
datapythonistaYYYasin19
authored andcommitted
WEB: Update list of maintainers and improve inactive maintainers format (pandas-dev#48053)
* WEB: Update list of maintainers and improve inactive maintainers format * Letting black destroy a bit the code...
1 parent 12ac3e0 commit 4de9574

File tree

3 files changed

+32
-19
lines changed

3 files changed

+32
-19
lines changed

web/pandas/about/team.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ _pandas_ is made with love by more than [2,000 volunteer contributors](https://g
66

77
If you want to support pandas development, you can find information in the [donations page](../donate.html).
88

9-
## Maintainers
9+
## Active maintainers
1010

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

63-
## Emeritus maintainers
63+
## Inactive maintainers
6464

6565
<ul>
66-
{% for person in maintainers.emeritus %}
67-
<li>{{ person }}</li>
66+
{% for person in maintainers.inactive_with_github_info %}
67+
<li>
68+
<a href="{{ person.blog or person.html_url }}">
69+
{{ person.name or person.login }}
70+
</a>
71+
</li>
6872
{% endfor %}
6973
</ul>

web/pandas/config.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,10 @@ maintainers:
6868
- wesm
6969
- jorisvandenbossche
7070
- TomAugspurger
71-
- shoyer
7271
- jreback
73-
- chris-b1
7472
- sinhrks
7573
- cpcloud
7674
- gfyoung
77-
- toobaz
7875
- WillAyd
7976
- mroeschke
8077
- jschendel
@@ -93,10 +90,15 @@ maintainers:
9390
- attack68
9491
- fangchenli
9592
- twoertwein
96-
emeritus:
97-
- Wouter Overmeire
98-
- Skipper Seabold
99-
- Jeff Tratner
93+
- lithomas1
94+
- mzeitlin11
95+
inactive:
96+
- lodagro
97+
- jseabold
98+
- jtratner
99+
- shoyer
100+
- chris-b1
101+
- toobaz
100102
coc:
101103
- Safia Abdalla
102104
- Tom Augspurger

web/pandas_web.py

+14-7
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,20 @@ def maintainers_add_info(context):
148148
Given the active maintainers defined in the yaml file, it fetches
149149
the GitHub user information for them.
150150
"""
151-
context["maintainers"]["people"] = []
152-
for user in context["maintainers"]["active"]:
153-
resp = requests.get(f"https://api.github.com/users/{user}")
154-
if context["ignore_io_errors"] and resp.status_code == 403:
155-
return context
156-
resp.raise_for_status()
157-
context["maintainers"]["people"].append(resp.json())
151+
repeated = set(context["maintainers"]["active"]) & set(
152+
context["maintainers"]["inactive"]
153+
)
154+
if repeated:
155+
raise ValueError(f"Maintainers {repeated} are both active and inactive")
156+
157+
for kind in ("active", "inactive"):
158+
context["maintainers"][f"{kind}_with_github_info"] = []
159+
for user in context["maintainers"][kind]:
160+
resp = requests.get(f"https://api.github.com/users/{user}")
161+
if context["ignore_io_errors"] and resp.status_code == 403:
162+
return context
163+
resp.raise_for_status()
164+
context["maintainers"][f"{kind}_with_github_info"].append(resp.json())
158165
return context
159166

160167
@staticmethod

0 commit comments

Comments
 (0)