mpflash 1.25.0.post2__py3-none-any.whl → 1.25.0.post3__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.
@@ -217,9 +217,9 @@ class MPRemoteBoard:
217
217
  if rc in [OK]: # sometimes we get an -9 ???
218
218
  try:
219
219
  log.trace(result)
220
- #Ok we have the info, now parse it
220
+ # Ok we have the info, now parse it
221
221
  self.toml = tomllib.loads("".join(result))
222
- log.debug(f"board_info.toml: {self.toml["description"]}")
222
+ log.debug("board_info.toml:" + self.toml["description"])
223
223
  except Exception as e:
224
224
  log.error(f"Failed to parse board_info.toml: {e}")
225
225
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mpflash
3
- Version: 1.25.0.post2
3
+ Version: 1.25.0.post3
4
4
  Summary: Flash and download tool for MicroPython firmwares
5
5
  License: MIT
6
6
  Keywords: MicroPython,firmware,flash,download,UF2,esptool
@@ -62,11 +62,18 @@ This tool was initially created to be used in a CI/CD pipeline to automate the p
62
62
 
63
63
  Not yet implemented: `nrf`, `cc3200`, `mimxrt`, `renesas`
64
64
 
65
- ## Release v1.25.0 - 🪲Yanked🪲
66
- I have yanked the release of 1.25.0 from PyPI.
67
- It was missing a step to upgrade from a .json to a sqlite database to better identify connected boards, and I failed to identify that in testing.
65
+ ## Release v1.25.0(.post2)
66
+
67
+ This release includes several new features and improvements:
68
+ - **New features:**
69
+ - Added support for `--variant` option to specify a specific variant of the board when flashing.
70
+ - mpflash now uses a slqlite database to store information on all possible micropython firmwares, and the management of the downloaded firmware files.
71
+ - This allows for a better identification of boards, and matches to the correct firmware.
72
+ - Use the MicroPython v1.25.0 `sys.implementation._build` to as board_id when avaialable
73
+ - Automatically try to download firmware if not yet available locally. No lonmger need to specify the `--download` option.
74
+ - Restructured mpboard_id to use a SQLite db to be able to ID more boards and variants
75
+ - vendored and adapted `board_database.py` from mpflash, kudos @mattytrentini
68
76
 
69
- There is a preview release available on PyPI, that has the fix for this issue, and it is available as `mpflash==1.25.0rc2`.
70
77
 
71
78
  ## Features
72
79
  1. List the connected boards including their firmware details, in a tabular or json format
@@ -50,7 +50,7 @@ mpflash/mpboard_id/board_info.json,sha256=A3ZIt38KvAy2NMB5srHorSBd3Q3wOZIXufWiIs
50
50
  mpflash/mpboard_id/board_info.zip,sha256=-2bnQGRsIQuJUfz-7_-GQ8pMWJ1evhCez6yfjhXocNw,23213
51
51
  mpflash/mpboard_id/known.py,sha256=GrNe4FtzVIdi9L9xuJ1gzorzXTvdfrugX1iVc_Nblb8,3325
52
52
  mpflash/mpboard_id/resolve.py,sha256=5KCZ0Tcg3FYZ3HK_zux5EguwoSC2E03kCpW2fh4rN2A,779
53
- mpflash/mpremoteboard/__init__.py,sha256=MvvJy6G32YQf8IqZR2AjMXcusI82Muy6JVvjVv7dZhw,12092
53
+ mpflash/mpremoteboard/__init__.py,sha256=MOzb7igpawgJcZyCwolAP80GRch9Anw_uzDuaCMBSFo,12092
54
54
  mpflash/mpremoteboard/mpy_fw_info.py,sha256=ZDEPJN9XJnoG_oeWcLNiLJAD5bkVX2yI_j4K7msUxWM,5196
55
55
  mpflash/mpremoteboard/runner.py,sha256=auJuK7uBq_qdZOX9DgzRARyAsTyhT8c9ycP02VqhMf4,4943
56
56
  mpflash/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -62,8 +62,8 @@ mpflash/vendor/pico-universal-flash-nuke/universal_flash_nuke.uf2,sha256=QuPMppq
62
62
  mpflash/vendor/pydfu.py,sha256=KD1RHHuhvhWi-l1UB6GyggkxouDKtZgkG4ivRbIfwC4,21264
63
63
  mpflash/vendor/readme.md,sha256=BQ7Uxf8joeYMjTUuSLLBG49ob6a9MgFPIEwuc72-Mfw,415
64
64
  mpflash/versions.py,sha256=HuujLNdMKY_mQXyEqwXVHcU8nbuXeBiWP2TMA5JQhr4,4884
65
- mpflash-1.25.0.post2.dist-info/entry_points.txt,sha256=Jk_visOhYOsZIcSP2Ms9hKqfKy1iorR-6dYltSoWCpY,52
66
- mpflash-1.25.0.post2.dist-info/LICENSE,sha256=mWpNhsIxWzetYNnTpr4eb3HtgsxGIC8KcYWxXEcxQvE,1077
67
- mpflash-1.25.0.post2.dist-info/METADATA,sha256=bHmPpoBGN1AFCU0EeOA-fzkBeyKDzNoAvMj5JbpoJKY,26234
68
- mpflash-1.25.0.post2.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
69
- mpflash-1.25.0.post2.dist-info/RECORD,,
65
+ mpflash-1.25.0.post3.dist-info/entry_points.txt,sha256=Jk_visOhYOsZIcSP2Ms9hKqfKy1iorR-6dYltSoWCpY,52
66
+ mpflash-1.25.0.post3.dist-info/LICENSE,sha256=mWpNhsIxWzetYNnTpr4eb3HtgsxGIC8KcYWxXEcxQvE,1077
67
+ mpflash-1.25.0.post3.dist-info/METADATA,sha256=dbSzPHFoSdH8cECZgjgi_AXOK9y-p-V0xWwCvYDx8xY,26718
68
+ mpflash-1.25.0.post3.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
69
+ mpflash-1.25.0.post3.dist-info/RECORD,,