mpflash 1.25.0__py3-none-any.whl → 1.25.0.post1__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/basicgit.py CHANGED
@@ -267,7 +267,7 @@ def pull(repo: Union[Path, str], branch: str = "main") -> bool:
267
267
  return result.returncode == 0
268
268
 
269
269
 
270
- def get_git_describe(folder: Optional[Path | str] = None):
270
+ def get_git_describe(folder: Optional[Union[Path, str]] = None):
271
271
  """
272
272
  Based on MicroPython makeversionhdr.py
273
273
  returns : current git tag, commits ,commit hash : "v1.19.1-841-g3446"
@@ -86,23 +86,7 @@ def find_known_board(board_id: str, version ="") -> Board:
86
86
  for board_id in board_ids:
87
87
  # if we have a board_id, use it to find the board info
88
88
  boards += [Board.from_dict(dict(r)) for r in find_board_info(board_id = board_id)]
89
-
90
-
91
- # if board_ids:
92
- # # if we have a board_id, use it to find the board info
93
- # board_id = board_ids[0]
94
- # info = read_known_boardinfo()
95
- # for board_info in info:
96
- # if board_id in (
97
- # board_info.board_id,
98
- # board_info.description,
99
- # ) or board_info.description.startswith(board_id):
100
- # if not board_info.cpu:
101
- # # failsafe for older board_info.json files
102
- # print(f"Board {board_id} has no CPU info, using port as CPU")
103
- # if " with " in board_info.description:
104
- # board_info.cpu = board_info.description.split(" with ")[-1]
105
- # else:
106
- # board_info.cpu = board_info.port
107
- # return board_info
89
+
90
+ if boards:
91
+ return boards[0]
108
92
  raise MPFlashError(f"Board {board_id} not found")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mpflash
3
- Version: 1.25.0
3
+ Version: 1.25.0.post1
4
4
  Summary: Flash and download tool for MicroPython firmwares
5
5
  License: MIT
6
6
  Keywords: MicroPython,firmware,flash,download,UF2,esptool
@@ -1,7 +1,7 @@
1
1
  mpflash/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  mpflash/add_firmware.py,sha256=1h0HsA-EVi3HXLmoEvzwY_a-GuWYzPwulTYHHBB8THg,3428
3
3
  mpflash/ask_input.py,sha256=piwMuW7QlYsIvDdJFN1lVCkCGsmsSyyMaUOtvf_S330,8885
4
- mpflash/basicgit.py,sha256=e5utBpTObVl5fbSZ-dpiZuVi0touiFppS8NuKRKcxII,9670
4
+ mpflash/basicgit.py,sha256=AGqFZeEHjb_o7QtZyJ_M9aOXHN-JEGvUi6W01fpOGzc,9676
5
5
  mpflash/bootloader/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  mpflash/bootloader/activate.py,sha256=orQOw4XTkXVZI-rMInRb0T5Wp3qA_BlzbJUA2gyBToU,2361
7
7
  mpflash/bootloader/detect.py,sha256=OagP2QVWeLLWkZt2paqEF6r4_x3QDcBGNCPOWfMy9NQ,2686
@@ -41,7 +41,7 @@ mpflash/mpboard_id/board.py,sha256=hzP_SNyigjRQsP3FmTCvuCDtPPalfkL5IfjrnATlVS0,1
41
41
  mpflash/mpboard_id/board_id.py,sha256=mJqVW_D8uHnuON7xpKBRRs2e3ExQGNYC2bSA2ItZBKY,5439
42
42
  mpflash/mpboard_id/board_info.json,sha256=A3ZIt38KvAy2NMB5srHorSBd3Q3wOZIXufWiIs3XLrs,1019745
43
43
  mpflash/mpboard_id/board_info.zip,sha256=-2bnQGRsIQuJUfz-7_-GQ8pMWJ1evhCez6yfjhXocNw,23213
44
- mpflash/mpboard_id/known.py,sha256=pYw2z5w_PZC9BG6uqo4jFIoSpiacRxL9oj7pHKv-qjo,4521
44
+ mpflash/mpboard_id/known.py,sha256=ySTOVDFjqhoeVcGtJcpaY6Cy2blTbLovD5z-IsdZhco,3769
45
45
  mpflash/mpboard_id/store.py,sha256=UR5nWwywqSPY_2DBP2w8td3b7N6iS-B5rMcyh-s2JOQ,1750
46
46
  mpflash/mpremoteboard/__init__.py,sha256=jj4FVK237BmQ1-N4ANePWEJFY7yyhbb0XvJx8n00vuc,11993
47
47
  mpflash/mpremoteboard/mpy_fw_info.py,sha256=xhEjifU7pAUpey5T23k6x_1bhuS2XcVbSM21ZynWDdM,5148
@@ -55,8 +55,8 @@ mpflash/vendor/pico-universal-flash-nuke/universal_flash_nuke.uf2,sha256=QuPMppq
55
55
  mpflash/vendor/pydfu.py,sha256=uD0esm1iPHap7T93M_fli1LlXwn8RxKDFRnt8inxJu8,20389
56
56
  mpflash/vendor/readme.md,sha256=BQ7Uxf8joeYMjTUuSLLBG49ob6a9MgFPIEwuc72-Mfw,415
57
57
  mpflash/versions.py,sha256=zDAUEMae0hvB8CFmVnf_VWtnVIpAiMGXKpvk2FgnWcg,4878
58
- mpflash-1.25.0.dist-info/entry_points.txt,sha256=Jk_visOhYOsZIcSP2Ms9hKqfKy1iorR-6dYltSoWCpY,52
59
- mpflash-1.25.0.dist-info/LICENSE,sha256=mWpNhsIxWzetYNnTpr4eb3HtgsxGIC8KcYWxXEcxQvE,1077
60
- mpflash-1.25.0.dist-info/METADATA,sha256=lBovhakb7WQMmZ7n6KGv6bnUIYq_rVmZ_9rU1ZAwgJU,23930
61
- mpflash-1.25.0.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
62
- mpflash-1.25.0.dist-info/RECORD,,
58
+ mpflash-1.25.0.post1.dist-info/entry_points.txt,sha256=Jk_visOhYOsZIcSP2Ms9hKqfKy1iorR-6dYltSoWCpY,52
59
+ mpflash-1.25.0.post1.dist-info/LICENSE,sha256=mWpNhsIxWzetYNnTpr4eb3HtgsxGIC8KcYWxXEcxQvE,1077
60
+ mpflash-1.25.0.post1.dist-info/METADATA,sha256=JvqTGcAdnDOMzvMK3JVqNqE8OKtBcV986kDTdtTG-KY,23936
61
+ mpflash-1.25.0.post1.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
62
+ mpflash-1.25.0.post1.dist-info/RECORD,,