micropython-stubber 1.20.2__py3-none-any.whl → 1.20.5__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.
- {micropython_stubber-1.20.2.dist-info → micropython_stubber-1.20.5.dist-info}/METADATA +5 -4
- {micropython_stubber-1.20.2.dist-info → micropython_stubber-1.20.5.dist-info}/RECORD +51 -46
- {micropython_stubber-1.20.2.dist-info → micropython_stubber-1.20.5.dist-info}/WHEEL +1 -1
- mpflash/mpflash/ask_input.py +24 -14
- mpflash/mpflash/bootloader/__init__.py +36 -0
- mpflash/mpflash/bootloader/manual.py +102 -0
- mpflash/mpflash/bootloader/micropython.py +10 -0
- mpflash/mpflash/bootloader/touch1200.py +45 -0
- mpflash/mpflash/cli_download.py +1 -0
- mpflash/mpflash/cli_flash.py +16 -9
- mpflash/mpflash/cli_group.py +13 -6
- mpflash/mpflash/cli_list.py +6 -2
- mpflash/mpflash/cli_main.py +5 -2
- mpflash/mpflash/common.py +15 -2
- mpflash/mpflash/config.py +27 -1
- mpflash/mpflash/download.py +82 -16
- mpflash/mpflash/downloaded.py +28 -7
- mpflash/mpflash/errors.py +5 -1
- mpflash/mpflash/flash.py +10 -27
- mpflash/mpflash/flash_uf2.py +4 -6
- mpflash/mpflash/flash_uf2_boardid.py +2 -1
- mpflash/mpflash/flash_uf2_macos.py +13 -57
- mpflash/mpflash/flash_uf2_windows.py +4 -4
- mpflash/mpflash/mpboard_id/__init__.py +4 -0
- mpflash/mpflash/mpboard_id/board_id.py +19 -3
- mpflash/mpflash/mpboard_id/store.py +2 -1
- mpflash/mpflash/vendor/click_aliases.py +91 -0
- mpflash/poetry.lock +102 -137
- mpflash/pyproject.toml +1 -1
- stubber/__init__.py +1 -1
- stubber/board/createstubs.py +12 -4
- stubber/board/createstubs_db.py +4 -5
- stubber/board/createstubs_db_min.py +1 -1
- stubber/board/createstubs_db_mpy.mpy +0 -0
- stubber/board/createstubs_mem.py +4 -5
- stubber/board/createstubs_mem_min.py +1 -1
- stubber/board/createstubs_mem_mpy.mpy +0 -0
- stubber/board/createstubs_min.py +2 -2
- stubber/board/createstubs_mpy.mpy +0 -0
- stubber/board/modulelist.txt +9 -0
- stubber/bulk/mcu_stubber.py +0 -1
- stubber/codemod/_partials/__init__.py +0 -2
- stubber/publish/candidates.py +7 -28
- stubber/publish/enums.py +0 -6
- stubber/publish/package.py +15 -46
- stubber/publish/publish.py +1 -2
- stubber/rst/lookup.py +7 -7
- stubber/rst/reader.py +26 -27
- stubber/update_module_list.py +2 -26
- {micropython_stubber-1.20.2.dist-info → micropython_stubber-1.20.5.dist-info}/LICENSE +0 -0
- {micropython_stubber-1.20.2.dist-info → micropython_stubber-1.20.5.dist-info}/entry_points.txt +0 -0
@@ -44,7 +44,23 @@ def _find_board_id_by_description(
|
|
44
44
|
"""
|
45
45
|
Find the MicroPython BOARD_ID based on the description in the firmware
|
46
46
|
using the pre-built board_info.json file
|
47
|
+
|
48
|
+
Parameters:
|
49
|
+
descr: str
|
50
|
+
Description of the board
|
51
|
+
short_descr: str
|
52
|
+
Short description of the board (optional)
|
53
|
+
version: str
|
54
|
+
Version of the MicroPython firmware
|
55
|
+
board_info: Path
|
56
|
+
Path to the board_info.json file (optional)
|
57
|
+
|
47
58
|
"""
|
59
|
+
# FIXME: functional overlap with
|
60
|
+
# src\mpflash\mpflash\mpboard_id\__init__.py find_known_board
|
61
|
+
|
62
|
+
if not short_descr and " with " in descr:
|
63
|
+
short_descr = descr.split(" with ")[0]
|
48
64
|
|
49
65
|
candidate_boards = read_known_boardinfo(board_info)
|
50
66
|
|
@@ -58,10 +74,10 @@ def _find_board_id_by_description(
|
|
58
74
|
# FIXME if latest stable is newer than the last version in the boardlist this will fail
|
59
75
|
log.trace(f"Version {version} not found in board info, using latest known version {known_versions[-1]}")
|
60
76
|
version = known_versions[-1]
|
61
|
-
version_matches
|
62
|
-
|
77
|
+
if version_matches := [b for b in candidate_boards if b.version.startswith(version)]:
|
78
|
+
candidate_boards = version_matches
|
79
|
+
else:
|
63
80
|
raise MPFlashError(f"No board info found for version {version}")
|
64
|
-
candidate_boards = version_matches
|
65
81
|
matches = [b for b in candidate_boards if b.description == descr]
|
66
82
|
if not matches and short_descr:
|
67
83
|
matches = [b for b in candidate_boards if b.description == short_descr]
|
@@ -13,10 +13,11 @@ HERE = Path(__file__).parent
|
|
13
13
|
|
14
14
|
|
15
15
|
def write_boardinfo_json(board_list: List[Board], *, folder: Path):
|
16
|
-
"""Writes the board information to JSON
|
16
|
+
"""Writes the board information to a JSON file.
|
17
17
|
|
18
18
|
Args:
|
19
19
|
board_list (List[Board]): The list of Board objects.
|
20
|
+
folder (Path): The folder where the compressed JSON file will be saved.
|
20
21
|
"""
|
21
22
|
import zipfile
|
22
23
|
|
@@ -0,0 +1,91 @@
|
|
1
|
+
# Copyright (c) 2016 Robbin Bonthond
|
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
|
+
# modified to avoid conflcts with rich_click
|
14
|
+
|
15
|
+
# sourcery skip: assign-if-exp, use-named-expression
|
16
|
+
|
17
|
+
import rich_click as click
|
18
|
+
|
19
|
+
_click7 = click.__version__[0] >= "7"
|
20
|
+
|
21
|
+
|
22
|
+
class ClickAliasedGroup(click.RichGroup):
|
23
|
+
def __init__(self, *args, **kwargs):
|
24
|
+
super().__init__(*args, **kwargs)
|
25
|
+
self._commands = {}
|
26
|
+
self._aliases = {}
|
27
|
+
|
28
|
+
def add_command(self, *args, **kwargs):
|
29
|
+
aliases = kwargs.pop("aliases", [])
|
30
|
+
super().add_command(*args, **kwargs)
|
31
|
+
if aliases:
|
32
|
+
cmd = args[0]
|
33
|
+
name = args[1] if len(args) > 1 else None
|
34
|
+
name = name or cmd.name
|
35
|
+
if name is None:
|
36
|
+
raise TypeError("Command has no name.")
|
37
|
+
|
38
|
+
self._commands[name] = aliases
|
39
|
+
for alias in aliases:
|
40
|
+
self._aliases[alias] = cmd.name
|
41
|
+
|
42
|
+
def command(self, *args, **kwargs):
|
43
|
+
aliases = kwargs.pop("aliases", [])
|
44
|
+
decorator = super().command(*args, **kwargs)
|
45
|
+
if not aliases:
|
46
|
+
return decorator
|
47
|
+
|
48
|
+
def _decorator(f):
|
49
|
+
cmd = decorator(f)
|
50
|
+
if aliases:
|
51
|
+
self._commands[cmd.name] = aliases
|
52
|
+
for alias in aliases:
|
53
|
+
self._aliases[alias] = cmd.name
|
54
|
+
return cmd
|
55
|
+
|
56
|
+
return _decorator
|
57
|
+
|
58
|
+
def group(self, *args, **kwargs):
|
59
|
+
aliases = kwargs.pop("aliases", [])
|
60
|
+
decorator = super().group(*args, **kwargs)
|
61
|
+
if not aliases:
|
62
|
+
return decorator
|
63
|
+
|
64
|
+
def _decorator(f):
|
65
|
+
cmd = decorator(f)
|
66
|
+
if aliases:
|
67
|
+
self._commands[cmd.name] = aliases
|
68
|
+
for alias in aliases:
|
69
|
+
self._aliases[alias] = cmd.name
|
70
|
+
return cmd
|
71
|
+
|
72
|
+
return _decorator
|
73
|
+
|
74
|
+
def resolve_alias(self, cmd_name):
|
75
|
+
if cmd_name in self._aliases:
|
76
|
+
return self._aliases[cmd_name]
|
77
|
+
return cmd_name
|
78
|
+
|
79
|
+
def get_command(self, ctx, cmd_name):
|
80
|
+
cmd_name = self.resolve_alias(cmd_name)
|
81
|
+
command = super().get_command(ctx, cmd_name)
|
82
|
+
if command:
|
83
|
+
return command
|
84
|
+
return None
|
85
|
+
|
86
|
+
# def format_commands(self, ctx, formatter):
|
87
|
+
# TODO: output alias with commands - but that is a significant re-write
|
88
|
+
# for now add alias to help text
|
89
|
+
|
90
|
+
|
91
|
+
# ------------------------------------------------------------------------------------
|
mpflash/poetry.lock
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is automatically @generated by Poetry 1.
|
1
|
+
# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand.
|
2
2
|
|
3
3
|
[[package]]
|
4
4
|
name = "ansicon"
|
@@ -262,13 +262,13 @@ files = [
|
|
262
262
|
|
263
263
|
[[package]]
|
264
264
|
name = "certifi"
|
265
|
-
version = "2024.
|
265
|
+
version = "2024.6.2"
|
266
266
|
description = "Python package for providing Mozilla's CA Bundle."
|
267
267
|
optional = false
|
268
268
|
python-versions = ">=3.6"
|
269
269
|
files = [
|
270
|
-
{file = "certifi-2024.
|
271
|
-
{file = "certifi-2024.
|
270
|
+
{file = "certifi-2024.6.2-py3-none-any.whl", hash = "sha256:ddc6c8ce995e6987e7faf5e3f1b02b302836a0e5d98ece18392cb1a36c72ad56"},
|
271
|
+
{file = "certifi-2024.6.2.tar.gz", hash = "sha256:3cd43f1c6fa7dedc5899d69d3ad0398fd018ad1a17fba83ddaf78aa46c747516"},
|
272
272
|
]
|
273
273
|
|
274
274
|
[[package]]
|
@@ -461,63 +461,63 @@ files = [
|
|
461
461
|
|
462
462
|
[[package]]
|
463
463
|
name = "coverage"
|
464
|
-
version = "7.5.
|
464
|
+
version = "7.5.3"
|
465
465
|
description = "Code coverage measurement for Python"
|
466
466
|
optional = false
|
467
467
|
python-versions = ">=3.8"
|
468
468
|
files = [
|
469
|
-
{file = "coverage-7.5.
|
470
|
-
{file = "coverage-7.5.
|
471
|
-
{file = "coverage-7.5.
|
472
|
-
{file = "coverage-7.5.
|
473
|
-
{file = "coverage-7.5.
|
474
|
-
{file = "coverage-7.5.
|
475
|
-
{file = "coverage-7.5.
|
476
|
-
{file = "coverage-7.5.
|
477
|
-
{file = "coverage-7.5.
|
478
|
-
{file = "coverage-7.5.
|
479
|
-
{file = "coverage-7.5.
|
480
|
-
{file = "coverage-7.5.
|
481
|
-
{file = "coverage-7.5.
|
482
|
-
{file = "coverage-7.5.
|
483
|
-
{file = "coverage-7.5.
|
484
|
-
{file = "coverage-7.5.
|
485
|
-
{file = "coverage-7.5.
|
486
|
-
{file = "coverage-7.5.
|
487
|
-
{file = "coverage-7.5.
|
488
|
-
{file = "coverage-7.5.
|
489
|
-
{file = "coverage-7.5.
|
490
|
-
{file = "coverage-7.5.
|
491
|
-
{file = "coverage-7.5.
|
492
|
-
{file = "coverage-7.5.
|
493
|
-
{file = "coverage-7.5.
|
494
|
-
{file = "coverage-7.5.
|
495
|
-
{file = "coverage-7.5.
|
496
|
-
{file = "coverage-7.5.
|
497
|
-
{file = "coverage-7.5.
|
498
|
-
{file = "coverage-7.5.
|
499
|
-
{file = "coverage-7.5.
|
500
|
-
{file = "coverage-7.5.
|
501
|
-
{file = "coverage-7.5.
|
502
|
-
{file = "coverage-7.5.
|
503
|
-
{file = "coverage-7.5.
|
504
|
-
{file = "coverage-7.5.
|
505
|
-
{file = "coverage-7.5.
|
506
|
-
{file = "coverage-7.5.
|
507
|
-
{file = "coverage-7.5.
|
508
|
-
{file = "coverage-7.5.
|
509
|
-
{file = "coverage-7.5.
|
510
|
-
{file = "coverage-7.5.
|
511
|
-
{file = "coverage-7.5.
|
512
|
-
{file = "coverage-7.5.
|
513
|
-
{file = "coverage-7.5.
|
514
|
-
{file = "coverage-7.5.
|
515
|
-
{file = "coverage-7.5.
|
516
|
-
{file = "coverage-7.5.
|
517
|
-
{file = "coverage-7.5.
|
518
|
-
{file = "coverage-7.5.
|
519
|
-
{file = "coverage-7.5.
|
520
|
-
{file = "coverage-7.5.
|
469
|
+
{file = "coverage-7.5.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:a6519d917abb15e12380406d721e37613e2a67d166f9fb7e5a8ce0375744cd45"},
|
470
|
+
{file = "coverage-7.5.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:aea7da970f1feccf48be7335f8b2ca64baf9b589d79e05b9397a06696ce1a1ec"},
|
471
|
+
{file = "coverage-7.5.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:923b7b1c717bd0f0f92d862d1ff51d9b2b55dbbd133e05680204465f454bb286"},
|
472
|
+
{file = "coverage-7.5.3-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:62bda40da1e68898186f274f832ef3e759ce929da9a9fd9fcf265956de269dbc"},
|
473
|
+
{file = "coverage-7.5.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d8b7339180d00de83e930358223c617cc343dd08e1aa5ec7b06c3a121aec4e1d"},
|
474
|
+
{file = "coverage-7.5.3-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:25a5caf742c6195e08002d3b6c2dd6947e50efc5fc2c2205f61ecb47592d2d83"},
|
475
|
+
{file = "coverage-7.5.3-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:05ac5f60faa0c704c0f7e6a5cbfd6f02101ed05e0aee4d2822637a9e672c998d"},
|
476
|
+
{file = "coverage-7.5.3-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:239a4e75e09c2b12ea478d28815acf83334d32e722e7433471fbf641c606344c"},
|
477
|
+
{file = "coverage-7.5.3-cp310-cp310-win32.whl", hash = "sha256:a5812840d1d00eafae6585aba38021f90a705a25b8216ec7f66aebe5b619fb84"},
|
478
|
+
{file = "coverage-7.5.3-cp310-cp310-win_amd64.whl", hash = "sha256:33ca90a0eb29225f195e30684ba4a6db05dbef03c2ccd50b9077714c48153cac"},
|
479
|
+
{file = "coverage-7.5.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:f81bc26d609bf0fbc622c7122ba6307993c83c795d2d6f6f6fd8c000a770d974"},
|
480
|
+
{file = "coverage-7.5.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:7cec2af81f9e7569280822be68bd57e51b86d42e59ea30d10ebdbb22d2cb7232"},
|
481
|
+
{file = "coverage-7.5.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:55f689f846661e3f26efa535071775d0483388a1ccfab899df72924805e9e7cd"},
|
482
|
+
{file = "coverage-7.5.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:50084d3516aa263791198913a17354bd1dc627d3c1639209640b9cac3fef5807"},
|
483
|
+
{file = "coverage-7.5.3-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:341dd8f61c26337c37988345ca5c8ccabeff33093a26953a1ac72e7d0103c4fb"},
|
484
|
+
{file = "coverage-7.5.3-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:ab0b028165eea880af12f66086694768f2c3139b2c31ad5e032c8edbafca6ffc"},
|
485
|
+
{file = "coverage-7.5.3-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:5bc5a8c87714b0c67cfeb4c7caa82b2d71e8864d1a46aa990b5588fa953673b8"},
|
486
|
+
{file = "coverage-7.5.3-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:38a3b98dae8a7c9057bd91fbf3415c05e700a5114c5f1b5b0ea5f8f429ba6614"},
|
487
|
+
{file = "coverage-7.5.3-cp311-cp311-win32.whl", hash = "sha256:fcf7d1d6f5da887ca04302db8e0e0cf56ce9a5e05f202720e49b3e8157ddb9a9"},
|
488
|
+
{file = "coverage-7.5.3-cp311-cp311-win_amd64.whl", hash = "sha256:8c836309931839cca658a78a888dab9676b5c988d0dd34ca247f5f3e679f4e7a"},
|
489
|
+
{file = "coverage-7.5.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:296a7d9bbc598e8744c00f7a6cecf1da9b30ae9ad51c566291ff1314e6cbbed8"},
|
490
|
+
{file = "coverage-7.5.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:34d6d21d8795a97b14d503dcaf74226ae51eb1f2bd41015d3ef332a24d0a17b3"},
|
491
|
+
{file = "coverage-7.5.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8e317953bb4c074c06c798a11dbdd2cf9979dbcaa8ccc0fa4701d80042d4ebf1"},
|
492
|
+
{file = "coverage-7.5.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:705f3d7c2b098c40f5b81790a5fedb274113373d4d1a69e65f8b68b0cc26f6db"},
|
493
|
+
{file = "coverage-7.5.3-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b1196e13c45e327d6cd0b6e471530a1882f1017eb83c6229fc613cd1a11b53cd"},
|
494
|
+
{file = "coverage-7.5.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:015eddc5ccd5364dcb902eaecf9515636806fa1e0d5bef5769d06d0f31b54523"},
|
495
|
+
{file = "coverage-7.5.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:fd27d8b49e574e50caa65196d908f80e4dff64d7e592d0c59788b45aad7e8b35"},
|
496
|
+
{file = "coverage-7.5.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:33fc65740267222fc02975c061eb7167185fef4cc8f2770267ee8bf7d6a42f84"},
|
497
|
+
{file = "coverage-7.5.3-cp312-cp312-win32.whl", hash = "sha256:7b2a19e13dfb5c8e145c7a6ea959485ee8e2204699903c88c7d25283584bfc08"},
|
498
|
+
{file = "coverage-7.5.3-cp312-cp312-win_amd64.whl", hash = "sha256:0bbddc54bbacfc09b3edaec644d4ac90c08ee8ed4844b0f86227dcda2d428fcb"},
|
499
|
+
{file = "coverage-7.5.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:f78300789a708ac1f17e134593f577407d52d0417305435b134805c4fb135adb"},
|
500
|
+
{file = "coverage-7.5.3-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:b368e1aee1b9b75757942d44d7598dcd22a9dbb126affcbba82d15917f0cc155"},
|
501
|
+
{file = "coverage-7.5.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f836c174c3a7f639bded48ec913f348c4761cbf49de4a20a956d3431a7c9cb24"},
|
502
|
+
{file = "coverage-7.5.3-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:244f509f126dc71369393ce5fea17c0592c40ee44e607b6d855e9c4ac57aac98"},
|
503
|
+
{file = "coverage-7.5.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c4c2872b3c91f9baa836147ca33650dc5c172e9273c808c3c3199c75490e709d"},
|
504
|
+
{file = "coverage-7.5.3-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:dd4b3355b01273a56b20c219e74e7549e14370b31a4ffe42706a8cda91f19f6d"},
|
505
|
+
{file = "coverage-7.5.3-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:f542287b1489c7a860d43a7d8883e27ca62ab84ca53c965d11dac1d3a1fab7ce"},
|
506
|
+
{file = "coverage-7.5.3-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:75e3f4e86804023e991096b29e147e635f5e2568f77883a1e6eed74512659ab0"},
|
507
|
+
{file = "coverage-7.5.3-cp38-cp38-win32.whl", hash = "sha256:c59d2ad092dc0551d9f79d9d44d005c945ba95832a6798f98f9216ede3d5f485"},
|
508
|
+
{file = "coverage-7.5.3-cp38-cp38-win_amd64.whl", hash = "sha256:fa21a04112c59ad54f69d80e376f7f9d0f5f9123ab87ecd18fbb9ec3a2beed56"},
|
509
|
+
{file = "coverage-7.5.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:f5102a92855d518b0996eb197772f5ac2a527c0ec617124ad5242a3af5e25f85"},
|
510
|
+
{file = "coverage-7.5.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:d1da0a2e3b37b745a2b2a678a4c796462cf753aebf94edcc87dcc6b8641eae31"},
|
511
|
+
{file = "coverage-7.5.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8383a6c8cefba1b7cecc0149415046b6fc38836295bc4c84e820872eb5478b3d"},
|
512
|
+
{file = "coverage-7.5.3-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9aad68c3f2566dfae84bf46295a79e79d904e1c21ccfc66de88cd446f8686341"},
|
513
|
+
{file = "coverage-7.5.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2e079c9ec772fedbade9d7ebc36202a1d9ef7291bc9b3a024ca395c4d52853d7"},
|
514
|
+
{file = "coverage-7.5.3-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:bde997cac85fcac227b27d4fb2c7608a2c5f6558469b0eb704c5726ae49e1c52"},
|
515
|
+
{file = "coverage-7.5.3-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:990fb20b32990b2ce2c5f974c3e738c9358b2735bc05075d50a6f36721b8f303"},
|
516
|
+
{file = "coverage-7.5.3-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:3d5a67f0da401e105753d474369ab034c7bae51a4c31c77d94030d59e41df5bd"},
|
517
|
+
{file = "coverage-7.5.3-cp39-cp39-win32.whl", hash = "sha256:e08c470c2eb01977d221fd87495b44867a56d4d594f43739a8028f8646a51e0d"},
|
518
|
+
{file = "coverage-7.5.3-cp39-cp39-win_amd64.whl", hash = "sha256:1d2a830ade66d3563bb61d1e3c77c8def97b30ed91e166c67d0632c018f380f0"},
|
519
|
+
{file = "coverage-7.5.3-pp38.pp39.pp310-none-any.whl", hash = "sha256:3538d8fb1ee9bdd2e2692b3b18c22bb1c19ffbefd06880f5ac496e42d7bb3884"},
|
520
|
+
{file = "coverage-7.5.3.tar.gz", hash = "sha256:04aefca5190d1dc7a53a4c1a5a7f8568811306d7a8ee231c42fb69215571944f"},
|
521
521
|
]
|
522
522
|
|
523
523
|
[package.extras]
|
@@ -525,43 +525,43 @@ toml = ["tomli"]
|
|
525
525
|
|
526
526
|
[[package]]
|
527
527
|
name = "cryptography"
|
528
|
-
version = "42.0.
|
528
|
+
version = "42.0.8"
|
529
529
|
description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers."
|
530
530
|
optional = false
|
531
531
|
python-versions = ">=3.7"
|
532
532
|
files = [
|
533
|
-
{file = "cryptography-42.0.
|
534
|
-
{file = "cryptography-42.0.
|
535
|
-
{file = "cryptography-42.0.
|
536
|
-
{file = "cryptography-42.0.
|
537
|
-
{file = "cryptography-42.0.
|
538
|
-
{file = "cryptography-42.0.
|
539
|
-
{file = "cryptography-42.0.
|
540
|
-
{file = "cryptography-42.0.
|
541
|
-
{file = "cryptography-42.0.
|
542
|
-
{file = "cryptography-42.0.
|
543
|
-
{file = "cryptography-42.0.
|
544
|
-
{file = "cryptography-42.0.
|
545
|
-
{file = "cryptography-42.0.
|
546
|
-
{file = "cryptography-42.0.
|
547
|
-
{file = "cryptography-42.0.
|
548
|
-
{file = "cryptography-42.0.
|
549
|
-
{file = "cryptography-42.0.
|
550
|
-
{file = "cryptography-42.0.
|
551
|
-
{file = "cryptography-42.0.
|
552
|
-
{file = "cryptography-42.0.
|
553
|
-
{file = "cryptography-42.0.
|
554
|
-
{file = "cryptography-42.0.
|
555
|
-
{file = "cryptography-42.0.
|
556
|
-
{file = "cryptography-42.0.
|
557
|
-
{file = "cryptography-42.0.
|
558
|
-
{file = "cryptography-42.0.
|
559
|
-
{file = "cryptography-42.0.
|
560
|
-
{file = "cryptography-42.0.
|
561
|
-
{file = "cryptography-42.0.
|
562
|
-
{file = "cryptography-42.0.
|
563
|
-
{file = "cryptography-42.0.
|
564
|
-
{file = "cryptography-42.0.
|
533
|
+
{file = "cryptography-42.0.8-cp37-abi3-macosx_10_12_universal2.whl", hash = "sha256:81d8a521705787afe7a18d5bfb47ea9d9cc068206270aad0b96a725022e18d2e"},
|
534
|
+
{file = "cryptography-42.0.8-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:961e61cefdcb06e0c6d7e3a1b22ebe8b996eb2bf50614e89384be54c48c6b63d"},
|
535
|
+
{file = "cryptography-42.0.8-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e3ec3672626e1b9e55afd0df6d774ff0e953452886e06e0f1eb7eb0c832e8902"},
|
536
|
+
{file = "cryptography-42.0.8-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e599b53fd95357d92304510fb7bda8523ed1f79ca98dce2f43c115950aa78801"},
|
537
|
+
{file = "cryptography-42.0.8-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:5226d5d21ab681f432a9c1cf8b658c0cb02533eece706b155e5fbd8a0cdd3949"},
|
538
|
+
{file = "cryptography-42.0.8-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:6b7c4f03ce01afd3b76cf69a5455caa9cfa3de8c8f493e0d3ab7d20611c8dae9"},
|
539
|
+
{file = "cryptography-42.0.8-cp37-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:2346b911eb349ab547076f47f2e035fc8ff2c02380a7cbbf8d87114fa0f1c583"},
|
540
|
+
{file = "cryptography-42.0.8-cp37-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:ad803773e9df0b92e0a817d22fd8a3675493f690b96130a5e24f1b8fabbea9c7"},
|
541
|
+
{file = "cryptography-42.0.8-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:2f66d9cd9147ee495a8374a45ca445819f8929a3efcd2e3df6428e46c3cbb10b"},
|
542
|
+
{file = "cryptography-42.0.8-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:d45b940883a03e19e944456a558b67a41160e367a719833c53de6911cabba2b7"},
|
543
|
+
{file = "cryptography-42.0.8-cp37-abi3-win32.whl", hash = "sha256:a0c5b2b0585b6af82d7e385f55a8bc568abff8923af147ee3c07bd8b42cda8b2"},
|
544
|
+
{file = "cryptography-42.0.8-cp37-abi3-win_amd64.whl", hash = "sha256:57080dee41209e556a9a4ce60d229244f7a66ef52750f813bfbe18959770cfba"},
|
545
|
+
{file = "cryptography-42.0.8-cp39-abi3-macosx_10_12_universal2.whl", hash = "sha256:dea567d1b0e8bc5764b9443858b673b734100c2871dc93163f58c46a97a83d28"},
|
546
|
+
{file = "cryptography-42.0.8-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c4783183f7cb757b73b2ae9aed6599b96338eb957233c58ca8f49a49cc32fd5e"},
|
547
|
+
{file = "cryptography-42.0.8-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a0608251135d0e03111152e41f0cc2392d1e74e35703960d4190b2e0f4ca9c70"},
|
548
|
+
{file = "cryptography-42.0.8-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:dc0fdf6787f37b1c6b08e6dfc892d9d068b5bdb671198c72072828b80bd5fe4c"},
|
549
|
+
{file = "cryptography-42.0.8-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:9c0c1716c8447ee7dbf08d6db2e5c41c688544c61074b54fc4564196f55c25a7"},
|
550
|
+
{file = "cryptography-42.0.8-cp39-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:fff12c88a672ab9c9c1cf7b0c80e3ad9e2ebd9d828d955c126be4fd3e5578c9e"},
|
551
|
+
{file = "cryptography-42.0.8-cp39-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:cafb92b2bc622cd1aa6a1dce4b93307792633f4c5fe1f46c6b97cf67073ec961"},
|
552
|
+
{file = "cryptography-42.0.8-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:31f721658a29331f895a5a54e7e82075554ccfb8b163a18719d342f5ffe5ecb1"},
|
553
|
+
{file = "cryptography-42.0.8-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:b297f90c5723d04bcc8265fc2a0f86d4ea2e0f7ab4b6994459548d3a6b992a14"},
|
554
|
+
{file = "cryptography-42.0.8-cp39-abi3-win32.whl", hash = "sha256:2f88d197e66c65be5e42cd72e5c18afbfae3f741742070e3019ac8f4ac57262c"},
|
555
|
+
{file = "cryptography-42.0.8-cp39-abi3-win_amd64.whl", hash = "sha256:fa76fbb7596cc5839320000cdd5d0955313696d9511debab7ee7278fc8b5c84a"},
|
556
|
+
{file = "cryptography-42.0.8-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:ba4f0a211697362e89ad822e667d8d340b4d8d55fae72cdd619389fb5912eefe"},
|
557
|
+
{file = "cryptography-42.0.8-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:81884c4d096c272f00aeb1f11cf62ccd39763581645b0812e99a91505fa48e0c"},
|
558
|
+
{file = "cryptography-42.0.8-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:c9bb2ae11bfbab395bdd072985abde58ea9860ed84e59dbc0463a5d0159f5b71"},
|
559
|
+
{file = "cryptography-42.0.8-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:7016f837e15b0a1c119d27ecd89b3515f01f90a8615ed5e9427e30d9cdbfed3d"},
|
560
|
+
{file = "cryptography-42.0.8-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:5a94eccb2a81a309806027e1670a358b99b8fe8bfe9f8d329f27d72c094dde8c"},
|
561
|
+
{file = "cryptography-42.0.8-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:dec9b018df185f08483f294cae6ccac29e7a6e0678996587363dc352dc65c842"},
|
562
|
+
{file = "cryptography-42.0.8-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:343728aac38decfdeecf55ecab3264b015be68fc2816ca800db649607aeee648"},
|
563
|
+
{file = "cryptography-42.0.8-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:013629ae70b40af70c9a7a5db40abe5d9054e6f4380e50ce769947b73bf3caad"},
|
564
|
+
{file = "cryptography-42.0.8.tar.gz", hash = "sha256:8d09d05439ce7baa8e9e95b07ec5b6c886f548deb7e0f69ef25f64b3bce842f2"},
|
565
565
|
]
|
566
566
|
|
567
567
|
[package.dependencies]
|
@@ -711,25 +711,6 @@ files = [
|
|
711
711
|
{file = "idna-3.7.tar.gz", hash = "sha256:028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc"},
|
712
712
|
]
|
713
713
|
|
714
|
-
[[package]]
|
715
|
-
name = "importlib-metadata"
|
716
|
-
version = "7.1.0"
|
717
|
-
description = "Read metadata from Python packages"
|
718
|
-
optional = false
|
719
|
-
python-versions = ">=3.8"
|
720
|
-
files = [
|
721
|
-
{file = "importlib_metadata-7.1.0-py3-none-any.whl", hash = "sha256:30962b96c0c223483ed6cc7280e7f0199feb01a0e40cfae4d4450fc6fab1f570"},
|
722
|
-
{file = "importlib_metadata-7.1.0.tar.gz", hash = "sha256:b78938b926ee8d5f020fc4772d487045805a55ddbad2ecf21c6d60938dc7fcd2"},
|
723
|
-
]
|
724
|
-
|
725
|
-
[package.dependencies]
|
726
|
-
zipp = ">=0.5"
|
727
|
-
|
728
|
-
[package.extras]
|
729
|
-
docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"]
|
730
|
-
perf = ["ipython"]
|
731
|
-
testing = ["flufl.flake8", "importlib-resources (>=1.3)", "jaraco.test (>=5.4)", "packaging", "pyfakefs", "pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy", "pytest-perf (>=0.9.2)", "pytest-ruff (>=0.2.1)"]
|
732
|
-
|
733
714
|
[[package]]
|
734
715
|
name = "iniconfig"
|
735
716
|
version = "2.0.0"
|
@@ -903,17 +884,16 @@ test = ["pytest (<5.4)", "pytest-cov"]
|
|
903
884
|
|
904
885
|
[[package]]
|
905
886
|
name = "mpremote"
|
906
|
-
version = "1.
|
887
|
+
version = "1.23.0"
|
907
888
|
description = "Tool for interacting remotely with MicroPython devices"
|
908
889
|
optional = false
|
909
890
|
python-versions = ">=3.4"
|
910
891
|
files = [
|
911
|
-
{file = "mpremote-1.
|
912
|
-
{file = "mpremote-1.
|
892
|
+
{file = "mpremote-1.23.0-py3-none-any.whl", hash = "sha256:e197a086eca6367da63bb716434a4e8075e0ea1886c4452bb3de046853d0ae5d"},
|
893
|
+
{file = "mpremote-1.23.0.tar.gz", hash = "sha256:efe1f9758d8694d29981852c0a946a207765797bc596ef405e3e01517a5f1d9c"},
|
913
894
|
]
|
914
895
|
|
915
896
|
[package.dependencies]
|
916
|
-
importlib-metadata = ">=1.4"
|
917
897
|
pyserial = ">=3.3"
|
918
898
|
|
919
899
|
[[package]]
|
@@ -1312,13 +1292,13 @@ files = [
|
|
1312
1292
|
|
1313
1293
|
[[package]]
|
1314
1294
|
name = "requests"
|
1315
|
-
version = "2.32.
|
1295
|
+
version = "2.32.3"
|
1316
1296
|
description = "Python HTTP for Humans."
|
1317
1297
|
optional = false
|
1318
1298
|
python-versions = ">=3.8"
|
1319
1299
|
files = [
|
1320
|
-
{file = "requests-2.32.
|
1321
|
-
{file = "requests-2.32.
|
1300
|
+
{file = "requests-2.32.3-py3-none-any.whl", hash = "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6"},
|
1301
|
+
{file = "requests-2.32.3.tar.gz", hash = "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760"},
|
1322
1302
|
]
|
1323
1303
|
|
1324
1304
|
[package.dependencies]
|
@@ -1352,13 +1332,13 @@ jupyter = ["ipywidgets (>=7.5.1,<9)"]
|
|
1352
1332
|
|
1353
1333
|
[[package]]
|
1354
1334
|
name = "rich-click"
|
1355
|
-
version = "1.8.
|
1335
|
+
version = "1.8.3"
|
1356
1336
|
description = "Format click help output nicely with rich"
|
1357
1337
|
optional = false
|
1358
1338
|
python-versions = ">=3.7"
|
1359
1339
|
files = [
|
1360
|
-
{file = "rich_click-1.8.
|
1361
|
-
{file = "rich_click-1.8.
|
1340
|
+
{file = "rich_click-1.8.3-py3-none-any.whl", hash = "sha256:636d9c040d31c5eee242201b5bf4f2d358bfae4db14bb22ec1cafa717cfd02cd"},
|
1341
|
+
{file = "rich_click-1.8.3.tar.gz", hash = "sha256:6d75bdfa7aa9ed2c467789a0688bc6da23fbe3a143e19aa6ad3f8bac113d2ab3"},
|
1362
1342
|
]
|
1363
1343
|
|
1364
1344
|
[package.dependencies]
|
@@ -1448,13 +1428,13 @@ files = [
|
|
1448
1428
|
|
1449
1429
|
[[package]]
|
1450
1430
|
name = "typing-extensions"
|
1451
|
-
version = "4.12.
|
1431
|
+
version = "4.12.2"
|
1452
1432
|
description = "Backported and Experimental Type Hints for Python 3.8+"
|
1453
1433
|
optional = false
|
1454
1434
|
python-versions = ">=3.8"
|
1455
1435
|
files = [
|
1456
|
-
{file = "typing_extensions-4.12.
|
1457
|
-
{file = "typing_extensions-4.12.
|
1436
|
+
{file = "typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d"},
|
1437
|
+
{file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"},
|
1458
1438
|
]
|
1459
1439
|
|
1460
1440
|
[[package]]
|
@@ -1602,21 +1582,6 @@ files = [
|
|
1602
1582
|
{file = "xmod-1.8.1.tar.gz", hash = "sha256:38c76486b9d672c546d57d8035df0beb7f4a9b088bc3fb2de5431ae821444377"},
|
1603
1583
|
]
|
1604
1584
|
|
1605
|
-
[[package]]
|
1606
|
-
name = "zipp"
|
1607
|
-
version = "3.19.0"
|
1608
|
-
description = "Backport of pathlib-compatible object wrapper for zip files"
|
1609
|
-
optional = false
|
1610
|
-
python-versions = ">=3.8"
|
1611
|
-
files = [
|
1612
|
-
{file = "zipp-3.19.0-py3-none-any.whl", hash = "sha256:96dc6ad62f1441bcaccef23b274ec471518daf4fbbc580341204936a5a3dddec"},
|
1613
|
-
{file = "zipp-3.19.0.tar.gz", hash = "sha256:952df858fb3164426c976d9338d3961e8e8b3758e2e059e0f754b8c4262625ee"},
|
1614
|
-
]
|
1615
|
-
|
1616
|
-
[package.extras]
|
1617
|
-
docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"]
|
1618
|
-
testing = ["big-O", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy", "pytest-ruff (>=0.2.1)"]
|
1619
|
-
|
1620
1585
|
[metadata]
|
1621
1586
|
lock-version = "2.0"
|
1622
1587
|
python-versions = ">=3.8.1,<4.0"
|
mpflash/pyproject.toml
CHANGED
stubber/__init__.py
CHANGED
stubber/board/createstubs.py
CHANGED
@@ -24,7 +24,7 @@ try:
|
|
24
24
|
except ImportError:
|
25
25
|
from ucollections import OrderedDict # type: ignore
|
26
26
|
|
27
|
-
__version__ = "v1.20.
|
27
|
+
__version__ = "v1.20.5"
|
28
28
|
ENOENT = 2
|
29
29
|
_MAX_CLASS_LEVEL = 2 # Max class nesting
|
30
30
|
LIBS = ["lib", "/lib", "/sd/lib", "/flash/lib", "."]
|
@@ -227,7 +227,6 @@ class Stubber:
|
|
227
227
|
# Start a new file
|
228
228
|
ensure_folder(file_name)
|
229
229
|
with open(file_name, "w") as fp:
|
230
|
-
# todo: improve header
|
231
230
|
info_ = str(self.info).replace("OrderedDict(", "").replace("})", "}")
|
232
231
|
s = '"""\nModule: \'{0}\' on {1}\n"""\n# MCU: {2}\n# Stubber: {3}\n'.format(
|
233
232
|
module_name, self._fwid, info_, __version__
|
@@ -596,10 +595,10 @@ def _info(): # type:() -> dict[str, str]
|
|
596
595
|
if (
|
597
596
|
info["version"]
|
598
597
|
and info["version"].endswith(".0")
|
599
|
-
and info["version"] >= "1.10.0" # versions from 1.10.0 to 1.20.
|
598
|
+
and info["version"] >= "1.10.0" # versions from 1.10.0 to 1.20.5 do not have a micro .0
|
600
599
|
and info["version"] <= "1.19.9"
|
601
600
|
):
|
602
|
-
# versions from 1.10.0 to 1.20.
|
601
|
+
# versions from 1.10.0 to 1.20.5 do not have a micro .0
|
603
602
|
info["version"] = info["version"][:-2]
|
604
603
|
|
605
604
|
# spell-checker: disable
|
@@ -838,6 +837,8 @@ def main():
|
|
838
837
|
"interstate75",
|
839
838
|
"io",
|
840
839
|
"jpegdec",
|
840
|
+
"js",
|
841
|
+
"jsffi",
|
841
842
|
"json",
|
842
843
|
"lcd160cr",
|
843
844
|
"lodepng",
|
@@ -863,6 +864,7 @@ def main():
|
|
863
864
|
"network",
|
864
865
|
"ntptime",
|
865
866
|
"onewire",
|
867
|
+
"openamp",
|
866
868
|
"os",
|
867
869
|
"pcf85063a",
|
868
870
|
"picoexplorer",
|
@@ -941,6 +943,12 @@ def main():
|
|
941
943
|
"ure",
|
942
944
|
"urequests",
|
943
945
|
"urllib/urequest",
|
946
|
+
"usb/device",
|
947
|
+
"usb/device/cdc",
|
948
|
+
"usb/device/hid",
|
949
|
+
"usb/device/keyboard",
|
950
|
+
"usb/device/midi",
|
951
|
+
"usb/device/mouse",
|
944
952
|
"uselect",
|
945
953
|
"usocket",
|
946
954
|
"ussl",
|
stubber/board/createstubs_db.py
CHANGED
@@ -18,7 +18,7 @@ Create stubs for (all) modules on a MicroPython board.
|
|
18
18
|
- cross compilation, using mpy-cross, to avoid the compilation step on the micropython device
|
19
19
|
|
20
20
|
|
21
|
-
This variant was generated from createstubs.py by micropython-stubber v1.20.
|
21
|
+
This variant was generated from createstubs.py by micropython-stubber v1.20.5
|
22
22
|
"""
|
23
23
|
|
24
24
|
# Copyright (c) 2019-2024 Jos Verlinde
|
@@ -43,7 +43,7 @@ try:
|
|
43
43
|
except ImportError:
|
44
44
|
from ucollections import OrderedDict # type: ignore
|
45
45
|
|
46
|
-
__version__ = "v1.20.
|
46
|
+
__version__ = "v1.20.5"
|
47
47
|
ENOENT = 2
|
48
48
|
_MAX_CLASS_LEVEL = 2 # Max class nesting
|
49
49
|
LIBS = ["lib", "/lib", "/sd/lib", "/flash/lib", "."]
|
@@ -246,7 +246,6 @@ class Stubber:
|
|
246
246
|
# Start a new file
|
247
247
|
ensure_folder(file_name)
|
248
248
|
with open(file_name, "w") as fp:
|
249
|
-
# todo: improve header
|
250
249
|
info_ = str(self.info).replace("OrderedDict(", "").replace("})", "}")
|
251
250
|
s = '"""\nModule: \'{0}\' on {1}\n"""\n# MCU: {2}\n# Stubber: {3}\n'.format(module_name, self._fwid, info_, __version__)
|
252
251
|
fp.write(s)
|
@@ -607,10 +606,10 @@ def _info(): # type:() -> dict[str, str]
|
|
607
606
|
if (
|
608
607
|
info["version"]
|
609
608
|
and info["version"].endswith(".0")
|
610
|
-
and info["version"] >= "1.10.0" # versions from 1.10.0 to 1.20.
|
609
|
+
and info["version"] >= "1.10.0" # versions from 1.10.0 to 1.20.5 do not have a micro .0
|
611
610
|
and info["version"] <= "1.19.9"
|
612
611
|
):
|
613
|
-
# versions from 1.10.0 to 1.20.
|
612
|
+
# versions from 1.10.0 to 1.20.5 do not have a micro .0
|
614
613
|
info["version"] = info["version"][:-2]
|
615
614
|
|
616
615
|
# spell-checker: disable
|
@@ -51,7 +51,7 @@ try:from machine import reset
|
|
51
51
|
except O:pass
|
52
52
|
try:from collections import OrderedDict as l
|
53
53
|
except O:from ucollections import OrderedDict as l
|
54
|
-
__version__='v1.20.
|
54
|
+
__version__='v1.20.5'
|
55
55
|
A3=2
|
56
56
|
A4=2
|
57
57
|
A5=['lib','/lib','/sd/lib','/flash/lib',J]
|
Binary file
|