Skip to content

Commit 928433f

Browse files
committed
tools/build_board_info.py: add built-in modules information for each board for use on circuitpython.org; uses 'docs/shared_bindings_matrix.py'
1 parent 87e4f47 commit 928433f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tools/build_board_info.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
from datetime import date
1010
from sh.contrib import git
1111

12+
sys.path.append("../docs")
13+
import shared_bindings_matrix
14+
1215
sys.path.append("adabot")
1316
import adabot.github_requests as github
1417

@@ -246,6 +249,10 @@ def generate_download_info():
246249

247250
languages = get_languages()
248251

252+
support_matrix = shared_bindings_matrix.support_matrix_by_board(
253+
use_branded_name=False
254+
)
255+
249256
new_stable = "-" not in new_tag
250257

251258
previous_releases = set()
@@ -283,6 +290,7 @@ def generate_download_info():
283290
new_version = {
284291
"stable": new_stable,
285292
"version": new_tag,
293+
"modules": support_matrix.get(alias, "[]"),
286294
"files": {}
287295
}
288296
for language in languages:

0 commit comments

Comments
 (0)