mpflash 0.4.2__py3-none-any.whl → 0.5.0__py3-none-any.whl
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.
- mpflash/cli_flash.py +7 -7
- {mpflash-0.4.2.dist-info → mpflash-0.5.0.dist-info}/METADATA +2 -2
- {mpflash-0.4.2.dist-info → mpflash-0.5.0.dist-info}/RECORD +6 -6
- {mpflash-0.4.2.dist-info → mpflash-0.5.0.dist-info}/LICENSE +0 -0
- {mpflash-0.4.2.dist-info → mpflash-0.5.0.dist-info}/WHEEL +0 -0
- {mpflash-0.4.2.dist-info → mpflash-0.5.0.dist-info}/entry_points.txt +0 -0
mpflash/cli_flash.py
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
from pathlib import Path
|
2
|
+
from typing import List
|
2
3
|
|
3
4
|
import rich_click as click
|
4
5
|
from loguru import logger as log
|
5
6
|
|
6
|
-
from mpflash.mpboard_id.api import find_mp_board
|
7
|
-
|
8
7
|
from .ask_input import FlashParams, ask_missing_params
|
9
8
|
from .cli_download import connected_ports_boards
|
10
9
|
from .cli_group import cli
|
@@ -15,6 +14,7 @@ from .flash import WorkList, auto_update, enter_bootloader, find_firmware
|
|
15
14
|
from .flash_esp import flash_esp
|
16
15
|
from .flash_stm32 import flash_stm32
|
17
16
|
from .flash_uf2 import flash_uf2
|
17
|
+
from .mpboard_id.api import find_mp_board
|
18
18
|
from .mpremoteboard import MPRemoteBoard
|
19
19
|
|
20
20
|
# #########################################################################################################
|
@@ -85,7 +85,7 @@ from .mpremoteboard import MPRemoteBoard
|
|
85
85
|
"--erase/--no-erase",
|
86
86
|
default=True,
|
87
87
|
show_default=True,
|
88
|
-
help="""Erase flash before writing new firmware. (
|
88
|
+
help="""Erase flash before writing new firmware. (Not supported on UF2 boards)""",
|
89
89
|
)
|
90
90
|
@click.option(
|
91
91
|
"--bootloader/--no-bootloader",
|
@@ -157,14 +157,14 @@ def oneport_worklist(
|
|
157
157
|
) -> WorkList:
|
158
158
|
"""Create a worklist for a single serial-port."""
|
159
159
|
conn_boards = [MPRemoteBoard(serial_port)]
|
160
|
-
todo = auto_update(conn_boards, version, fw_folder)
|
161
|
-
show_mcus(conn_boards)
|
160
|
+
todo = auto_update(conn_boards, version, fw_folder) # type: ignore # List / list
|
161
|
+
show_mcus(conn_boards) # type: ignore
|
162
162
|
return todo
|
163
163
|
|
164
164
|
|
165
165
|
def auto_worklist(version: str, fw_folder: Path) -> WorkList:
|
166
166
|
conn_boards = [MPRemoteBoard(sp) for sp in MPRemoteBoard.connected_boards() if sp not in config.ignore_ports]
|
167
|
-
return auto_update(conn_boards, version, fw_folder)
|
167
|
+
return auto_update(conn_boards, version, fw_folder) # type: ignore
|
168
168
|
|
169
169
|
|
170
170
|
def manual_worklist(
|
@@ -186,7 +186,7 @@ def manual_worklist(
|
|
186
186
|
log.error(f"No firmware found for {port} {board} version {version}")
|
187
187
|
return []
|
188
188
|
# use the most recent matching firmware
|
189
|
-
return [(mcu, firmwares[-1])]
|
189
|
+
return [(mcu, firmwares[-1])] # type: ignore
|
190
190
|
|
191
191
|
|
192
192
|
def flash_list(
|
@@ -1,13 +1,13 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: mpflash
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.5.0
|
4
4
|
Summary: Flash and download tool for MicroPython firmwares
|
5
5
|
Home-page: https://github.com/Josverl/micropython-stubber/blob/main/src/mpflash/README.md
|
6
6
|
License: MIT
|
7
7
|
Keywords: MicroPython,firmware,flash,download,UF2,esptool
|
8
8
|
Author: Jos Verlinde
|
9
9
|
Author-email: jos_verlinde@hotmail.com
|
10
|
-
Requires-Python: >=3.
|
10
|
+
Requires-Python: >=3.8.1,<4.0
|
11
11
|
Classifier: License :: OSI Approved :: MIT License
|
12
12
|
Classifier: Programming Language :: Python :: 3
|
13
13
|
Classifier: Programming Language :: Python :: 3.9
|
@@ -1,7 +1,7 @@
|
|
1
1
|
mpflash/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
mpflash/ask_input.py,sha256=ZVTh_OO9K3y1YYSzZ-xMg1RA2feGI5S3M_FdWJitTis,5248
|
3
3
|
mpflash/cli_download.py,sha256=JDsSfpsx84eGIwXwBD2va1FkpzT8dfmf-zjyQu1OOec,2446
|
4
|
-
mpflash/cli_flash.py,sha256=
|
4
|
+
mpflash/cli_flash.py,sha256=gqubLsKM39m7F6RxIuyYFWRE1DWWjxxeojeTFNoGZ5A,7341
|
5
5
|
mpflash/cli_group.py,sha256=hdyFrxkA_ye5r5bAsOnPr99KV2pfzgDoNXGPjTvEpW0,1946
|
6
6
|
mpflash/cli_list.py,sha256=3xYHiWrDJfuXZ5JWcOg84U0NqrZ76SOZmprAO3Ijmug,2832
|
7
7
|
mpflash/cli_main.py,sha256=82SfeyqyZLgypW8stiiy4ufIMIpolAt8-ko0p8ZIlWA,529
|
@@ -28,8 +28,8 @@ mpflash/mpremoteboard/runner.py,sha256=G0LLqVS9ngB2y2pZoDvZK5d03RrK7gPo9Lo9dzq5N
|
|
28
28
|
mpflash/vendored/dfu.py,sha256=oK_MRSOyDJrUuS6D24IMIsfL7oLcrvUq0yp_h4WIY2U,5739
|
29
29
|
mpflash/vendored/pydfu.py,sha256=_MdBRo1EeNeKDqFPSTB5tNL1jGSBJgsVeVjE5e7Pb8s,20542
|
30
30
|
mpflash/vendored/readme.md,sha256=iIIZxuLUIGHQ0KODzYVtMezsztvyxCXcNJp_AzwTIPk,86
|
31
|
-
mpflash-0.
|
32
|
-
mpflash-0.
|
33
|
-
mpflash-0.
|
34
|
-
mpflash-0.
|
35
|
-
mpflash-0.
|
31
|
+
mpflash-0.5.0.dist-info/entry_points.txt,sha256=Jk_visOhYOsZIcSP2Ms9hKqfKy1iorR-6dYltSoWCpY,52
|
32
|
+
mpflash-0.5.0.dist-info/LICENSE,sha256=mWpNhsIxWzetYNnTpr4eb3HtgsxGIC8KcYWxXEcxQvE,1077
|
33
|
+
mpflash-0.5.0.dist-info/METADATA,sha256=_cujxzCg9wH2GBmVtNKWS2faSnvMBS5XnAVdRU4n7SY,13797
|
34
|
+
mpflash-0.5.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
35
|
+
mpflash-0.5.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|