mpflash 0.8.6__py3-none-any.whl → 0.8.7__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.
Files changed (51) hide show
  1. mpflash/add_firmware.py +98 -98
  2. mpflash/ask_input.py +236 -236
  3. mpflash/bootloader/__init__.py +37 -37
  4. mpflash/bootloader/manual.py +102 -102
  5. mpflash/bootloader/micropython.py +10 -10
  6. mpflash/bootloader/touch1200.py +45 -45
  7. mpflash/cli_download.py +129 -129
  8. mpflash/cli_flash.py +219 -219
  9. mpflash/cli_group.py +98 -98
  10. mpflash/cli_list.py +81 -81
  11. mpflash/cli_main.py +41 -41
  12. mpflash/common.py +164 -164
  13. mpflash/config.py +47 -47
  14. mpflash/connected.py +74 -74
  15. mpflash/download.py +360 -360
  16. mpflash/downloaded.py +129 -129
  17. mpflash/errors.py +9 -9
  18. mpflash/flash.py +52 -52
  19. mpflash/flash_esp.py +59 -59
  20. mpflash/flash_stm32.py +24 -24
  21. mpflash/flash_stm32_cube.py +111 -111
  22. mpflash/flash_stm32_dfu.py +101 -101
  23. mpflash/flash_uf2.py +67 -67
  24. mpflash/flash_uf2_boardid.py +15 -15
  25. mpflash/flash_uf2_linux.py +123 -123
  26. mpflash/flash_uf2_macos.py +34 -34
  27. mpflash/flash_uf2_windows.py +34 -34
  28. mpflash/list.py +89 -89
  29. mpflash/logger.py +41 -41
  30. mpflash/mpboard_id/__init__.py +93 -93
  31. mpflash/mpboard_id/add_boards.py +255 -255
  32. mpflash/mpboard_id/board.py +37 -37
  33. mpflash/mpboard_id/board_id.py +86 -86
  34. mpflash/mpboard_id/store.py +43 -43
  35. mpflash/mpremoteboard/__init__.py +221 -221
  36. mpflash/mpremoteboard/mpy_fw_info.py +141 -141
  37. mpflash/mpremoteboard/runner.py +140 -140
  38. mpflash/uf2disk.py +12 -12
  39. mpflash/vendor/basicgit.py +288 -288
  40. mpflash/vendor/click_aliases.py +91 -91
  41. mpflash/vendor/dfu.py +165 -165
  42. mpflash/vendor/pydfu.py +605 -605
  43. mpflash/vendor/readme.md +2 -2
  44. mpflash/vendor/versions.py +119 -117
  45. mpflash/worklist.py +170 -170
  46. {mpflash-0.8.6.dist-info → mpflash-0.8.7.dist-info}/LICENSE +20 -20
  47. {mpflash-0.8.6.dist-info → mpflash-0.8.7.dist-info}/METADATA +1 -1
  48. mpflash-0.8.7.dist-info/RECORD +52 -0
  49. mpflash-0.8.6.dist-info/RECORD +0 -52
  50. {mpflash-0.8.6.dist-info → mpflash-0.8.7.dist-info}/WHEEL +0 -0
  51. {mpflash-0.8.6.dist-info → mpflash-0.8.7.dist-info}/entry_points.txt +0 -0
mpflash/vendor/readme.md CHANGED
@@ -1,3 +1,3 @@
1
- These modules are vendored from the following repositories:
2
-
1
+ These modules are vendored from the following repositories:
2
+
3
3
  micropython/micropython
@@ -1,117 +1,119 @@
1
- """
2
- #############################################################
3
- # Version handling copied from stubber/utils/versions.py
4
- #############################################################
5
- """
6
-
7
- from functools import lru_cache
8
-
9
- from loguru import logger as log
10
- from packaging.version import parse
11
-
12
- from mpflash.common import GH_CLIENT
13
-
14
- V_PREVIEW = "preview"
15
- "Latest preview version"
16
-
17
- SET_PREVIEW = {"preview", "latest", "master"}
18
-
19
-
20
- def clean_version(
21
- version: str,
22
- *,
23
- build: bool = False,
24
- patch: bool = False,
25
- commit: bool = False,
26
- drop_v: bool = False,
27
- flat: bool = False,
28
- ):
29
- "Clean up and transform the many flavours of versions"
30
- # 'v1.13.0-103-gb137d064e' --> 'v1.13-103'
31
- if version in {"", "-"}:
32
- return version
33
- if version.lower() == "stable":
34
- _v = get_stable_mp_version()
35
- if not _v:
36
- log.warning("Could not determine the latest stable version")
37
- return "stable"
38
- version = _v
39
- log.trace(f"Using latest stable version: {version}")
40
- is_preview = "-preview" in version
41
- nibbles = version.split("-")
42
- ver_ = nibbles[0].lower().lstrip("v")
43
- if not patch and ver_ >= "1.10.0" and ver_ < "1.20.0" and ver_.endswith(".0"):
44
- # remove the last ".0" - but only for versions between 1.10 and 1.20 (because)
45
- nibbles[0] = nibbles[0][:-2]
46
- if len(nibbles) == 1:
47
- version = nibbles[0]
48
- elif build and not is_preview:
49
- version = "-".join(nibbles) if commit else "-".join(nibbles[:-1])
50
- else:
51
- # version = "-".join((nibbles[0], LATEST))
52
- # HACK: this is not always right, but good enough most of the time
53
- if is_preview:
54
- version = "-".join((nibbles[0], V_PREVIEW))
55
- else:
56
- version = V_PREVIEW
57
- if flat:
58
- version = version.strip().replace(".", "_").replace("-", "_")
59
- else:
60
- version = version.strip().replace("_preview", "-preview").replace("_", ".")
61
-
62
- if drop_v:
63
- version = version.lstrip("v")
64
- elif not version.startswith("v") and version.lower() not in SET_PREVIEW:
65
- version = "v" + version
66
- if version in SET_PREVIEW:
67
- version = V_PREVIEW
68
- return version
69
-
70
-
71
- @lru_cache(maxsize=10)
72
- def micropython_versions(minver: str = "v1.20", reverse: bool = False):
73
- """Get the list of micropython versions from github tags"""
74
- try:
75
- gh_client = GH_CLIENT
76
- repo = gh_client.get_repo("micropython/micropython")
77
- versions = [tag.name for tag in repo.get_tags()]
78
- except Exception:
79
- versions = [
80
- "v9.99.9-preview",
81
- "v1.22.2",
82
- "v1.22.1",
83
- "v1.22.0",
84
- "v1.21.1",
85
- "v1.21.0",
86
- "v1.20.0",
87
- "v1.19.1",
88
- "v1.19",
89
- "v1.18",
90
- "v1.17",
91
- "v1.16",
92
- "v1.15",
93
- "v1.14",
94
- "v1.13",
95
- "v1.12",
96
- "v1.11",
97
- "v1.10",
98
- ]
99
- versions = [v for v in versions if parse(v) >= parse(minver)]
100
- # remove all but the most recent (preview) version
101
- versions = versions[:1] + [v for v in versions if "preview" not in v]
102
- return sorted(versions)
103
-
104
-
105
- def get_stable_mp_version() -> str:
106
- # read the versions from the git tags
107
- all_versions = micropython_versions(minver="v1.17")
108
- return [v for v in all_versions if not v.endswith(V_PREVIEW)][-1]
109
-
110
-
111
- def get_preview_mp_version() -> str:
112
- # read the versions from the git tags
113
- all_versions = micropython_versions(minver="v1.17")
114
- return [v for v in all_versions if v.endswith(V_PREVIEW)][-1]
115
-
116
-
117
- #############################################################
1
+ """
2
+ #############################################################
3
+ # Version handling copied from stubber/utils/versions.py
4
+ #############################################################
5
+ """
6
+
7
+ from functools import lru_cache
8
+
9
+ from loguru import logger as log
10
+ from packaging.version import parse
11
+
12
+ from mpflash.common import GH_CLIENT
13
+ OLDEST_VERSION = "1.16"
14
+ "This is the oldest MicroPython version to build the stubs on"
15
+
16
+ V_PREVIEW = "preview"
17
+ "Latest preview version"
18
+
19
+ SET_PREVIEW = {"preview", "latest", "master"}
20
+
21
+
22
+ def clean_version(
23
+ version: str,
24
+ *,
25
+ build: bool = False,
26
+ patch: bool = False,
27
+ commit: bool = False,
28
+ drop_v: bool = False,
29
+ flat: bool = False,
30
+ ):
31
+ "Clean up and transform the many flavours of versions"
32
+ # 'v1.13.0-103-gb137d064e' --> 'v1.13-103'
33
+ if version in {"", "-"}:
34
+ return version
35
+ if version.lower() == "stable":
36
+ _v = get_stable_mp_version()
37
+ if not _v:
38
+ log.warning("Could not determine the latest stable version")
39
+ return "stable"
40
+ version = _v
41
+ log.trace(f"Using latest stable version: {version}")
42
+ is_preview = "-preview" in version
43
+ nibbles = version.split("-")
44
+ ver_ = nibbles[0].lower().lstrip("v")
45
+ if not patch and ver_ >= "1.10.0" and ver_ < "1.20.0" and ver_.endswith(".0"):
46
+ # remove the last ".0" - but only for versions between 1.10 and 1.20 (because)
47
+ nibbles[0] = nibbles[0][:-2]
48
+ if len(nibbles) == 1:
49
+ version = nibbles[0]
50
+ elif build and not is_preview:
51
+ version = "-".join(nibbles) if commit else "-".join(nibbles[:-1])
52
+ else:
53
+ # version = "-".join((nibbles[0], LATEST))
54
+ # HACK: this is not always right, but good enough most of the time
55
+ if is_preview:
56
+ version = "-".join((nibbles[0], V_PREVIEW))
57
+ else:
58
+ version = V_PREVIEW
59
+ if flat:
60
+ version = version.strip().replace(".", "_").replace("-", "_")
61
+ else:
62
+ version = version.strip().replace("_preview", "-preview").replace("_", ".")
63
+
64
+ if drop_v:
65
+ version = version.lstrip("v")
66
+ elif not version.startswith("v") and version.lower() not in SET_PREVIEW:
67
+ version = "v" + version
68
+ if version in SET_PREVIEW:
69
+ version = V_PREVIEW
70
+ return version
71
+
72
+
73
+ @lru_cache(maxsize=10)
74
+ def micropython_versions(minver: str = "v1.20", reverse: bool = False):
75
+ """Get the list of micropython versions from github tags"""
76
+ try:
77
+ gh_client = GH_CLIENT
78
+ repo = gh_client.get_repo("micropython/micropython")
79
+ versions = [tag.name for tag in repo.get_tags() if parse(tag.name) >= parse(minver)]
80
+ # Only keep the last preview
81
+ versions = [v for v in versions if not v.endswith(V_PREVIEW) or v == versions[-1]]
82
+ except Exception:
83
+ versions = [
84
+ "v9.99.9-preview",
85
+ "v1.22.2",
86
+ "v1.22.1",
87
+ "v1.22.0",
88
+ "v1.21.1",
89
+ "v1.21.0",
90
+ "v1.20.0",
91
+ "v1.19.1",
92
+ "v1.19",
93
+ "v1.18",
94
+ "v1.17",
95
+ "v1.16",
96
+ "v1.15",
97
+ "v1.14",
98
+ "v1.13",
99
+ "v1.12",
100
+ "v1.11",
101
+ "v1.10",
102
+ ]
103
+ versions = [v for v in versions if parse(v) >= parse(minver)]
104
+ # remove all but the most recent (preview) version
105
+ versions = versions[:1] + [v for v in versions if "preview" not in v]
106
+ return sorted(versions, reverse=reverse)
107
+
108
+
109
+ def get_stable_mp_version() -> str:
110
+ # read the versions from the git tags
111
+ all_versions = micropython_versions(minver=OLDEST_VERSION)
112
+ return [v for v in all_versions if not v.endswith(V_PREVIEW)][-1]
113
+
114
+
115
+ def get_preview_mp_version() -> str:
116
+ # read the versions from the git tags
117
+ all_versions = micropython_versions(minver=OLDEST_VERSION)
118
+ return [v for v in all_versions if v.endswith(V_PREVIEW)][-1]
119
+
mpflash/worklist.py CHANGED
@@ -1,170 +1,170 @@
1
- from pathlib import Path
2
- from typing import Dict, List, Optional, Tuple
3
-
4
- from loguru import logger as log
5
-
6
- from mpflash.common import FWInfo, filtered_comports
7
- from mpflash.errors import MPFlashError
8
-
9
- from .downloaded import find_downloaded_firmware
10
- from .list import show_mcus
11
- from .mpboard_id import find_known_board
12
- from .mpremoteboard import MPRemoteBoard
13
-
14
- # #########################################################################################################
15
- WorkList = List[Tuple[MPRemoteBoard, FWInfo]]
16
- # #########################################################################################################
17
-
18
-
19
- def auto_update(
20
- conn_boards: List[MPRemoteBoard],
21
- target_version: str,
22
- fw_folder: Path,
23
- *,
24
- selector: Optional[Dict[str, str]] = None,
25
- ) -> WorkList:
26
- """Builds a list of boards to update based on the connected boards and the firmwares available locally in the firmware folder.
27
-
28
- Args:
29
- conn_boards (List[MPRemoteBoard]): List of connected boards
30
- target_version (str): Target firmware version
31
- fw_folder (Path): Path to the firmware folder
32
- selector (Optional[Dict[str, str]], optional): Selector for filtering firmware. Defaults to None.
33
-
34
- Returns:
35
- WorkList: List of boards and firmware information to update
36
- """
37
- if selector is None:
38
- selector = {}
39
- wl: WorkList = []
40
- for mcu in conn_boards:
41
- if mcu.family not in ("micropython", "unknown"):
42
- log.warning(
43
- f"Skipping flashing {mcu.family} {mcu.port} {mcu.board} on {mcu.serialport} as it is not a MicroPython firmware"
44
- )
45
- continue
46
- board_firmwares = find_downloaded_firmware(
47
- fw_folder=fw_folder,
48
- board_id=mcu.board,
49
- version=target_version,
50
- port=mcu.port,
51
- selector=selector,
52
- )
53
-
54
- if not board_firmwares:
55
- log.error(f"No {target_version} firmware found for {mcu.board} on {mcu.serialport}.")
56
- continue
57
- if len(board_firmwares) > 1:
58
- log.debug(f"Multiple {target_version} firmwares found for {mcu.board} on {mcu.serialport}.")
59
-
60
- # just use the last firmware
61
- fw_info = board_firmwares[-1]
62
- log.info(f"Found {target_version} firmware {fw_info.filename} for {mcu.board} on {mcu.serialport}.")
63
- wl.append((mcu, fw_info))
64
- return wl
65
-
66
-
67
- def manual_worklist(
68
- serial: str,
69
- *,
70
- board_id: str,
71
- version: str,
72
- fw_folder: Path,
73
- ) -> WorkList:
74
- """Create a worklist for a single board specified manually.
75
-
76
- Args:
77
- serial (str): Serial port of the board
78
- board (str): Board_ID
79
- version (str): Firmware version
80
- fw_folder (Path): Path to the firmware folder
81
-
82
- Returns:
83
- WorkList: List of boards and firmware information to update
84
- """
85
- log.trace(f"Manual updating {serial} to {board_id} {version}")
86
- mcu = MPRemoteBoard(serial)
87
- # Lookup the matching port and cpu in board_info based in the board name
88
- try:
89
- info = find_known_board(board_id)
90
- mcu.port = info.port
91
- # need the CPU type for the esptool
92
- mcu.cpu = info.cpu
93
- except (LookupError, MPFlashError) as e:
94
- log.error(f"Board {board_id} not found in board_info.zip")
95
- log.exception(e)
96
- return []
97
- mcu.board = board_id
98
- firmwares = find_downloaded_firmware(fw_folder=fw_folder, board_id=board_id, version=version, port=mcu.port)
99
- if not firmwares:
100
- log.error(f"No firmware found for {mcu.port} {board_id} version {version}")
101
- return []
102
- # use the most recent matching firmware
103
- return [(mcu, firmwares[-1])] # type: ignore
104
-
105
-
106
- def single_auto_worklist(
107
- serial: str,
108
- *,
109
- version: str,
110
- fw_folder: Path,
111
- ) -> WorkList:
112
- """Create a worklist for a single serial-port.
113
-
114
- Args:
115
- serial_port (str): Serial port of the board
116
- version (str): Firmware version
117
- fw_folder (Path): Path to the firmware folder
118
-
119
- Returns:
120
- WorkList: List of boards and firmware information to update
121
- """
122
- log.trace(f"Auto updating {serial} to {version}")
123
- conn_boards = [MPRemoteBoard(serial)]
124
- todo = auto_update(conn_boards, version, fw_folder) # type: ignore # List / list
125
- show_mcus(conn_boards) # type: ignore
126
- return todo
127
-
128
-
129
- def full_auto_worklist(
130
- all_boards: List[MPRemoteBoard], *, include: List[str], ignore: List[str], version: str, fw_folder: Path
131
- ) -> WorkList:
132
- """
133
- Create a worklist for all connected micropython boards based on the information retrieved from the board.
134
- This allows the firmware version of one or moae boards to be changed without needing to specify the port or board_id manually.
135
-
136
- Args:
137
- version (str): Firmware version
138
- fw_folder (Path): Path to the firmware folder
139
-
140
- Returns:
141
- WorkList: List of boards and firmware information to update
142
- """
143
- log.trace(f"Auto updating all boards to {version}")
144
- if selected_boards := filter_boards(all_boards, include=include, ignore=ignore):
145
- return auto_update(selected_boards, version, fw_folder)
146
- else:
147
- return []
148
-
149
-
150
- def filter_boards(
151
- all_boards: List[MPRemoteBoard],
152
- *,
153
- include: List[str],
154
- ignore: List[str],
155
- ):
156
- try:
157
- comports = [
158
- p.device
159
- for p in filtered_comports(
160
- ignore=ignore,
161
- include=include,
162
- bluetooth=False,
163
- )
164
- ]
165
- selected_boards = [b for b in all_boards if b.serialport in comports]
166
- # [MPRemoteBoard(port.device, update=True) for port in comports]
167
- except ConnectionError as e:
168
- log.error(f"Error connecting to boards: {e}")
169
- return []
170
- return selected_boards # type: ignore
1
+ from pathlib import Path
2
+ from typing import Dict, List, Optional, Tuple
3
+
4
+ from loguru import logger as log
5
+
6
+ from mpflash.common import FWInfo, filtered_comports
7
+ from mpflash.errors import MPFlashError
8
+
9
+ from .downloaded import find_downloaded_firmware
10
+ from .list import show_mcus
11
+ from .mpboard_id import find_known_board
12
+ from .mpremoteboard import MPRemoteBoard
13
+
14
+ # #########################################################################################################
15
+ WorkList = List[Tuple[MPRemoteBoard, FWInfo]]
16
+ # #########################################################################################################
17
+
18
+
19
+ def auto_update(
20
+ conn_boards: List[MPRemoteBoard],
21
+ target_version: str,
22
+ fw_folder: Path,
23
+ *,
24
+ selector: Optional[Dict[str, str]] = None,
25
+ ) -> WorkList:
26
+ """Builds a list of boards to update based on the connected boards and the firmwares available locally in the firmware folder.
27
+
28
+ Args:
29
+ conn_boards (List[MPRemoteBoard]): List of connected boards
30
+ target_version (str): Target firmware version
31
+ fw_folder (Path): Path to the firmware folder
32
+ selector (Optional[Dict[str, str]], optional): Selector for filtering firmware. Defaults to None.
33
+
34
+ Returns:
35
+ WorkList: List of boards and firmware information to update
36
+ """
37
+ if selector is None:
38
+ selector = {}
39
+ wl: WorkList = []
40
+ for mcu in conn_boards:
41
+ if mcu.family not in ("micropython", "unknown"):
42
+ log.warning(
43
+ f"Skipping flashing {mcu.family} {mcu.port} {mcu.board} on {mcu.serialport} as it is not a MicroPython firmware"
44
+ )
45
+ continue
46
+ board_firmwares = find_downloaded_firmware(
47
+ fw_folder=fw_folder,
48
+ board_id=mcu.board,
49
+ version=target_version,
50
+ port=mcu.port,
51
+ selector=selector,
52
+ )
53
+
54
+ if not board_firmwares:
55
+ log.error(f"No {target_version} firmware found for {mcu.board} on {mcu.serialport}.")
56
+ continue
57
+ if len(board_firmwares) > 1:
58
+ log.debug(f"Multiple {target_version} firmwares found for {mcu.board} on {mcu.serialport}.")
59
+
60
+ # just use the last firmware
61
+ fw_info = board_firmwares[-1]
62
+ log.info(f"Found {target_version} firmware {fw_info.filename} for {mcu.board} on {mcu.serialport}.")
63
+ wl.append((mcu, fw_info))
64
+ return wl
65
+
66
+
67
+ def manual_worklist(
68
+ serial: str,
69
+ *,
70
+ board_id: str,
71
+ version: str,
72
+ fw_folder: Path,
73
+ ) -> WorkList:
74
+ """Create a worklist for a single board specified manually.
75
+
76
+ Args:
77
+ serial (str): Serial port of the board
78
+ board (str): Board_ID
79
+ version (str): Firmware version
80
+ fw_folder (Path): Path to the firmware folder
81
+
82
+ Returns:
83
+ WorkList: List of boards and firmware information to update
84
+ """
85
+ log.trace(f"Manual updating {serial} to {board_id} {version}")
86
+ mcu = MPRemoteBoard(serial)
87
+ # Lookup the matching port and cpu in board_info based in the board name
88
+ try:
89
+ info = find_known_board(board_id)
90
+ mcu.port = info.port
91
+ # need the CPU type for the esptool
92
+ mcu.cpu = info.cpu
93
+ except (LookupError, MPFlashError) as e:
94
+ log.error(f"Board {board_id} not found in board_info.zip")
95
+ log.exception(e)
96
+ return []
97
+ mcu.board = board_id
98
+ firmwares = find_downloaded_firmware(fw_folder=fw_folder, board_id=board_id, version=version, port=mcu.port)
99
+ if not firmwares:
100
+ log.error(f"No firmware found for {mcu.port} {board_id} version {version}")
101
+ return []
102
+ # use the most recent matching firmware
103
+ return [(mcu, firmwares[-1])] # type: ignore
104
+
105
+
106
+ def single_auto_worklist(
107
+ serial: str,
108
+ *,
109
+ version: str,
110
+ fw_folder: Path,
111
+ ) -> WorkList:
112
+ """Create a worklist for a single serial-port.
113
+
114
+ Args:
115
+ serial_port (str): Serial port of the board
116
+ version (str): Firmware version
117
+ fw_folder (Path): Path to the firmware folder
118
+
119
+ Returns:
120
+ WorkList: List of boards and firmware information to update
121
+ """
122
+ log.trace(f"Auto updating {serial} to {version}")
123
+ conn_boards = [MPRemoteBoard(serial)]
124
+ todo = auto_update(conn_boards, version, fw_folder) # type: ignore # List / list
125
+ show_mcus(conn_boards) # type: ignore
126
+ return todo
127
+
128
+
129
+ def full_auto_worklist(
130
+ all_boards: List[MPRemoteBoard], *, include: List[str], ignore: List[str], version: str, fw_folder: Path
131
+ ) -> WorkList:
132
+ """
133
+ Create a worklist for all connected micropython boards based on the information retrieved from the board.
134
+ This allows the firmware version of one or moae boards to be changed without needing to specify the port or board_id manually.
135
+
136
+ Args:
137
+ version (str): Firmware version
138
+ fw_folder (Path): Path to the firmware folder
139
+
140
+ Returns:
141
+ WorkList: List of boards and firmware information to update
142
+ """
143
+ log.trace(f"Auto updating all boards to {version}")
144
+ if selected_boards := filter_boards(all_boards, include=include, ignore=ignore):
145
+ return auto_update(selected_boards, version, fw_folder)
146
+ else:
147
+ return []
148
+
149
+
150
+ def filter_boards(
151
+ all_boards: List[MPRemoteBoard],
152
+ *,
153
+ include: List[str],
154
+ ignore: List[str],
155
+ ):
156
+ try:
157
+ comports = [
158
+ p.device
159
+ for p in filtered_comports(
160
+ ignore=ignore,
161
+ include=include,
162
+ bluetooth=False,
163
+ )
164
+ ]
165
+ selected_boards = [b for b in all_boards if b.serialport in comports]
166
+ # [MPRemoteBoard(port.device, update=True) for port in comports]
167
+ except ConnectionError as e:
168
+ log.error(f"Error connecting to boards: {e}")
169
+ return []
170
+ return selected_boards # type: ignore
@@ -1,20 +1,20 @@
1
- Copyright (c) 2024 Jos Verlinde
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy
4
- of this software and associated documentation files (the "Software"), to deal
5
- in the Software without restriction, including without limitation the rights
6
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- copies of the Software, and to permit persons to whom the Software is
8
- furnished to do so, subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
- SOFTWARE.
20
-
1
+ Copyright (c) 2024 Jos Verlinde
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
20
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mpflash
3
- Version: 0.8.6
3
+ Version: 0.8.7
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