Skip to content

Commit 8e785a4

Browse files
authored
fix table render (#198)
1 parent 4790300 commit 8e785a4

File tree

7 files changed

+19
-6
lines changed

7 files changed

+19
-6
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,7 @@ clean:
2929
all_docs: load_docs_scripts api_docs examples_docs format_docs
3030

3131
licenses:
32-
pip-licenses --format=markdown --with-authors --with-urls | grep -E "GPL|AGPL|LGPL|MPL" > THIRD_PARTY_LICENSES.md
32+
pip-licenses --format=csv --with-authors --with-urls > third_party_licenses.csv
33+
python scripts/filter_licenses.py
34+
rm -f third_party_licenses.csv
35+
@echo "✓ THIRD_PARTY_LICENSES.md updated"

THIRD_PARTY_LICENSES.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
| certifi | 2025.7.9 | Mozilla Public License 2.0 (MPL 2.0) | Kenneth Reitz | https://github.com/certifi/python-certifi |
2-
| dulwich | 0.24.10 | Apache-2.0 OR GPL-2.0-or-later | Jelmer Vernooij <[email protected]> | https://www.dulwich.io/ |
3-
| fqdn | 1.5.1 | Mozilla Public License 2.0 (MPL 2.0) | ypcrts | https://github.com/ypcrts/fqdn |
4-
| pathspec | 0.12.1 | Mozilla Public License 2.0 (MPL 2.0) | "Caleb P. Burns" <[email protected]> | UNKNOWN |
5-
| tqdm | 4.67.1 | MIT License; Mozilla Public License 2.0 (MPL 2.0) | UNKNOWN | https://tqdm.github.io |
1+
| Name | Version | License | Author | URL |
2+
|:---------|:-----------|:--------------------------------------------------|:-------------------------------------|:------------------------------------------|
3+
| certifi | 2025.11.12 | Mozilla Public License 2.0 (MPL 2.0) | Kenneth Reitz | https://github.com/certifi/python-certifi |
4+
| pathspec | 0.12.1 | Mozilla Public License 2.0 (MPL 2.0) | "Caleb P. Burns" <[email protected]> | UNKNOWN |
5+
| tqdm | 4.67.1 | MIT License; Mozilla Public License 2.0 (MPL 2.0) | UNKNOWN | https://tqdm.github.io |
File renamed without changes.
File renamed without changes.

scripts/filter_licenses.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import pandas as pd
2+
3+
df = pd.read_csv('third_party_licenses.csv')
4+
df = df[df['License'].str.contains('GPL|AGPL|LGPL|MPL', na=False)]
5+
6+
# if the license has a long agreement, only capture the title and skip the rest
7+
df['License'] = df['License'].apply(lambda x: x.split('\n')[0])
8+
9+
df = df[~df['Name'].str.contains('quadprog')] # ignore quadprog
10+
df.to_markdown('THIRD_PARTY_LICENSES.md', index=False)

0 commit comments

Comments
 (0)