diff options
| author | Neradoc <neraOnGit@ri1.fr> | 2021-03-29 18:14:37 +0200 |
|---|---|---|
| committer | Neradoc <neraOnGit@ri1.fr> | 2021-04-02 13:36:06 +0200 |
| commit | 12b0ee0a3e16c6db0e359fdc6cd8d23b54168789 (patch) | |
| tree | 0820e0a081235f9fc3bf76e39b613f01727897de /tools | |
| parent | da16e4dce197027012501ef9823bc8369e0774f8 (diff) | |
add alias boards and bus_device to the support matrix
add list with manual brand names for aliases
the new info in the support_matrix is used in build_board_info.py
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/build_board_info.py | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/tools/build_board_info.py b/tools/build_board_info.py index d89b6ac2c..94f6e50af 100644 --- a/tools/build_board_info.py +++ b/tools/build_board_info.py @@ -19,16 +19,8 @@ import shared_bindings_matrix sys.path.append("adabot") import adabot.github_requests as github -SUPPORTED_PORTS = [ - "atmel-samd", - "cxd56", - "esp32s2", - "litex", - "mimxrt10xx", - "nrf", - "raspberrypi", - "stm", -] +from shared_bindings_matrix import SUPPORTED_PORTS +from shared_bindings_matrix import aliases_by_board BIN = ("bin",) UF2 = ("uf2",) @@ -73,17 +65,6 @@ extension_by_board = { "meowbit_v121": UF2, } -aliases_by_board = { - "circuitplayground_express": [ - "circuitplayground_express_4h", - "circuitplayground_express_digikey_pycon2019", - ], - "pybadge": ["edgebadge"], - "pyportal": ["pyportal_pynt"], - "gemma_m0": ["gemma_m0_pycon2018"], - "pewpew10": ["pewpew13"], -} - language_allow_list = set([ "ID", "de_DE", @@ -312,7 +293,7 @@ def generate_download_info(): new_version = { "stable": new_stable, "version": new_tag, - "modules": support_matrix[board_id], + "modules": support_matrix[alias], "languages": languages, "extensions": board_info["extensions"], } @@ -325,7 +306,8 @@ def generate_download_info(): create_pr(changes, current_info, git_info, user) else: print("No new release to update") - # print(create_json(current_info).decode("utf8")) + if "DEBUG" in os.environ: + print(create_json(current_info).decode("utf8")) if __name__ == "__main__": |
