Skip to content

Commit

Permalink
FIX: CIs
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Feb 3, 2025
1 parent 5120ebd commit fe3b79c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 17 deletions.
2 changes: 2 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ Eduard Ort <[email protected]> examplename <[email protected]>
Ellen Lau <[email protected]> ellenlau <[email protected]>
Emily Stephen <[email protected]> Emily P. Stephen <[email protected]>
Emily Stephen <[email protected]> emilyps14 <[email protected]>
Emma Bailey <[email protected]> emma-bailey <[email protected]>
Enrico Varano <[email protected]> enricovara <[email protected]>
Enzo Altamiranda <[email protected]> enzo <[email protected]>
Eric Larson <[email protected]> Eric Larson <[email protected]>
Expand Down Expand Up @@ -315,6 +316,7 @@ Sara Sommariva <[email protected]> sarasommariva <[email protected]>
Sebastien Treguer <[email protected]> DataFox <[email protected]>
Sena Er <[email protected]> Sena <[email protected]>
Senwen Deng <[email protected]> Senwen DENG <[email protected]>
Shristi Baral <[email protected]> Shristi Baral <[email protected]>
Silvia Cotroneo <[email protected]> sfc-neuro <[email protected]>
Simon Kern <[email protected]> Simon Kern <[email protected]>
Simon Kern <[email protected]> skjerns <[email protected]>
Expand Down
32 changes: 16 additions & 16 deletions doc/sphinxext/credit_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@

# Allowed singletons
single_names = "btkcodedev buildqa sviter Akshay".split()
# Surnames where we have more than one distinct contributor:
name_counts = dict(
Bailey=2,
Das=2,
Drew=2,
Li=2,
Peterson=2,
Wong=2,
Zhang=2,
)
# Exceptions, e.g., abbrevitaions in first/last name or all-caps
exceptions = [
"T. Wang",
Expand Down Expand Up @@ -217,16 +227,6 @@ def generate_credit_rst(app=None, *, verbose=False):
)

# Check for duplicate names based on last name, and also singleton names.
# Below are surnames where we have more than one distinct contributor:
name_counts = dict(
Das=2,
Drew=2,
Li=2,
Peterson=2,
Wong=2,
Zhang=2,
)
# Below are allowed singleton names
last_map = defaultdict(lambda: set())
bad_names = set()
for these_stats in stats.values():
Expand All @@ -245,10 +245,11 @@ def generate_credit_rst(app=None, *, verbose=False):
if len(names) > name_counts.get(last, 1):
bad_names.append(f"Duplicates: {sorted(names)}")
if bad_names:
raise RuntimeError(
"Unexpected possible duplicates or bad names found:\n"
+ "\n".join(bad_names)
what = (
"Unexpected possible duplicates or bad names found, "
f"consider modifying {'/'.join(Path(__file__).parts[-3:])}:\n"
)
raise RuntimeError(what + "\n".join(bad_names))

unknown_emails = set(
email
Expand All @@ -258,9 +259,8 @@ def generate_credit_rst(app=None, *, verbose=False):
and "dependabot[bot]" not in email
and "github-actions[bot]" not in email
)
assert len(unknown_emails) == 0, "Unknown emails\n" + "\n".join(
sorted(unknown_emails)
)
what = "Unknown emails, consider adding to .mailmap:\n"
assert len(unknown_emails) == 0, what + "\n".join(sorted(unknown_emails))

logger.info("Biggest included commits/PRs:")
commits = dict(
Expand Down
8 changes: 7 additions & 1 deletion tools/install_pre_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,15 @@ python -m pip install $STD_ARGS --only-binary ":all:" --default-timeout=60 \

# statsmodels requires formulaic@main so we need to use --extra-index-url
echo "statsmodels"
# https://github.com/statsmodels/statsmodels/issues/9501
if [ "$PLATFORM" == "Windows" ]; then
STATS_VER=0.14.4
else
STATS_VER=0.15.0.dev0
fi
python -m pip install $STD_ARGS --only-binary ":all:" \
--extra-index-url "https://pypi.anaconda.org/scientific-python-nightly-wheels/simple" \
"statsmodels>=0.15.0.dev0"
"statsmodels>=$STATS_VER"

# No Numba because it forces an old NumPy version

Expand Down

0 comments on commit fe3b79c

Please sign in to comment.