mpflash 1.25.0__tar.gz → 1.25.0.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.
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/PKG-INFO +1 -1
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/basicgit.py +1 -1
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/mpboard_id/known.py +3 -19
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/pyproject.toml +1 -1
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/LICENSE +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/README.md +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/__init__.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/add_firmware.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/ask_input.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/bootloader/__init__.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/bootloader/activate.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/bootloader/detect.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/bootloader/manual.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/bootloader/micropython.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/bootloader/touch1200.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/cli_download.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/cli_flash.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/cli_group.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/cli_list.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/cli_main.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/common.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/config.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/connected.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/db/boards.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/db/downloads.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/download/__init__.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/download/from_web.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/downloaded.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/errors.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/flash/__init__.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/flash/esp.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/flash/stm32.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/flash/stm32_dfu.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/flash/uf2/__init__.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/flash/uf2/boardid.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/flash/uf2/linux.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/flash/uf2/macos.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/flash/uf2/uf2disk.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/flash/uf2/windows.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/flash/worklist.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/list.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/logger.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/mpboard_id/__init__.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/mpboard_id/add_boards.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/mpboard_id/board.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/mpboard_id/board_id.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/mpboard_id/board_info.json +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/mpboard_id/board_info.zip +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/mpboard_id/store.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/mpremoteboard/__init__.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/mpremoteboard/mpy_fw_info.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/mpremoteboard/runner.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/py.typed +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/vendor/board_database.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/vendor/click_aliases.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/vendor/dfu.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/vendor/pico-universal-flash-nuke/LICENSE.txt +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/vendor/pico-universal-flash-nuke/universal_flash_nuke.uf2 +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/vendor/pydfu.py +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/vendor/readme.md +0 -0
- {mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/versions.py +0 -0
@@ -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
|
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
|
-
|
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")
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{mpflash-1.25.0 → mpflash-1.25.0.post1}/mpflash/vendor/pico-universal-flash-nuke/LICENSE.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|