tools/build_board_info.py: add built-in modules information for each board for use on circuitpython.org; uses 'docs/shared_bindings_matrix.py'
This commit is contained in:
parent
87e4f47866
commit
928433f2e3
|
@ -9,6 +9,9 @@ import base64
|
||||||
from datetime import date
|
from datetime import date
|
||||||
from sh.contrib import git
|
from sh.contrib import git
|
||||||
|
|
||||||
|
sys.path.append("../docs")
|
||||||
|
import shared_bindings_matrix
|
||||||
|
|
||||||
sys.path.append("adabot")
|
sys.path.append("adabot")
|
||||||
import adabot.github_requests as github
|
import adabot.github_requests as github
|
||||||
|
|
||||||
|
@ -246,6 +249,10 @@ def generate_download_info():
|
||||||
|
|
||||||
languages = get_languages()
|
languages = get_languages()
|
||||||
|
|
||||||
|
support_matrix = shared_bindings_matrix.support_matrix_by_board(
|
||||||
|
use_branded_name=False
|
||||||
|
)
|
||||||
|
|
||||||
new_stable = "-" not in new_tag
|
new_stable = "-" not in new_tag
|
||||||
|
|
||||||
previous_releases = set()
|
previous_releases = set()
|
||||||
|
@ -283,6 +290,7 @@ def generate_download_info():
|
||||||
new_version = {
|
new_version = {
|
||||||
"stable": new_stable,
|
"stable": new_stable,
|
||||||
"version": new_tag,
|
"version": new_tag,
|
||||||
|
"modules": support_matrix.get(alias, "[]"),
|
||||||
"files": {}
|
"files": {}
|
||||||
}
|
}
|
||||||
for language in languages:
|
for language in languages:
|
||||||
|
|
Loading…
Reference in New Issue