micropython-stubber 1.23.0__tar.gz → 1.23.1.post1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/PKG-INFO +32 -14
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/pyproject.toml +13 -13
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/readme.md +28 -11
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/README.md +40 -4
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/add_firmware.py +1 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/ask_input.py +1 -1
- {micropython_stubber-1.23.0/src/stubber → micropython_stubber-1.23.1.post1/src/mpflash/mpflash}/basicgit.py +3 -13
- micropython_stubber-1.23.1.post1/src/mpflash/mpflash/bootloader/__init__.py +2 -0
- micropython_stubber-1.23.1.post1/src/mpflash/mpflash/bootloader/activate.py +60 -0
- micropython_stubber-1.23.1.post1/src/mpflash/mpflash/bootloader/detect.py +82 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/bootloader/manual.py +10 -11
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/bootloader/micropython.py +2 -0
- micropython_stubber-1.23.1.post1/src/mpflash/mpflash/bootloader/touch1200.py +36 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/cli_download.py +2 -2
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/cli_flash.py +13 -16
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/cli_group.py +18 -5
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/cli_list.py +8 -2
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/cli_main.py +3 -5
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/common.py +3 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/config.py +2 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/connected.py +11 -8
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/download.py +9 -5
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/downloaded.py +1 -1
- micropython_stubber-1.23.0/src/mpflash/mpflash/flash.py → micropython_stubber-1.23.1.post1/src/mpflash/mpflash/flash/__init__.py +3 -3
- micropython_stubber-1.23.0/src/mpflash/mpflash/flash_esp.py → micropython_stubber-1.23.1.post1/src/mpflash/mpflash/flash/esp.py +1 -1
- micropython_stubber-1.23.0/src/mpflash/mpflash/flash_stm32.py → micropython_stubber-1.23.1.post1/src/mpflash/mpflash/flash/stm32.py +4 -3
- micropython_stubber-1.23.0/src/mpflash/mpflash/flash_stm32_dfu.py → micropython_stubber-1.23.1.post1/src/mpflash/mpflash/flash/stm32_dfu.py +1 -1
- micropython_stubber-1.23.0/src/mpflash/mpflash/flash_uf2.py → micropython_stubber-1.23.1.post1/src/mpflash/mpflash/flash/uf2/__init__.py +19 -20
- micropython_stubber-1.23.0/src/mpflash/mpflash/flash_uf2_linux.py → micropython_stubber-1.23.1.post1/src/mpflash/mpflash/flash/uf2/linux.py +12 -11
- micropython_stubber-1.23.0/src/mpflash/mpflash/flash_uf2_macos.py → micropython_stubber-1.23.1.post1/src/mpflash/mpflash/flash/uf2/macos.py +11 -6
- micropython_stubber-1.23.0/src/mpflash/mpflash/flash_uf2_windows.py → micropython_stubber-1.23.1.post1/src/mpflash/mpflash/flash/uf2/windows.py +11 -6
- {micropython_stubber-1.23.0/src/mpflash/mpflash → micropython_stubber-1.23.1.post1/src/mpflash/mpflash/flash}/worklist.py +8 -9
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/list.py +26 -9
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/mpboard_id/__init__.py +1 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/mpboard_id/add_boards.py +3 -7
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/mpboard_id/board_id.py +1 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/mpremoteboard/__init__.py +57 -17
- {micropython_stubber-1.23.0/src/stubber/utils → micropython_stubber-1.23.1.post1/src/mpflash/mpflash}/versions.py +31 -24
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/poetry.lock +16 -5
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/pyproject.toml +4 -3
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/__init__.py +1 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/board/createstubs.py +4 -4
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/board/createstubs_db.py +5 -5
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/board/createstubs_db_min.py +1 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/board/createstubs_db_mpy.mpy +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/board/createstubs_mem.py +5 -5
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/board/createstubs_mem_min.py +1 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/board/createstubs_mem_mpy.mpy +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/board/createstubs_min.py +1 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/board/createstubs_mpy.mpy +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/bulk/mcu_stubber.py +28 -45
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/codemod/enrich.py +1 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/codemod/merge_docstub.py +1 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/codemod/utils.py +2 -3
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/commands/build_cmd.py +1 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/commands/cli.py +6 -12
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/commands/clone_cmd.py +3 -2
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/commands/config_cmd.py +1 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/commands/enrich_folder_cmd.py +1 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/commands/get_core_cmd.py +1 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/commands/get_docstubs_cmd.py +6 -3
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/commands/get_frozen_cmd.py +6 -3
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/commands/get_mcu_cmd.py +53 -12
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/commands/merge_cmd.py +2 -3
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/commands/publish_cmd.py +2 -3
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/commands/stub_cmd.py +1 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/commands/switch_cmd.py +2 -2
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/commands/variants_cmd.py +2 -3
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/downloader.py +2 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/freeze/common.py +7 -3
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/freeze/freeze_folder.py +2 -2
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/freeze/freeze_manifest_2.py +19 -6
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/freeze/get_frozen.py +8 -4
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/get_cpython.py +15 -4
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/minify.py +11 -6
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/publish/candidates.py +20 -7
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/publish/defaults.py +4 -9
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/publish/merge_docstubs.py +4 -2
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/publish/missing_class_methods.py +5 -3
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/publish/package.py +8 -4
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/publish/pathnames.py +2 -2
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/publish/publish.py +2 -2
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/publish/pypi.py +6 -2
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/publish/stubpackage.py +39 -17
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/rst/classsort.py +2 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/rst/lookup.py +1 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/rst/reader.py +12 -20
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/rst/report_return.py +12 -4
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/rst/rst_utils.py +2 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/stubs_from_docs.py +1 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/tools/manifestfile.py +1 -2
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/update_fallback.py +2 -2
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/update_module_list.py +1 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/utils/__init__.py +2 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/utils/config.py +18 -8
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/utils/manifest.py +2 -4
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/utils/post.py +2 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/utils/repos.py +4 -5
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/utils/stubmaker.py +1 -1
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/utils/typed_config_toml.py +5 -2
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/variants.py +1 -1
- micropython_stubber-1.23.0/src/mpflash/mpflash/bootloader/__init__.py +0 -37
- micropython_stubber-1.23.0/src/mpflash/mpflash/bootloader/touch1200.py +0 -45
- micropython_stubber-1.23.0/src/mpflash/mpflash/flash_stm32_cube.py +0 -111
- micropython_stubber-1.23.0/src/mpflash/mpflash/vendor/versions.py +0 -119
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/LICENSE +0 -0
- {micropython_stubber-1.23.0/src/mpflash/mpflash/vendor → micropython_stubber-1.23.1.post1/src/mpflash}/basicgit.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/libusb_flash.ipynb +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/__init__.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/errors.py +0 -0
- /micropython_stubber-1.23.0/src/mpflash/mpflash/flash_uf2_boardid.py → /micropython_stubber-1.23.1.post1/src/mpflash/mpflash/flash/uf2/boardid.py +0 -0
- {micropython_stubber-1.23.0/src/mpflash/mpflash → micropython_stubber-1.23.1.post1/src/mpflash/mpflash/flash/uf2}/uf2disk.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/logger.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/mpboard_id/board.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/mpboard_id/board_info.zip +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/mpboard_id/store.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/mpremoteboard/mpy_fw_info.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/mpremoteboard/runner.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/vendor/click_aliases.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/vendor/dfu.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/vendor/pydfu.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/vendor/readme.md +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/stm32_udev_rules.md +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/board/board_info.csv +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/board/boot.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/board/createstubs_lvgl.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/board/createstubs_lvgl_min.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/board/createstubs_lvgl_mpy.mpy +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/board/fw_info.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/board/info.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/board/main.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/board/modulelist.txt +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/board/pyrightconfig.json +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/codemod/__init__.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/codemod/_partials/__init__.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/codemod/_partials/db_main.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/codemod/_partials/lvgl_main.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/codemod/_partials/modules_reader.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/codemod/add_comment.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/codemod/add_method.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/codemod/board.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/codemod/modify_list.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/commands/__init__.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/cst_transformer.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/data/board_info.csv +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/data/board_info.json +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/data/micropython_tags.csv +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/data/requirements-core-micropython.txt +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/data/requirements-core-pycopy.txt +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/freeze/__init__.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/get_lobo.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/publish/__init__.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/publish/bump.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/publish/database.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/publish/enums.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/publish/helpers.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/rst/__init__.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/rst/output_dict.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/stubber.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/tools/__init__.py +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/tools/readme.md +0 -0
- {micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/stubber/utils/makeversionhdr.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: micropython-stubber
|
3
|
-
Version: 1.23.
|
3
|
+
Version: 1.23.1.post1
|
4
4
|
Summary: Tooling to create and maintain stubs for MicroPython
|
5
5
|
Home-page: https://github.com/Josverl/micropython-stubber#readme
|
6
6
|
License: MIT
|
@@ -26,7 +26,7 @@ Requires-Dist: executing (>=2.0.1,<3.0.0)
|
|
26
26
|
Requires-Dist: importlib-metadata (>=1.0,<2.0) ; python_version < "3.8"
|
27
27
|
Requires-Dist: libcst (>=1.1.0,<2.0.0)
|
28
28
|
Requires-Dist: loguru (>=0.6,<0.8)
|
29
|
-
Requires-Dist: mpflash (>=0.
|
29
|
+
Requires-Dist: mpflash (>=1.0.0,<2.0.0)
|
30
30
|
Requires-Dist: mpremote (>=1.23.0,<2.0.0)
|
31
31
|
Requires-Dist: mypy (==1.9.0)
|
32
32
|
Requires-Dist: mypy-gitlab-code-quality (>=1.1.0,<2.0.0)
|
@@ -38,13 +38,14 @@ Requires-Dist: pyright (>=1.1.341,<2.0.0)
|
|
38
38
|
Requires-Dist: pyserial (>=3.5,<4.0)
|
39
39
|
Requires-Dist: pysondb-v2 (>=2.1.0,<3.0.0)
|
40
40
|
Requires-Dist: python-minifier (>=2.7.0,<3.0.0) ; python_version < "3.12"
|
41
|
-
Requires-Dist: requests (>=2.
|
41
|
+
Requires-Dist: requests (>=2.32.3,<3.0.0)
|
42
42
|
Requires-Dist: rich-click (>=1.8.3,<2.0.0)
|
43
43
|
Requires-Dist: tabulate (>=0.9.0,<0.10.0)
|
44
44
|
Requires-Dist: tenacity (>=8.2.2,<9.0.0)
|
45
45
|
Requires-Dist: tomli (>=2.0.1,<3.0.0) ; python_version < "3.11"
|
46
46
|
Requires-Dist: tomli-w (>=1.0.0,<2.0.0)
|
47
47
|
Requires-Dist: typed-config (>=1.3.0,<2.0.0)
|
48
|
+
Requires-Dist: urllib3 (>=2.2.2,<3.0.0)
|
48
49
|
Project-URL: Documentation, https://micropython-stubber.readthedocs.io/
|
49
50
|
Project-URL: Repository, https://github.com/Josverl/micropython-stubber
|
50
51
|
Description-Content-Type: text/markdown
|
@@ -171,7 +172,7 @@ for more info see [**Renaming a branch**](https://docs.github.com/en/repositorie
|
|
171
172
|
|
172
173
|
## Licensing
|
173
174
|
|
174
|
-
MicroPython-Stubber
|
175
|
+
Both `MicroPython-Stubber` and `mpflash` are licensed under the MIT license, and all contributions should follow this [LICENSE](LICENSE).
|
175
176
|
|
176
177
|
|
177
178
|
# Contributions
|
@@ -183,35 +184,52 @@ MicroPython-Stubber is licensed under the MIT license, and all contributions sho
|
|
183
184
|
<table>
|
184
185
|
<tbody>
|
185
186
|
<tr>
|
186
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Josverl"><img src="https://avatars2.githubusercontent.com/u/981654?v=4?s=100" width="100px;" alt="Jos Verlinde"/><br /><sub><b>Jos Verlinde</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/commits?author=josverl" title="Code">💻</a> <a href="#research-josverl" title="Research">🔬</a> <a href="#ideas-josverl" title="Ideas, Planning, & Feedback">🤔</a> <a href="#content-josverl" title="Content">🖋</a> <a href="#stubs-josverl" title="MicroPython stubs"
|
187
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Josverl"><img src="https://avatars2.githubusercontent.com/u/981654?v=4?s=100" width="100px;" alt="Jos Verlinde"/><br /><sub><b>Jos Verlinde</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/commits?author=josverl" title="Code">💻</a> <a href="#research-josverl" title="Research">🔬</a> <a href="#ideas-josverl" title="Ideas, Planning, & Feedback">🤔</a> <a href="#content-josverl" title="Content">🖋</a> <a href="#stubs-josverl" title="MicroPython stubs">🖍️</a> <a href="#test-josverl" title="Test">✅</a> <a href="#mpflash-josverl" title="mpflash">💥</a></td>
|
187
188
|
<td align="center" valign="top" width="14.28%"><a href="https://thonny.org/"><img src="https://avatars1.githubusercontent.com/u/46202078?v=4?s=100" width="100px;" alt="Thonny, Python IDE for beginners"/><br /><sub><b>Thonny, Python IDE for beginners</b></sub></a><br /><a href="#ideas-thonny" title="Ideas, Planning, & Feedback">🤔</a> <a href="#research-thonny" title="Research">🔬</a></td>
|
188
|
-
<td align="center" valign="top" width="14.28%"><a href="https://micropython.org/"><img src="https://avatars1.githubusercontent.com/u/6298560?v=4?s=100" width="100px;" alt="MicroPython"/><br /><sub><b>MicroPython</b></sub></a><br /><a href="#data-micropython" title="Data">🔣</a> <a href="#stubs-micropython" title="MicroPython stubs"
|
189
|
+
<td align="center" valign="top" width="14.28%"><a href="https://micropython.org/"><img src="https://avatars1.githubusercontent.com/u/6298560?v=4?s=100" width="100px;" alt="MicroPython"/><br /><sub><b>MicroPython</b></sub></a><br /><a href="#data-micropython" title="Data">🔣</a> <a href="#stubs-micropython" title="MicroPython stubs">🖍️</a></td>
|
189
190
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/microsoft/pyright"><img src="https://avatars.githubusercontent.com/u/6154722?v=4?s=100" width="100px;" alt="pyright"/><br /><sub><b>pyright</b></sub></a><br /><a href="#tool-pyright" title="Tools">🔧</a></td>
|
190
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/loboris"><img src="https://avatars3.githubusercontent.com/u/6280349?v=4?s=100" width="100px;" alt="Boris Lovosevic"/><br /><sub><b>Boris Lovosevic</b></sub></a><br /><a href="#data-loboris" title="Data">🔣</a> <a href="#stubs-loboris" title="MicroPython stubs"
|
191
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/pfalcon"><img src="https://avatars3.githubusercontent.com/u/500451?v=4?s=100" width="100px;" alt="Paul Sokolovsky"/><br /><sub><b>Paul Sokolovsky</b></sub></a><br /><a href="#data-pfalcon" title="Data">🔣</a> <a href="#stubs-pfalcon" title="MicroPython stubs"
|
192
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/pycopy"><img src="https://avatars0.githubusercontent.com/u/67273174?v=4?s=100" width="100px;" alt="pycopy"/><br /><sub><b>pycopy</b></sub></a><br /><a href="#data-pycopy" title="Data">🔣</a> <a href="#stubs-pycopy" title="MicroPython stubs"
|
191
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/loboris"><img src="https://avatars3.githubusercontent.com/u/6280349?v=4?s=100" width="100px;" alt="Boris Lovosevic"/><br /><sub><b>Boris Lovosevic</b></sub></a><br /><a href="#data-loboris" title="Data">🔣</a> <a href="#stubs-loboris" title="MicroPython stubs">🖍️</a></td>
|
192
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/pfalcon"><img src="https://avatars3.githubusercontent.com/u/500451?v=4?s=100" width="100px;" alt="Paul Sokolovsky"/><br /><sub><b>Paul Sokolovsky</b></sub></a><br /><a href="#data-pfalcon" title="Data">🔣</a> <a href="#stubs-pfalcon" title="MicroPython stubs">🖍️</a></td>
|
193
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/pycopy"><img src="https://avatars0.githubusercontent.com/u/67273174?v=4?s=100" width="100px;" alt="pycopy"/><br /><sub><b>pycopy</b></sub></a><br /><a href="#data-pycopy" title="Data">🔣</a> <a href="#stubs-pycopy" title="MicroPython stubs">🖍️</a></td>
|
193
194
|
</tr>
|
194
195
|
<tr>
|
195
196
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/pycom"><img src="https://avatars2.githubusercontent.com/u/16415153?v=4?s=100" width="100px;" alt="Pycom"/><br /><sub><b>Pycom</b></sub></a><br /><a href="#infra-pycom" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
|
196
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/BradenM"><img src="https://avatars1.githubusercontent.com/u/5913808?v=4?s=100" width="100px;" alt="Braden Mars"/><br /><sub><b>Braden Mars</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3ABradenM" title="Bug reports">🐛</a> <a href="https://github.com/Josverl/micropython-stubber/commits?author=BradenM" title="Code">💻</a> <a href="#stubs-BradenM" title="MicroPython stubs"
|
197
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/BradenM"><img src="https://avatars1.githubusercontent.com/u/5913808?v=4?s=100" width="100px;" alt="Braden Mars"/><br /><sub><b>Braden Mars</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3ABradenM" title="Bug reports">🐛</a> <a href="https://github.com/Josverl/micropython-stubber/commits?author=BradenM" title="Code">💻</a> <a href="#stubs-BradenM" title="MicroPython stubs">🖍️</a> <a href="#platform-BradenM" title="Packaging/porting to new platform">📦</a></td>
|
197
198
|
<td align="center" valign="top" width="14.28%"><a href="https://binary.com.au/"><img src="https://avatars2.githubusercontent.com/u/175909?v=4?s=100" width="100px;" alt="James Manners"/><br /><sub><b>James Manners</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/commits?author=jmannau" title="Code">💻</a> <a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3Ajmannau" title="Bug reports">🐛</a></td>
|
198
|
-
<td align="center" valign="top" width="14.28%"><a href="http://patrickwalters.us/"><img src="https://avatars0.githubusercontent.com/u/4002194?v=4?s=100" width="100px;" alt="Patrick"/><br /><sub><b>Patrick</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3Aaskpatrickw" title="Bug reports">🐛</a> <a href="https://github.com/Josverl/micropython-stubber/commits?author=askpatrickw" title="Code">💻</a> <a href="#stubs-askpatrickw" title="MicroPython stubs"
|
199
|
+
<td align="center" valign="top" width="14.28%"><a href="http://patrickwalters.us/"><img src="https://avatars0.githubusercontent.com/u/4002194?v=4?s=100" width="100px;" alt="Patrick"/><br /><sub><b>Patrick</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3Aaskpatrickw" title="Bug reports">🐛</a> <a href="https://github.com/Josverl/micropython-stubber/commits?author=askpatrickw" title="Code">💻</a> <a href="#stubs-askpatrickw" title="MicroPython stubs">🖍️</a></td>
|
199
200
|
<td align="center" valign="top" width="14.28%"><a href="https://opencollective.com/pythonseverywhere"><img src="https://avatars3.githubusercontent.com/u/16009100?v=4?s=100" width="100px;" alt="Paul m. p. P."/><br /><sub><b>Paul m. p. P.</b></sub></a><br /><a href="#ideas-pmp-p" title="Ideas, Planning, & Feedback">🤔</a> <a href="#research-pmp-p" title="Research">🔬</a></td>
|
200
201
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/edreamleo"><img src="https://avatars0.githubusercontent.com/u/592928?v=4?s=100" width="100px;" alt="Edward K. Ream"/><br /><sub><b>Edward K. Ream</b></sub></a><br /><a href="#plugin-edreamleo" title="Plugin/utility libraries">🔌</a></td>
|
201
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/dastultz"><img src="https://avatars3.githubusercontent.com/u/4334042?v=4?s=100" width="100px;" alt="Daryl Stultz"/><br /><sub><b>Daryl Stultz</b></sub></a><br /><a href="#stubs-dastultz" title="MicroPython stubs"
|
202
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/dastultz"><img src="https://avatars3.githubusercontent.com/u/4334042?v=4?s=100" width="100px;" alt="Daryl Stultz"/><br /><sub><b>Daryl Stultz</b></sub></a><br /><a href="#stubs-dastultz" title="MicroPython stubs">🖍️</a></td>
|
202
203
|
</tr>
|
203
204
|
<tr>
|
204
205
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/cabletie"><img src="https://avatars1.githubusercontent.com/u/2356734?v=4?s=100" width="100px;" alt="Keeping things together"/><br /><sub><b>Keeping things together</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3Acabletie" title="Bug reports">🐛</a></td>
|
205
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/vbolshakov"><img src="https://avatars2.githubusercontent.com/u/2453324?v=4?s=100" width="100px;" alt="vbolshakov"/><br /><sub><b>vbolshakov</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3Avbolshakov" title="Bug reports">🐛</a> <a href="#stubs-vbolshakov" title="MicroPython stubs"
|
206
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/vbolshakov"><img src="https://avatars2.githubusercontent.com/u/2453324?v=4?s=100" width="100px;" alt="vbolshakov"/><br /><sub><b>vbolshakov</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3Avbolshakov" title="Bug reports">🐛</a> <a href="#stubs-vbolshakov" title="MicroPython stubs">🖍️</a></td>
|
206
207
|
<td align="center" valign="top" width="14.28%"><a href="https://lemariva.com/"><img src="https://avatars2.githubusercontent.com/u/15173329?v=4?s=100" width="100px;" alt="Mauro Riva"/><br /><sub><b>Mauro Riva</b></sub></a><br /><a href="#blog-lemariva" title="Blogposts">📝</a> <a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3Alemariva" title="Bug reports">🐛</a></td>
|
207
208
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/MathijsNL"><img src="https://avatars0.githubusercontent.com/u/1612886?v=4?s=100" width="100px;" alt="MathijsNL"/><br /><sub><b>MathijsNL</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3AMathijsNL" title="Bug reports">🐛</a></td>
|
208
|
-
<td align="center" valign="top" width="14.28%"><a href="http://comingsoon.tm/"><img src="https://avatars0.githubusercontent.com/u/13251689?v=4?s=100" width="100px;" alt="Callum Jacob Hays"/><br /><sub><b>Callum Jacob Hays</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3ACallumJHays" title="Bug reports">🐛</a> <a href="#test-CallumJHays" title="Test"
|
209
|
+
<td align="center" valign="top" width="14.28%"><a href="http://comingsoon.tm/"><img src="https://avatars0.githubusercontent.com/u/13251689?v=4?s=100" width="100px;" alt="Callum Jacob Hays"/><br /><sub><b>Callum Jacob Hays</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3ACallumJHays" title="Bug reports">🐛</a> <a href="#test-CallumJHays" title="Test">✅</a></td>
|
209
210
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/v923z"><img src="https://avatars0.githubusercontent.com/u/1310472?v=4?s=100" width="100px;" alt="Zoltán Vörös"/><br /><sub><b>Zoltán Vörös</b></sub></a><br /><a href="#data-v923z" title="Data">🔣</a></td>
|
210
211
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/vincent-l-j"><img src="https://avatars.githubusercontent.com/u/20021376?v=4?s=100" width="100px;" alt="vincent-l-j"/><br /><sub><b>vincent-l-j</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/commits?author=vincent-l-j" title="Documentation">📖</a></td>
|
211
212
|
</tr>
|
212
213
|
<tr>
|
213
214
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/yegorLitvinov"><img src="https://avatars.githubusercontent.com/u/20367310?v=4?s=100" width="100px;" alt="Egor Litvinov"/><br /><sub><b>Egor Litvinov</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3AyegorLitvinov" title="Bug reports">🐛</a></td>
|
214
215
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/samskiter"><img src="https://avatars.githubusercontent.com/u/1271643?v=4?s=100" width="100px;" alt="Sam Duke"/><br /><sub><b>Sam Duke</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/commits?author=samskiter" title="Code">💻</a></td>
|
216
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/shariltumin"><img src="https://avatars.githubusercontent.com/u/186120?v=4?s=100" width="100px;" alt="shariltumin"/><br /><sub><b>shariltumin</b></sub></a><br /><a href="#mpflash-shariltumin" title="mpflash">💥</a> <a href="#test-shariltumin" title="Test">✅</a></td>
|
217
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/mattytrentini"><img src="https://avatars.githubusercontent.com/u/194201?v=4?s=100" width="100px;" alt="Matt Trentini"/><br /><sub><b>Matt Trentini</b></sub></a><br /><a href="#mpflash-mattytrentini" title="mpflash">💥</a> <a href="#test-mattytrentini" title="Test">✅</a></td>
|
218
|
+
<td align="center" valign="top" width="14.28%"><a href="http://scruss.com/blog/"><img src="https://avatars.githubusercontent.com/u/425706?v=4?s=100" width="100px;" alt="Stewart Russell"/><br /><sub><b>Stewart Russell</b></sub></a><br /><a href="#mpflash-scruss" title="mpflash">💥</a> <a href="#test-scruss" title="Test">✅</a></td>
|
219
|
+
<td align="center" valign="top" width="14.28%"><a href="https://www.gitlab.com/alelec"><img src="https://avatars.githubusercontent.com/u/3318786?v=4?s=100" width="100px;" alt="Andrew Leech"/><br /><sub><b>Andrew Leech</b></sub></a><br /><a href="#mpflash-andrewleech" title="mpflash">💥</a> <a href="#test-andrewleech" title="Test">✅</a></td>
|
220
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/wovo"><img src="https://avatars.githubusercontent.com/u/9039468?v=4?s=100" width="100px;" alt="Wouter van Ooijen"/><br /><sub><b>Wouter van Ooijen</b></sub></a><br /><a href="#mpflash-wovo" title="mpflash">💥</a> <a href="#test-wovo" title="Test">✅</a></td>
|
221
|
+
</tr>
|
222
|
+
<tr>
|
223
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/shaneapowell"><img src="https://avatars.githubusercontent.com/u/12113620?v=4?s=100" width="100px;" alt="Shane Powell"/><br /><sub><b>Shane Powell</b></sub></a><br /><a href="#mpflash-shaneapowell" title="mpflash">💥</a> <a href="#test-shaneapowell" title="Test">✅</a></td>
|
224
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/robert-hh"><img src="https://avatars.githubusercontent.com/u/12476868?v=4?s=100" width="100px;" alt="Robert Hammelrath"/><br /><sub><b>Robert Hammelrath</b></sub></a><br /><a href="#mpflash-robert-hh" title="mpflash">💥</a> <a href="#test-robert-hh" title="Test">✅</a></td>
|
225
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/beetlegigg"><img src="https://avatars.githubusercontent.com/u/34552737?v=4?s=100" width="100px;" alt="Bg"/><br /><sub><b>Bg</b></sub></a><br /><a href="#mpflash-beetlegigg" title="mpflash">💥</a> <a href="#test-beetlegigg" title="Test">✅</a></td>
|
226
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/rkompass"><img src="https://avatars.githubusercontent.com/u/90282516?v=4?s=100" width="100px;" alt="Raul Kompaß"/><br /><sub><b>Raul Kompaß</b></sub></a><br /><a href="#mpflash-rkompass" title="mpflash">💥</a> <a href="#test-rkompass" title="Test">✅</a></td>
|
227
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/garryp4"><img src="https://avatars.githubusercontent.com/u/96994876?v=4?s=100" width="100px;" alt="garryp4"/><br /><sub><b>garryp4</b></sub></a><br /><a href="#mpflash-garryp4" title="mpflash">💥</a> <a href="#test-garryp4" title="Test">✅</a></td>
|
228
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/shanepowell-ast"><img src="https://avatars.githubusercontent.com/u/102747617?v=4?s=100" width="100px;" alt="Shane Powell"/><br /><sub><b>Shane Powell</b></sub></a><br /><a href="#mpflash-shanepowell-ast" title="mpflash">💥</a> <a href="#test-shanepowell-ast" title="Test">✅</a></td>
|
229
|
+
<td align="center" valign="top" width="14.28%"><a href="https://andypiper.org/"><img src="https://avatars.githubusercontent.com/u/552452?v=4?s=100" width="100px;" alt="Andy Piper"/><br /><sub><b>Andy Piper</b></sub></a><br /><a href="#mpflash-andypiper" title="mpflash">💥</a> <a href="#test-andypiper" title="Test">✅</a></td>
|
230
|
+
</tr>
|
231
|
+
<tr>
|
232
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/DavesCodeMusings"><img src="https://avatars.githubusercontent.com/u/61114342?v=4?s=100" width="100px;" alt="David Horton"/><br /><sub><b>David Horton</b></sub></a><br /><a href="#mpflash-DavesCodeMusings" title="mpflash">💥</a> <a href="#test-DavesCodeMusings" title="Test">✅</a></td>
|
215
233
|
</tr>
|
216
234
|
</tbody>
|
217
235
|
</table>
|
@@ -8,7 +8,7 @@ repo-path = "./repos"
|
|
8
8
|
|
9
9
|
[tool.poetry]
|
10
10
|
name = "micropython-stubber"
|
11
|
-
version = "1.23.
|
11
|
+
version = "1.23.1post1"
|
12
12
|
description = "Tooling to create and maintain stubs for MicroPython"
|
13
13
|
authors = ["Jos Verlinde <jos_verlinde@hotmail.com>"]
|
14
14
|
license = "MIT"
|
@@ -43,13 +43,15 @@ exclude = [
|
|
43
43
|
|
44
44
|
[tool.poetry.scripts]
|
45
45
|
stubber = "stubber.stubber:stubber_cli"
|
46
|
+
mpflash = "mpflash.cli_main:mpflash"
|
47
|
+
mpremote = "mpremote.main:main"
|
46
48
|
|
47
49
|
[tool.poetry.dependencies]
|
48
50
|
python = ">=3.9,<4.0"
|
49
51
|
python-minifier = { version = "^2.7.0", python = "<3.12" } # no support for 3.12 yet
|
50
|
-
requests = "^2.
|
52
|
+
requests = "^2.32.3"
|
51
53
|
mypy = "1.9.0"
|
52
|
-
mpflash = "^0.
|
54
|
+
mpflash = "^1.0.0"
|
53
55
|
mpremote = "^1.23.0"
|
54
56
|
# others
|
55
57
|
autoflake = ">=1.7,<3.0"
|
@@ -74,6 +76,7 @@ tenacity = "^8.2.2"
|
|
74
76
|
tomli = { version = "^2.0.1", python = "<3.11" }
|
75
77
|
tomli-w = "^1.0.0"
|
76
78
|
typed-config = "^1.3.0"
|
79
|
+
urllib3 = "^2.2.2"
|
77
80
|
|
78
81
|
[tool.poetry.group.docs]
|
79
82
|
optional = true
|
@@ -142,7 +145,7 @@ exclude = [
|
|
142
145
|
|
143
146
|
"**/all-stubs",
|
144
147
|
"src/stubber/board/stubs",
|
145
|
-
"**/.venv"
|
148
|
+
"**/.venv",
|
146
149
|
]
|
147
150
|
ignore = [
|
148
151
|
"tests/mocks",
|
@@ -220,12 +223,12 @@ minversion = "7.0"
|
|
220
223
|
python_functions = ["test_", "*_test"]
|
221
224
|
python_files = ["test_*.py", "*_test.py"]
|
222
225
|
testpaths = [
|
223
|
-
"tests",
|
224
|
-
"src/stubber",
|
225
|
-
"src/mpflash",
|
226
|
-
"repos/micropython-stubs/tests",
|
226
|
+
"tests",
|
227
|
+
"src/stubber",
|
228
|
+
"src/mpflash",
|
229
|
+
"repos/micropython-stubs/tests",
|
227
230
|
"modules/**/tests",
|
228
|
-
|
231
|
+
]
|
229
232
|
norecursedirs = [
|
230
233
|
".*",
|
231
234
|
".*/*",
|
@@ -277,10 +280,7 @@ markers = [
|
|
277
280
|
[tool.coverage.run]
|
278
281
|
parallel = false
|
279
282
|
branch = true
|
280
|
-
source = [
|
281
|
-
"src/stubber",
|
282
|
-
"src/mpflash",
|
283
|
-
]
|
283
|
+
source = ["src/stubber", "src/mpflash"]
|
284
284
|
omit = [
|
285
285
|
# helper files in board
|
286
286
|
"*/boot.py",
|
@@ -120,7 +120,7 @@ for more info see [**Renaming a branch**](https://docs.github.com/en/repositorie
|
|
120
120
|
|
121
121
|
## Licensing
|
122
122
|
|
123
|
-
MicroPython-Stubber
|
123
|
+
Both `MicroPython-Stubber` and `mpflash` are licensed under the MIT license, and all contributions should follow this [LICENSE](LICENSE).
|
124
124
|
|
125
125
|
|
126
126
|
# Contributions
|
@@ -132,35 +132,52 @@ MicroPython-Stubber is licensed under the MIT license, and all contributions sho
|
|
132
132
|
<table>
|
133
133
|
<tbody>
|
134
134
|
<tr>
|
135
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Josverl"><img src="https://avatars2.githubusercontent.com/u/981654?v=4?s=100" width="100px;" alt="Jos Verlinde"/><br /><sub><b>Jos Verlinde</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/commits?author=josverl" title="Code">💻</a> <a href="#research-josverl" title="Research">🔬</a> <a href="#ideas-josverl" title="Ideas, Planning, & Feedback">🤔</a> <a href="#content-josverl" title="Content">🖋</a> <a href="#stubs-josverl" title="MicroPython stubs"
|
135
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Josverl"><img src="https://avatars2.githubusercontent.com/u/981654?v=4?s=100" width="100px;" alt="Jos Verlinde"/><br /><sub><b>Jos Verlinde</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/commits?author=josverl" title="Code">💻</a> <a href="#research-josverl" title="Research">🔬</a> <a href="#ideas-josverl" title="Ideas, Planning, & Feedback">🤔</a> <a href="#content-josverl" title="Content">🖋</a> <a href="#stubs-josverl" title="MicroPython stubs">🖍️</a> <a href="#test-josverl" title="Test">✅</a> <a href="#mpflash-josverl" title="mpflash">💥</a></td>
|
136
136
|
<td align="center" valign="top" width="14.28%"><a href="https://thonny.org/"><img src="https://avatars1.githubusercontent.com/u/46202078?v=4?s=100" width="100px;" alt="Thonny, Python IDE for beginners"/><br /><sub><b>Thonny, Python IDE for beginners</b></sub></a><br /><a href="#ideas-thonny" title="Ideas, Planning, & Feedback">🤔</a> <a href="#research-thonny" title="Research">🔬</a></td>
|
137
|
-
<td align="center" valign="top" width="14.28%"><a href="https://micropython.org/"><img src="https://avatars1.githubusercontent.com/u/6298560?v=4?s=100" width="100px;" alt="MicroPython"/><br /><sub><b>MicroPython</b></sub></a><br /><a href="#data-micropython" title="Data">🔣</a> <a href="#stubs-micropython" title="MicroPython stubs"
|
137
|
+
<td align="center" valign="top" width="14.28%"><a href="https://micropython.org/"><img src="https://avatars1.githubusercontent.com/u/6298560?v=4?s=100" width="100px;" alt="MicroPython"/><br /><sub><b>MicroPython</b></sub></a><br /><a href="#data-micropython" title="Data">🔣</a> <a href="#stubs-micropython" title="MicroPython stubs">🖍️</a></td>
|
138
138
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/microsoft/pyright"><img src="https://avatars.githubusercontent.com/u/6154722?v=4?s=100" width="100px;" alt="pyright"/><br /><sub><b>pyright</b></sub></a><br /><a href="#tool-pyright" title="Tools">🔧</a></td>
|
139
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/loboris"><img src="https://avatars3.githubusercontent.com/u/6280349?v=4?s=100" width="100px;" alt="Boris Lovosevic"/><br /><sub><b>Boris Lovosevic</b></sub></a><br /><a href="#data-loboris" title="Data">🔣</a> <a href="#stubs-loboris" title="MicroPython stubs"
|
140
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/pfalcon"><img src="https://avatars3.githubusercontent.com/u/500451?v=4?s=100" width="100px;" alt="Paul Sokolovsky"/><br /><sub><b>Paul Sokolovsky</b></sub></a><br /><a href="#data-pfalcon" title="Data">🔣</a> <a href="#stubs-pfalcon" title="MicroPython stubs"
|
141
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/pycopy"><img src="https://avatars0.githubusercontent.com/u/67273174?v=4?s=100" width="100px;" alt="pycopy"/><br /><sub><b>pycopy</b></sub></a><br /><a href="#data-pycopy" title="Data">🔣</a> <a href="#stubs-pycopy" title="MicroPython stubs"
|
139
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/loboris"><img src="https://avatars3.githubusercontent.com/u/6280349?v=4?s=100" width="100px;" alt="Boris Lovosevic"/><br /><sub><b>Boris Lovosevic</b></sub></a><br /><a href="#data-loboris" title="Data">🔣</a> <a href="#stubs-loboris" title="MicroPython stubs">🖍️</a></td>
|
140
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/pfalcon"><img src="https://avatars3.githubusercontent.com/u/500451?v=4?s=100" width="100px;" alt="Paul Sokolovsky"/><br /><sub><b>Paul Sokolovsky</b></sub></a><br /><a href="#data-pfalcon" title="Data">🔣</a> <a href="#stubs-pfalcon" title="MicroPython stubs">🖍️</a></td>
|
141
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/pycopy"><img src="https://avatars0.githubusercontent.com/u/67273174?v=4?s=100" width="100px;" alt="pycopy"/><br /><sub><b>pycopy</b></sub></a><br /><a href="#data-pycopy" title="Data">🔣</a> <a href="#stubs-pycopy" title="MicroPython stubs">🖍️</a></td>
|
142
142
|
</tr>
|
143
143
|
<tr>
|
144
144
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/pycom"><img src="https://avatars2.githubusercontent.com/u/16415153?v=4?s=100" width="100px;" alt="Pycom"/><br /><sub><b>Pycom</b></sub></a><br /><a href="#infra-pycom" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
|
145
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/BradenM"><img src="https://avatars1.githubusercontent.com/u/5913808?v=4?s=100" width="100px;" alt="Braden Mars"/><br /><sub><b>Braden Mars</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3ABradenM" title="Bug reports">🐛</a> <a href="https://github.com/Josverl/micropython-stubber/commits?author=BradenM" title="Code">💻</a> <a href="#stubs-BradenM" title="MicroPython stubs"
|
145
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/BradenM"><img src="https://avatars1.githubusercontent.com/u/5913808?v=4?s=100" width="100px;" alt="Braden Mars"/><br /><sub><b>Braden Mars</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3ABradenM" title="Bug reports">🐛</a> <a href="https://github.com/Josverl/micropython-stubber/commits?author=BradenM" title="Code">💻</a> <a href="#stubs-BradenM" title="MicroPython stubs">🖍️</a> <a href="#platform-BradenM" title="Packaging/porting to new platform">📦</a></td>
|
146
146
|
<td align="center" valign="top" width="14.28%"><a href="https://binary.com.au/"><img src="https://avatars2.githubusercontent.com/u/175909?v=4?s=100" width="100px;" alt="James Manners"/><br /><sub><b>James Manners</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/commits?author=jmannau" title="Code">💻</a> <a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3Ajmannau" title="Bug reports">🐛</a></td>
|
147
|
-
<td align="center" valign="top" width="14.28%"><a href="http://patrickwalters.us/"><img src="https://avatars0.githubusercontent.com/u/4002194?v=4?s=100" width="100px;" alt="Patrick"/><br /><sub><b>Patrick</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3Aaskpatrickw" title="Bug reports">🐛</a> <a href="https://github.com/Josverl/micropython-stubber/commits?author=askpatrickw" title="Code">💻</a> <a href="#stubs-askpatrickw" title="MicroPython stubs"
|
147
|
+
<td align="center" valign="top" width="14.28%"><a href="http://patrickwalters.us/"><img src="https://avatars0.githubusercontent.com/u/4002194?v=4?s=100" width="100px;" alt="Patrick"/><br /><sub><b>Patrick</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3Aaskpatrickw" title="Bug reports">🐛</a> <a href="https://github.com/Josverl/micropython-stubber/commits?author=askpatrickw" title="Code">💻</a> <a href="#stubs-askpatrickw" title="MicroPython stubs">🖍️</a></td>
|
148
148
|
<td align="center" valign="top" width="14.28%"><a href="https://opencollective.com/pythonseverywhere"><img src="https://avatars3.githubusercontent.com/u/16009100?v=4?s=100" width="100px;" alt="Paul m. p. P."/><br /><sub><b>Paul m. p. P.</b></sub></a><br /><a href="#ideas-pmp-p" title="Ideas, Planning, & Feedback">🤔</a> <a href="#research-pmp-p" title="Research">🔬</a></td>
|
149
149
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/edreamleo"><img src="https://avatars0.githubusercontent.com/u/592928?v=4?s=100" width="100px;" alt="Edward K. Ream"/><br /><sub><b>Edward K. Ream</b></sub></a><br /><a href="#plugin-edreamleo" title="Plugin/utility libraries">🔌</a></td>
|
150
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/dastultz"><img src="https://avatars3.githubusercontent.com/u/4334042?v=4?s=100" width="100px;" alt="Daryl Stultz"/><br /><sub><b>Daryl Stultz</b></sub></a><br /><a href="#stubs-dastultz" title="MicroPython stubs"
|
150
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/dastultz"><img src="https://avatars3.githubusercontent.com/u/4334042?v=4?s=100" width="100px;" alt="Daryl Stultz"/><br /><sub><b>Daryl Stultz</b></sub></a><br /><a href="#stubs-dastultz" title="MicroPython stubs">🖍️</a></td>
|
151
151
|
</tr>
|
152
152
|
<tr>
|
153
153
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/cabletie"><img src="https://avatars1.githubusercontent.com/u/2356734?v=4?s=100" width="100px;" alt="Keeping things together"/><br /><sub><b>Keeping things together</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3Acabletie" title="Bug reports">🐛</a></td>
|
154
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/vbolshakov"><img src="https://avatars2.githubusercontent.com/u/2453324?v=4?s=100" width="100px;" alt="vbolshakov"/><br /><sub><b>vbolshakov</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3Avbolshakov" title="Bug reports">🐛</a> <a href="#stubs-vbolshakov" title="MicroPython stubs"
|
154
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/vbolshakov"><img src="https://avatars2.githubusercontent.com/u/2453324?v=4?s=100" width="100px;" alt="vbolshakov"/><br /><sub><b>vbolshakov</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3Avbolshakov" title="Bug reports">🐛</a> <a href="#stubs-vbolshakov" title="MicroPython stubs">🖍️</a></td>
|
155
155
|
<td align="center" valign="top" width="14.28%"><a href="https://lemariva.com/"><img src="https://avatars2.githubusercontent.com/u/15173329?v=4?s=100" width="100px;" alt="Mauro Riva"/><br /><sub><b>Mauro Riva</b></sub></a><br /><a href="#blog-lemariva" title="Blogposts">📝</a> <a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3Alemariva" title="Bug reports">🐛</a></td>
|
156
156
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/MathijsNL"><img src="https://avatars0.githubusercontent.com/u/1612886?v=4?s=100" width="100px;" alt="MathijsNL"/><br /><sub><b>MathijsNL</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3AMathijsNL" title="Bug reports">🐛</a></td>
|
157
|
-
<td align="center" valign="top" width="14.28%"><a href="http://comingsoon.tm/"><img src="https://avatars0.githubusercontent.com/u/13251689?v=4?s=100" width="100px;" alt="Callum Jacob Hays"/><br /><sub><b>Callum Jacob Hays</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3ACallumJHays" title="Bug reports">🐛</a> <a href="#test-CallumJHays" title="Test"
|
157
|
+
<td align="center" valign="top" width="14.28%"><a href="http://comingsoon.tm/"><img src="https://avatars0.githubusercontent.com/u/13251689?v=4?s=100" width="100px;" alt="Callum Jacob Hays"/><br /><sub><b>Callum Jacob Hays</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3ACallumJHays" title="Bug reports">🐛</a> <a href="#test-CallumJHays" title="Test">✅</a></td>
|
158
158
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/v923z"><img src="https://avatars0.githubusercontent.com/u/1310472?v=4?s=100" width="100px;" alt="Zoltán Vörös"/><br /><sub><b>Zoltán Vörös</b></sub></a><br /><a href="#data-v923z" title="Data">🔣</a></td>
|
159
159
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/vincent-l-j"><img src="https://avatars.githubusercontent.com/u/20021376?v=4?s=100" width="100px;" alt="vincent-l-j"/><br /><sub><b>vincent-l-j</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/commits?author=vincent-l-j" title="Documentation">📖</a></td>
|
160
160
|
</tr>
|
161
161
|
<tr>
|
162
162
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/yegorLitvinov"><img src="https://avatars.githubusercontent.com/u/20367310?v=4?s=100" width="100px;" alt="Egor Litvinov"/><br /><sub><b>Egor Litvinov</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3AyegorLitvinov" title="Bug reports">🐛</a></td>
|
163
163
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/samskiter"><img src="https://avatars.githubusercontent.com/u/1271643?v=4?s=100" width="100px;" alt="Sam Duke"/><br /><sub><b>Sam Duke</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/commits?author=samskiter" title="Code">💻</a></td>
|
164
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/shariltumin"><img src="https://avatars.githubusercontent.com/u/186120?v=4?s=100" width="100px;" alt="shariltumin"/><br /><sub><b>shariltumin</b></sub></a><br /><a href="#mpflash-shariltumin" title="mpflash">💥</a> <a href="#test-shariltumin" title="Test">✅</a></td>
|
165
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/mattytrentini"><img src="https://avatars.githubusercontent.com/u/194201?v=4?s=100" width="100px;" alt="Matt Trentini"/><br /><sub><b>Matt Trentini</b></sub></a><br /><a href="#mpflash-mattytrentini" title="mpflash">💥</a> <a href="#test-mattytrentini" title="Test">✅</a></td>
|
166
|
+
<td align="center" valign="top" width="14.28%"><a href="http://scruss.com/blog/"><img src="https://avatars.githubusercontent.com/u/425706?v=4?s=100" width="100px;" alt="Stewart Russell"/><br /><sub><b>Stewart Russell</b></sub></a><br /><a href="#mpflash-scruss" title="mpflash">💥</a> <a href="#test-scruss" title="Test">✅</a></td>
|
167
|
+
<td align="center" valign="top" width="14.28%"><a href="https://www.gitlab.com/alelec"><img src="https://avatars.githubusercontent.com/u/3318786?v=4?s=100" width="100px;" alt="Andrew Leech"/><br /><sub><b>Andrew Leech</b></sub></a><br /><a href="#mpflash-andrewleech" title="mpflash">💥</a> <a href="#test-andrewleech" title="Test">✅</a></td>
|
168
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/wovo"><img src="https://avatars.githubusercontent.com/u/9039468?v=4?s=100" width="100px;" alt="Wouter van Ooijen"/><br /><sub><b>Wouter van Ooijen</b></sub></a><br /><a href="#mpflash-wovo" title="mpflash">💥</a> <a href="#test-wovo" title="Test">✅</a></td>
|
169
|
+
</tr>
|
170
|
+
<tr>
|
171
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/shaneapowell"><img src="https://avatars.githubusercontent.com/u/12113620?v=4?s=100" width="100px;" alt="Shane Powell"/><br /><sub><b>Shane Powell</b></sub></a><br /><a href="#mpflash-shaneapowell" title="mpflash">💥</a> <a href="#test-shaneapowell" title="Test">✅</a></td>
|
172
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/robert-hh"><img src="https://avatars.githubusercontent.com/u/12476868?v=4?s=100" width="100px;" alt="Robert Hammelrath"/><br /><sub><b>Robert Hammelrath</b></sub></a><br /><a href="#mpflash-robert-hh" title="mpflash">💥</a> <a href="#test-robert-hh" title="Test">✅</a></td>
|
173
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/beetlegigg"><img src="https://avatars.githubusercontent.com/u/34552737?v=4?s=100" width="100px;" alt="Bg"/><br /><sub><b>Bg</b></sub></a><br /><a href="#mpflash-beetlegigg" title="mpflash">💥</a> <a href="#test-beetlegigg" title="Test">✅</a></td>
|
174
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/rkompass"><img src="https://avatars.githubusercontent.com/u/90282516?v=4?s=100" width="100px;" alt="Raul Kompaß"/><br /><sub><b>Raul Kompaß</b></sub></a><br /><a href="#mpflash-rkompass" title="mpflash">💥</a> <a href="#test-rkompass" title="Test">✅</a></td>
|
175
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/garryp4"><img src="https://avatars.githubusercontent.com/u/96994876?v=4?s=100" width="100px;" alt="garryp4"/><br /><sub><b>garryp4</b></sub></a><br /><a href="#mpflash-garryp4" title="mpflash">💥</a> <a href="#test-garryp4" title="Test">✅</a></td>
|
176
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/shanepowell-ast"><img src="https://avatars.githubusercontent.com/u/102747617?v=4?s=100" width="100px;" alt="Shane Powell"/><br /><sub><b>Shane Powell</b></sub></a><br /><a href="#mpflash-shanepowell-ast" title="mpflash">💥</a> <a href="#test-shanepowell-ast" title="Test">✅</a></td>
|
177
|
+
<td align="center" valign="top" width="14.28%"><a href="https://andypiper.org/"><img src="https://avatars.githubusercontent.com/u/552452?v=4?s=100" width="100px;" alt="Andy Piper"/><br /><sub><b>Andy Piper</b></sub></a><br /><a href="#mpflash-andypiper" title="mpflash">💥</a> <a href="#test-andypiper" title="Test">✅</a></td>
|
178
|
+
</tr>
|
179
|
+
<tr>
|
180
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/DavesCodeMusings"><img src="https://avatars.githubusercontent.com/u/61114342?v=4?s=100" width="100px;" alt="David Horton"/><br /><sub><b>David Horton</b></sub></a><br /><a href="#mpflash-DavesCodeMusings" title="mpflash">💥</a> <a href="#test-DavesCodeMusings" title="Test">✅</a></td>
|
164
181
|
</tr>
|
165
182
|
</tbody>
|
166
183
|
</table>
|
@@ -11,8 +11,8 @@ This tool was initially created to be used in a CI/CD pipeline to automate the p
|
|
11
11
|
`mpflash` has been tested on:
|
12
12
|
- OS: Windows x64, Linux X64, but not (yet) macOS.
|
13
13
|
- Micropython (hardware) ports:
|
14
|
-
- `rp2`, using `.uf2`, using filecopy
|
15
|
-
- `samd`, using ` .uf2`, using filecopy
|
14
|
+
- `rp2`, using `.uf2`, using filecopy
|
15
|
+
- `samd`, using ` .uf2`, using filecopy
|
16
16
|
- `esp32`, using `.bin`, using esptool,
|
17
17
|
- `esp8266`, using `.bin`, using esptool
|
18
18
|
- `stm32`, using ` .dfu`, using pydfu
|
@@ -25,7 +25,7 @@ Not yet implemented: `nrf`, `cc3200`, `mimxrt`
|
|
25
25
|
3. Flash one or all connected MicroPython boards with a specific firmware or version.
|
26
26
|
|
27
27
|
## Installation
|
28
|
-
To install mpflash, you can use
|
28
|
+
To install mpflash, you can use: `pipx install mpflash` or `pip install mpflash`
|
29
29
|
|
30
30
|
## Basic usage
|
31
31
|
You can use mpflash to perform various operations on your MicroPython boards. Here is an example of basic usage:
|
@@ -36,6 +36,32 @@ You can use mpflash to perform various operations on your MicroPython boards. He
|
|
36
36
|
| `mpflash download` | Download the MicroPython firmware(s) for the connected board(s) |
|
37
37
|
| `mpflash flash` | Flash the latest stable firmware to the connected board(s) |
|
38
38
|
|
39
|
+
## selecting or ignoring specific serial ports
|
40
|
+
|
41
|
+
You can use the `--serial` option to select a specific serial port to flash, or the `--ignore` option to ignore a specific serial port.
|
42
|
+
both options can be specified multiple times
|
43
|
+
Both can be globs (e.g. COM*) or exact port names (e.g. COM1)
|
44
|
+
in addition there is a --bluetooth option to simplify ignoring bluetooth ports
|
45
|
+
|
46
|
+
```
|
47
|
+
--serial,--serial-port -s SERIALPORT Serial port(s) (or globs) to list. [default: *] > > --ignore -i SERIALPORT Serial port(s) (or globs) to ignore. Defaults to MPFLASH_IGNORE. │
|
48
|
+
--bluetooth/--no-bluetooth -b/-nb Include bluetooth ports in the list [default: no-bluetooth]
|
49
|
+
```
|
50
|
+
|
51
|
+
## Distinguishing similar boards
|
52
|
+
The `mpflash list` command will list all connected boards, but sometimes you have multiple boards of the same type connected.
|
53
|
+
To help you identify the boards, you can add a board_info.toml file to the top/default folder for the board.
|
54
|
+
This file can contain a description of the board, which will be shown in the list and json output.
|
55
|
+
```toml
|
56
|
+
description = "Blue Norwegian actuator"
|
57
|
+
```
|
58
|
+
|
59
|
+
If you want the board to be ignored by mpflash, you can add the following to the board_info.toml file:
|
60
|
+
```toml
|
61
|
+
[mpflash]
|
62
|
+
ignore = true
|
63
|
+
```
|
64
|
+
|
39
65
|
|
40
66
|
## Linux permissions to access usb devices
|
41
67
|
In order to flash the firmware to the board, you need to have the correct permissions to access the USB devices.
|
@@ -69,7 +95,7 @@ To download the MicroPython firmware for some boards, use the following command:
|
|
69
95
|
|
70
96
|
These will try to download the prebuilt MicroPython firmware for the boards from https://micropython.org/download/ and save it in your downloads folder in the `firmware` directory.
|
71
97
|
The stable version (default) is determined based on the most recent published release,
|
72
|
-
other
|
98
|
+
other options are `--version stable`, `--version preview` and `--version x.y.z` to download the latest stable, preview or version x.y.z respectively.
|
73
99
|
|
74
100
|
By default the firmware will be downloaded to your OS's preferred `Downloads/firmware` folder, but you can speciy a different directory using the `--dir` option.
|
75
101
|
|
@@ -92,8 +118,18 @@ After you have downloaded a firmware you can flash the firmware to a board usin
|
|
92
118
|
This will (try to) autodetect the connected boards, and determine the correct firmware to flash to each board.
|
93
119
|
|
94
120
|
- `mpflash flash` will flash the latest stable firmware to all connected boards.
|
121
|
+
If you have a board withouth a running micropython version, you will need to specify the board and the serial port to flash.
|
95
122
|
- `mpflash flash --serial ? --board ?` will prompt to select a specific serial port and board to flash. (the firmware must be dowloaded earlier)
|
96
123
|
|
124
|
+
In order to flash the firmware some boards need to be put in bootloader mode, this is done automatically by mpflash where possible and supported by the boards hardware and current bootloader.
|
125
|
+
The supported `--bootloader` options are:
|
126
|
+
|
127
|
+
- `touch1200` bootloader is activated by connecting to the board at 1200 baud
|
128
|
+
- `mpy` using micropython to enter the bootloader
|
129
|
+
- `manual` manual intervention is needed to enter the bootloader
|
130
|
+
- `none` mpflash assumes the board is ready to flash
|
131
|
+
|
132
|
+
For ESP32 and ESP8266 boards the `esptool` is used to flash the firmware, and this includes activating the bootloader.
|
97
133
|
|
98
134
|
### Flashing all connected boards with the latest stable firmware
|
99
135
|
```bash
|
{micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/add_firmware.py
RENAMED
@@ -11,7 +11,7 @@ from mpremote.mip import _rewrite_url as rewrite_url # type: ignore
|
|
11
11
|
|
12
12
|
from mpflash.common import FWInfo
|
13
13
|
from mpflash.config import config
|
14
|
-
from mpflash.
|
14
|
+
from mpflash.versions import get_preview_mp_version, get_stable_mp_version
|
15
15
|
|
16
16
|
|
17
17
|
def add_firmware(
|
{micropython_stubber-1.23.0 → micropython_stubber-1.23.1.post1}/src/mpflash/mpflash/ask_input.py
RENAMED
@@ -14,7 +14,7 @@ from .config import config
|
|
14
14
|
from .mpboard_id import (get_known_boards_for_port, get_known_ports,
|
15
15
|
known_stored_boards)
|
16
16
|
from .mpremoteboard import MPRemoteBoard
|
17
|
-
from .
|
17
|
+
from .versions import micropython_versions
|
18
18
|
|
19
19
|
|
20
20
|
def ask_missing_params(
|
@@ -14,16 +14,11 @@ from github import Auth, Github
|
|
14
14
|
from loguru import logger as log
|
15
15
|
from packaging.version import parse
|
16
16
|
|
17
|
-
# from
|
18
|
-
from mpflash.vendor.versions import get_stable_mp_version
|
19
|
-
|
20
|
-
# from stubber.utils.versions import SET_PREVIEW
|
17
|
+
# from mpflash.versions import SET_PREVIEW
|
21
18
|
|
22
19
|
# Token with no permissions to avoid throttling
|
23
20
|
# https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28#getting-a-higher-rate-limit
|
24
|
-
PAT_NO_ACCESS =
|
25
|
-
"github_pat" + "_11AAHPVFQ0qAkDnSUaMKSp" + "_ZkDl5NRRwBsUN6EYg9ahp1Dvj4FDDONnXVgimxC2EtpY7Q7BUKBoQ0Jq72X"
|
26
|
-
)
|
21
|
+
PAT_NO_ACCESS = "github_pat" + "_11AAHPVFQ0qAkDnSUaMKSp" + "_ZkDl5NRRwBsUN6EYg9ahp1Dvj4FDDONnXVgimxC2EtpY7Q7BUKBoQ0Jq72X"
|
27
22
|
PAT = os.environ.get("GITHUB_TOKEN") or PAT_NO_ACCESS
|
28
23
|
GH_CLIENT = Github(auth=Auth.Token(PAT))
|
29
24
|
|
@@ -40,9 +35,7 @@ def _run_local_git(
|
|
40
35
|
if repo:
|
41
36
|
if isinstance(repo, str):
|
42
37
|
repo = Path(repo)
|
43
|
-
result = subprocess.run(
|
44
|
-
cmd, capture_output=capture_output, check=True, cwd=repo.absolute().as_posix(), encoding="utf-8"
|
45
|
-
)
|
38
|
+
result = subprocess.run(cmd, capture_output=capture_output, check=True, cwd=repo.absolute().as_posix(), encoding="utf-8")
|
46
39
|
else:
|
47
40
|
result = subprocess.run(cmd, capture_output=capture_output, check=True, encoding="utf-8")
|
48
41
|
except (NotADirectoryError, FileNotFoundError) as e: # pragma: no cover
|
@@ -74,9 +67,6 @@ def clone(remote_repo: str, path: Path, shallow: bool = False, tag: Optional[str
|
|
74
67
|
cmd = ["git", "clone"]
|
75
68
|
if shallow:
|
76
69
|
cmd += ["--depth", "1"]
|
77
|
-
if tag in {"stable"}:
|
78
|
-
tag = get_stable_mp_version()
|
79
|
-
|
80
70
|
if tag in {"preview", "latest", "master"}:
|
81
71
|
tag = None
|
82
72
|
cmd += [remote_repo, "--branch", tag, str(path)] if tag else [remote_repo, str(path)]
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import time
|
2
|
+
|
3
|
+
from mpflash.bootloader.detect import in_bootloader
|
4
|
+
from mpflash.common import BootloaderMethod
|
5
|
+
from mpflash.errors import MPFlashError
|
6
|
+
from mpflash.logger import log
|
7
|
+
from mpflash.mpremoteboard import MPRemoteBoard
|
8
|
+
|
9
|
+
from .manual import enter_bootloader_manual
|
10
|
+
from .micropython import enter_bootloader_mpy
|
11
|
+
from .touch1200 import enter_bootloader_touch_1200bps
|
12
|
+
|
13
|
+
BL_OPTIONS = {
|
14
|
+
"stm32": [BootloaderMethod.TOUCH_1200, BootloaderMethod.MPY, BootloaderMethod.MANUAL],
|
15
|
+
"rp2": [BootloaderMethod.TOUCH_1200, BootloaderMethod.MPY, BootloaderMethod.MANUAL],
|
16
|
+
"samd": [BootloaderMethod.TOUCH_1200, BootloaderMethod.MPY, BootloaderMethod.MANUAL],
|
17
|
+
"esp32": [BootloaderMethod.NONE],
|
18
|
+
"esp8266": [BootloaderMethod.NONE],
|
19
|
+
}
|
20
|
+
|
21
|
+
|
22
|
+
def enter_bootloader(
|
23
|
+
mcu: MPRemoteBoard,
|
24
|
+
method: BootloaderMethod = BootloaderMethod.MPY,
|
25
|
+
timeout: int = 10,
|
26
|
+
wait_after: int = 2,
|
27
|
+
):
|
28
|
+
"""Enter the bootloader mode for the board"""
|
29
|
+
if method == BootloaderMethod.NONE:
|
30
|
+
# NO bootloader requested, so must be OK to flash
|
31
|
+
return True
|
32
|
+
elif method == BootloaderMethod.AUTO:
|
33
|
+
# build a list of options to try for this board
|
34
|
+
bl_list = BL_OPTIONS.get(mcu.port, [BootloaderMethod.MPY, BootloaderMethod.MANUAL])
|
35
|
+
else:
|
36
|
+
bl_list = [method, BootloaderMethod.MANUAL]
|
37
|
+
log.info(f"Entering bootloader on {mcu.serialport} using methods {[bl.value for bl in bl_list]}")
|
38
|
+
for method in bl_list:
|
39
|
+
try:
|
40
|
+
if method == BootloaderMethod.MPY:
|
41
|
+
result = enter_bootloader_mpy(mcu, timeout=timeout)
|
42
|
+
elif method == BootloaderMethod.MANUAL:
|
43
|
+
result = enter_bootloader_manual(mcu, timeout=timeout)
|
44
|
+
elif method == BootloaderMethod.TOUCH_1200:
|
45
|
+
result = enter_bootloader_touch_1200bps(mcu, timeout=timeout)
|
46
|
+
except MPFlashError as e:
|
47
|
+
log.warning(f"Failed to enter bootloader on {mcu.serialport} using {method.value}")
|
48
|
+
log.exception(e)
|
49
|
+
result = False
|
50
|
+
if not result:
|
51
|
+
# try a next method
|
52
|
+
continue
|
53
|
+
|
54
|
+
# todo - check every second or so for up to max wait time
|
55
|
+
time.sleep(wait_after)
|
56
|
+
# check if bootloader was entered
|
57
|
+
if in_bootloader(mcu):
|
58
|
+
return True
|
59
|
+
|
60
|
+
return result
|