diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2021-04-02 10:15:48 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-02 10:15:48 -0700 |
| commit | 51c09e877d72d07d06276a8f9d40342833412a72 (patch) | |
| tree | 747f34e8bc97bdbf6c64334151c51fda8da5b5ed /tools | |
| parent | 3451c25a75fb0cc0cfc613ea02bd39485047b477 (diff) | |
| parent | 12b0ee0a3e16c6db0e359fdc6cd8d23b54168789 (diff) | |
Merge pull request #4539 from Neradoc/add-alias-boards-to-support-matrix
add alias boards and modules to the support matrix
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__": |
