micropython-stubber 1.24.2__py3-none-any.whl → 1.25.0__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 (100) hide show
  1. {micropython_stubber-1.24.2.dist-info → micropython_stubber-1.25.0.dist-info}/METADATA +8 -29
  2. micropython_stubber-1.25.0.dist-info/RECORD +110 -0
  3. {micropython_stubber-1.24.2.dist-info → micropython_stubber-1.25.0.dist-info}/WHEEL +1 -1
  4. stubber/__init__.py +1 -1
  5. stubber/board/createstubs.py +22 -12
  6. stubber/board/createstubs_db.py +24 -14
  7. stubber/board/createstubs_db_min.py +205 -200
  8. stubber/board/createstubs_db_mpy.mpy +0 -0
  9. stubber/board/createstubs_mem.py +23 -13
  10. stubber/board/createstubs_mem_min.py +192 -186
  11. stubber/board/createstubs_mem_mpy.mpy +0 -0
  12. stubber/board/createstubs_min.py +194 -188
  13. stubber/board/createstubs_mpy.mpy +0 -0
  14. stubber/board/pkg_full.json +22 -0
  15. stubber/board/pkg_minified.json +22 -0
  16. stubber/board/pkg_mpy.json +22 -0
  17. stubber/bulk/mcu_stubber.py +62 -102
  18. stubber/codemod/_partials/db_main.py +1 -1
  19. stubber/codemod/board.py +1 -1
  20. stubber/codemod/enrich.py +12 -10
  21. stubber/codemod/merge_docstub.py +180 -69
  22. stubber/codemod/visitors/type_helpers.py +143 -41
  23. stubber/commands/clone_cmd.py +1 -1
  24. stubber/commands/enrich_folder_cmd.py +17 -17
  25. stubber/commands/get_core_cmd.py +1 -1
  26. stubber/commands/get_docstubs_cmd.py +25 -6
  27. stubber/commands/get_frozen_cmd.py +4 -3
  28. stubber/commands/merge_cmd.py +2 -4
  29. stubber/commands/stub_cmd.py +1 -1
  30. stubber/merge_config.py +5 -39
  31. stubber/minify.py +3 -3
  32. stubber/modcat.py +118 -0
  33. stubber/publish/merge_docstubs.py +21 -3
  34. stubber/publish/stubpackage.py +10 -27
  35. stubber/rst/lookup.py +3 -23
  36. stubber/stubs_from_docs.py +3 -2
  37. stubber/{cst_transformer.py → typing_collector.py} +39 -4
  38. stubber/utils/post.py +2 -2
  39. stubber/utils/repos.py +42 -6
  40. stubber/utils/stubmaker.py +1 -1
  41. micropython_stubber-1.24.2.dist-info/RECORD +0 -163
  42. mpflash/README.md +0 -220
  43. mpflash/libusb_flash.ipynb +0 -203
  44. mpflash/mpflash/__init__.py +0 -0
  45. mpflash/mpflash/add_firmware.py +0 -98
  46. mpflash/mpflash/ask_input.py +0 -236
  47. mpflash/mpflash/basicgit.py +0 -324
  48. mpflash/mpflash/bootloader/__init__.py +0 -2
  49. mpflash/mpflash/bootloader/activate.py +0 -60
  50. mpflash/mpflash/bootloader/detect.py +0 -82
  51. mpflash/mpflash/bootloader/manual.py +0 -101
  52. mpflash/mpflash/bootloader/micropython.py +0 -12
  53. mpflash/mpflash/bootloader/touch1200.py +0 -36
  54. mpflash/mpflash/cli_download.py +0 -129
  55. mpflash/mpflash/cli_flash.py +0 -224
  56. mpflash/mpflash/cli_group.py +0 -111
  57. mpflash/mpflash/cli_list.py +0 -87
  58. mpflash/mpflash/cli_main.py +0 -39
  59. mpflash/mpflash/common.py +0 -217
  60. mpflash/mpflash/config.py +0 -44
  61. mpflash/mpflash/connected.py +0 -96
  62. mpflash/mpflash/download.py +0 -364
  63. mpflash/mpflash/downloaded.py +0 -138
  64. mpflash/mpflash/errors.py +0 -9
  65. mpflash/mpflash/flash/__init__.py +0 -55
  66. mpflash/mpflash/flash/esp.py +0 -59
  67. mpflash/mpflash/flash/stm32.py +0 -19
  68. mpflash/mpflash/flash/stm32_dfu.py +0 -104
  69. mpflash/mpflash/flash/uf2/__init__.py +0 -104
  70. mpflash/mpflash/flash/uf2/boardid.py +0 -15
  71. mpflash/mpflash/flash/uf2/linux.py +0 -136
  72. mpflash/mpflash/flash/uf2/macos.py +0 -42
  73. mpflash/mpflash/flash/uf2/uf2disk.py +0 -12
  74. mpflash/mpflash/flash/uf2/windows.py +0 -43
  75. mpflash/mpflash/flash/worklist.py +0 -170
  76. mpflash/mpflash/list.py +0 -106
  77. mpflash/mpflash/logger.py +0 -41
  78. mpflash/mpflash/mpboard_id/__init__.py +0 -98
  79. mpflash/mpflash/mpboard_id/add_boards.py +0 -265
  80. mpflash/mpflash/mpboard_id/board.py +0 -37
  81. mpflash/mpflash/mpboard_id/board_id.py +0 -92
  82. mpflash/mpflash/mpboard_id/board_info.zip +0 -0
  83. mpflash/mpflash/mpboard_id/store.py +0 -48
  84. mpflash/mpflash/mpremoteboard/__init__.py +0 -271
  85. mpflash/mpflash/mpremoteboard/mpy_fw_info.py +0 -152
  86. mpflash/mpflash/mpremoteboard/runner.py +0 -140
  87. mpflash/mpflash/vendor/board_database.py +0 -185
  88. mpflash/mpflash/vendor/click_aliases.py +0 -91
  89. mpflash/mpflash/vendor/dfu.py +0 -165
  90. mpflash/mpflash/vendor/pico-universal-flash-nuke/LICENSE.txt +0 -21
  91. mpflash/mpflash/vendor/pico-universal-flash-nuke/universal_flash_nuke.uf2 +0 -0
  92. mpflash/mpflash/vendor/pydfu.py +0 -605
  93. mpflash/mpflash/vendor/readme.md +0 -14
  94. mpflash/mpflash/versions.py +0 -123
  95. mpflash/poetry.lock +0 -2869
  96. mpflash/pyproject.toml +0 -66
  97. mpflash/stm32_udev_rules.md +0 -63
  98. stubber/codemod/test_enrich.py +0 -87
  99. {micropython_stubber-1.24.2.dist-info → micropython_stubber-1.25.0.dist-info}/LICENSE +0 -0
  100. {micropython_stubber-1.24.2.dist-info → micropython_stubber-1.25.0.dist-info}/entry_points.txt +0 -0
@@ -1,15 +1,14 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: micropython-stubber
3
- Version: 1.24.2
3
+ Version: 1.25.0
4
4
  Summary: Tooling to create and maintain stubs for MicroPython
5
5
  License: MIT
6
6
  Keywords: MicroPython,stubs,vscode,pyright,linting,static type check
7
7
  Author: Jos Verlinde
8
8
  Author-email: jos_verlinde@hotmail.com
9
- Requires-Python: >=3.9,<4.0
9
+ Requires-Python: >=3.9.2,<4.0
10
10
  Classifier: License :: OSI Approved :: MIT License
11
11
  Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.9
13
12
  Classifier: Programming Language :: Python :: 3.10
14
13
  Classifier: Programming Language :: Python :: 3.11
15
14
  Classifier: Programming Language :: Python :: 3.12
@@ -41,7 +40,7 @@ Requires-Dist: pyserial (>=3.5)
41
40
  Requires-Dist: python-minifier (>=2.7.0,<3.0.0) ; python_version < "3.14"
42
41
  Requires-Dist: requests (>=2.32.3,<3.0.0)
43
42
  Requires-Dist: rich-click (>=1.8.3,<2.0.0)
44
- Requires-Dist: tenacity (>=8.2.2,<9.0.0)
43
+ Requires-Dist: tenacity (==9.0.0)
45
44
  Requires-Dist: tomli (>=2.0.1,<3.0.0) ; python_version < "3.11"
46
45
  Requires-Dist: tomli-w (>=1.0.0,<2.0.0)
47
46
  Requires-Dist: typed-config (>=1.3.0,<2.0.0)
@@ -60,7 +59,6 @@ Description-Content-Type: text/markdown
60
59
  [![All Contributors](https://img.shields.io/badge/all_contributors-19-green.svg?style=flat-square)](#Contributions)
61
60
  <!-- break -->
62
61
  [![pytest stubber](https://github.com/Josverl/micropython-stubber/actions/workflows/pytest.yml/badge.svg)](https://github.com/Josverl/micropython-stubber/actions/workflows/pytest.yml)
63
- [![pytest mpflash](https://github.com/Josverl/micropython-stubber/actions/workflows/pytest_mpflash.yml/badge.svg)](https://github.com/Josverl/micropython-stubber/actions/workflows/pytest_mpflash.yml)
64
62
  [![Documentation Status](https://readthedocs.org/projects/micropython-stubber/badge/?version=latest)](https://micropython-stubber.readthedocs.io/en/latest/?badge=latest "Document build status badge")
65
63
  <!-- break -->
66
64
  [![Open in VSCode](https://img.shields.io/static/v1?logo=visualstudiocode&label=&message=Open%20in%20Visual%20Studio%20Code&labelColor=2c2c32&color=007acc&logoColor=007acc
@@ -116,11 +114,8 @@ For more details how to use the stubs please refer to [the documentation on RTD]
116
114
  1. The sister-repo [**MicroPython-stubs**][stubs-repo] contains [all stubs][all-stubs] I have collected with the help of others, and which can be used directly.
117
115
  That repo also contains examples configuration files that can be easily adopted to your setup.
118
116
 
119
- 2. A second repo [micropy-stubs repo][stubs-repo2] maintained by BradenM, also contains stubs, but in a structure only used and distributed by the [micropy-cli](#using-micropy-cli) tool.
120
- You should use micropy-cli to consume stubs from that repo.
121
-
122
- The (stretch) goal is to create a VSCode add-in to simplify the configuration, and allow easy switching between different firmwares and versions.
123
-
117
+ 2. Micropython-stubber uses [MPFlash](https://github.com/Josverl/mpflash?tab=readme-ov-file) in some of its operations.
118
+ mpflash was formerly hosted in this repo, but has been moved to its own repo.
124
119
 
125
120
  ## Install and basic usage of the stubber tool
126
121
 
@@ -173,7 +168,7 @@ for more info see [**Renaming a branch**](https://docs.github.com/en/repositorie
173
168
 
174
169
  ## Licensing
175
170
 
176
- Both `MicroPython-Stubber` and `mpflash` are licensed under the MIT license, and all contributions should follow this [LICENSE](LICENSE).
171
+ `MicroPython-Stubber` is licensed under the MIT license, and all contributions should follow this [LICENSE](LICENSE).
177
172
 
178
173
 
179
174
  # Contributions
@@ -181,6 +176,7 @@ Both `MicroPython-Stubber` and `mpflash` are licensed under the MIT license, and
181
176
  <!--
182
177
  To add via the cli run the following command:
183
178
  npx all-contributors-cli add user things
179
+ npx all-contributors-cli generate
184
180
 
185
181
  - bug
186
182
  - tool
@@ -200,7 +196,7 @@ npx all-contributors-cli add user things
200
196
  <table>
201
197
  <tbody>
202
198
  <tr>
203
- <td align="center" valign="top" width="14.28%"><a href="https://github.com/Josverl"><img src="https://avatars2.githubusercontent.com/u/981654?v=4?s=100" width="100px;" alt="Jos Verlinde"/><br /><sub><b>Jos Verlinde</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/commits?author=josverl" title="Code">💻</a> <a href="#research-josverl" title="Research">🔬</a> <a href="#ideas-josverl" title="Ideas, Planning, & Feedback">🤔</a> <a href="#content-josverl" title="Content">🖋</a> <a href="#stubs-josverl" title="MicroPython stubs">🖍️</a> <a href="#test-josverl" title="Test">✅</a> <a href="#mpflash-josverl" title="mpflash">💥</a></td>
199
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/Josverl"><img src="https://avatars2.githubusercontent.com/u/981654?v=4?s=100" width="100px;" alt="Jos Verlinde"/><br /><sub><b>Jos Verlinde</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/commits?author=josverl" title="Code">💻</a> <a href="#research-josverl" title="Research">🔬</a> <a href="#ideas-josverl" title="Ideas, Planning, & Feedback">🤔</a> <a href="#content-josverl" title="Content">🖋</a> <a href="#stubs-josverl" title="MicroPython stubs">🖍️</a> <a href="#test-josverl" title="Test">✅</a></td>
204
200
  <td align="center" valign="top" width="14.28%"><a href="https://thonny.org/"><img src="https://avatars1.githubusercontent.com/u/46202078?v=4?s=100" width="100px;" alt="Thonny, Python IDE for beginners"/><br /><sub><b>Thonny, Python IDE for beginners</b></sub></a><br /><a href="#ideas-thonny" title="Ideas, Planning, & Feedback">🤔</a> <a href="#research-thonny" title="Research">🔬</a></td>
205
201
  <td align="center" valign="top" width="14.28%"><a href="https://micropython.org/"><img src="https://avatars1.githubusercontent.com/u/6298560?v=4?s=100" width="100px;" alt="MicroPython"/><br /><sub><b>MicroPython</b></sub></a><br /><a href="#data-micropython" title="Data">🔣</a> <a href="#stubs-micropython" title="MicroPython stubs">🖍️</a></td>
206
202
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/microsoft/pyright"><img src="https://avatars.githubusercontent.com/u/6154722?v=4?s=100" width="100px;" alt="pyright"/><br /><sub><b>pyright</b></sub></a><br /><a href="#tool-pyright" title="Tools">🔧</a></td>
@@ -229,23 +225,6 @@ npx all-contributors-cli add user things
229
225
  <tr>
230
226
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/yegorLitvinov"><img src="https://avatars.githubusercontent.com/u/20367310?v=4?s=100" width="100px;" alt="Egor Litvinov"/><br /><sub><b>Egor Litvinov</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3AyegorLitvinov" title="Bug reports">🐛</a></td>
231
227
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/samskiter"><img src="https://avatars.githubusercontent.com/u/1271643?v=4?s=100" width="100px;" alt="Sam Duke"/><br /><sub><b>Sam Duke</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/commits?author=samskiter" title="Code">💻</a></td>
232
- <td align="center" valign="top" width="14.28%"><a href="https://github.com/shariltumin"><img src="https://avatars.githubusercontent.com/u/186120?v=4?s=100" width="100px;" alt="shariltumin"/><br /><sub><b>shariltumin</b></sub></a><br /><a href="#mpflash-shariltumin" title="mpflash">💥</a> <a href="#test-shariltumin" title="Test">✅</a></td>
233
- <td align="center" valign="top" width="14.28%"><a href="https://github.com/mattytrentini"><img src="https://avatars.githubusercontent.com/u/194201?v=4?s=100" width="100px;" alt="Matt Trentini"/><br /><sub><b>Matt Trentini</b></sub></a><br /><a href="#mpflash-mattytrentini" title="mpflash">💥</a> <a href="#test-mattytrentini" title="Test">✅</a></td>
234
- <td align="center" valign="top" width="14.28%"><a href="http://scruss.com/blog/"><img src="https://avatars.githubusercontent.com/u/425706?v=4?s=100" width="100px;" alt="Stewart Russell"/><br /><sub><b>Stewart Russell</b></sub></a><br /><a href="#mpflash-scruss" title="mpflash">💥</a> <a href="#test-scruss" title="Test">✅</a></td>
235
- <td align="center" valign="top" width="14.28%"><a href="https://www.gitlab.com/alelec"><img src="https://avatars.githubusercontent.com/u/3318786?v=4?s=100" width="100px;" alt="Andrew Leech"/><br /><sub><b>Andrew Leech</b></sub></a><br /><a href="#mpflash-andrewleech" title="mpflash">💥</a> <a href="#test-andrewleech" title="Test">✅</a></td>
236
- <td align="center" valign="top" width="14.28%"><a href="https://github.com/wovo"><img src="https://avatars.githubusercontent.com/u/9039468?v=4?s=100" width="100px;" alt="Wouter van Ooijen"/><br /><sub><b>Wouter van Ooijen</b></sub></a><br /><a href="#mpflash-wovo" title="mpflash">💥</a> <a href="#test-wovo" title="Test">✅</a></td>
237
- </tr>
238
- <tr>
239
- <td align="center" valign="top" width="14.28%"><a href="https://github.com/shaneapowell"><img src="https://avatars.githubusercontent.com/u/12113620?v=4?s=100" width="100px;" alt="Shane Powell"/><br /><sub><b>Shane Powell</b></sub></a><br /><a href="#mpflash-shaneapowell" title="mpflash">💥</a> <a href="#test-shaneapowell" title="Test">✅</a></td>
240
- <td align="center" valign="top" width="14.28%"><a href="https://github.com/robert-hh"><img src="https://avatars.githubusercontent.com/u/12476868?v=4?s=100" width="100px;" alt="Robert Hammelrath"/><br /><sub><b>Robert Hammelrath</b></sub></a><br /><a href="#mpflash-robert-hh" title="mpflash">💥</a> <a href="#test-robert-hh" title="Test">✅</a></td>
241
- <td align="center" valign="top" width="14.28%"><a href="https://github.com/beetlegigg"><img src="https://avatars.githubusercontent.com/u/34552737?v=4?s=100" width="100px;" alt="Bg"/><br /><sub><b>Bg</b></sub></a><br /><a href="#mpflash-beetlegigg" title="mpflash">💥</a> <a href="#test-beetlegigg" title="Test">✅</a></td>
242
- <td align="center" valign="top" width="14.28%"><a href="https://github.com/rkompass"><img src="https://avatars.githubusercontent.com/u/90282516?v=4?s=100" width="100px;" alt="Raul Kompaß"/><br /><sub><b>Raul Kompaß</b></sub></a><br /><a href="#mpflash-rkompass" title="mpflash">💥</a> <a href="#test-rkompass" title="Test">✅</a></td>
243
- <td align="center" valign="top" width="14.28%"><a href="https://github.com/garryp4"><img src="https://avatars.githubusercontent.com/u/96994876?v=4?s=100" width="100px;" alt="garryp4"/><br /><sub><b>garryp4</b></sub></a><br /><a href="#mpflash-garryp4" title="mpflash">💥</a> <a href="#test-garryp4" title="Test">✅</a></td>
244
- <td align="center" valign="top" width="14.28%"><a href="https://github.com/shanepowell-ast"><img src="https://avatars.githubusercontent.com/u/102747617?v=4?s=100" width="100px;" alt="Shane Powell"/><br /><sub><b>Shane Powell</b></sub></a><br /><a href="#mpflash-shanepowell-ast" title="mpflash">💥</a> <a href="#test-shanepowell-ast" title="Test">✅</a></td>
245
- <td align="center" valign="top" width="14.28%"><a href="https://andypiper.org/"><img src="https://avatars.githubusercontent.com/u/552452?v=4?s=100" width="100px;" alt="Andy Piper"/><br /><sub><b>Andy Piper</b></sub></a><br /><a href="#mpflash-andypiper" title="mpflash">💥</a> <a href="#test-andypiper" title="Test">✅</a></td>
246
- </tr>
247
- <tr>
248
- <td align="center" valign="top" width="14.28%"><a href="https://github.com/DavesCodeMusings"><img src="https://avatars.githubusercontent.com/u/61114342?v=4?s=100" width="100px;" alt="David Horton"/><br /><sub><b>David Horton</b></sub></a><br /><a href="#mpflash-DavesCodeMusings" title="mpflash">💥</a> <a href="#test-DavesCodeMusings" title="Test">✅</a></td>
249
228
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/hlovatt"><img src="https://avatars.githubusercontent.com/u/8424169?v=4?s=100" width="100px;" alt="Howard Lovatt"/><br /><sub><b>Howard Lovatt</b></sub></a><br /><a href="#stubs-hlovatt" title="MicroPython stubs">🖍️</a> <a href="#research-hlovatt" title="Research">🔬</a></td>
250
229
  <td align="center" valign="top" width="14.28%"><a href="https://virtualwolf.org/"><img src="https://avatars.githubusercontent.com/u/1644623?v=4?s=100" width="100px;" alt="VirtualWolf"/><br /><sub><b>VirtualWolf</b></sub></a><br /><a href="#test-VirtualWolf" title="Test">✅</a></td>
251
230
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/lukaskremla"><img src="https://avatars.githubusercontent.com/u/155779787?v=4?s=100" width="100px;" alt="Lukas Kremla"/><br /><sub><b>Lukas Kremla</b></sub></a><br /><a href="#test-lukaskremla" title="Test">✅</a></td>
@@ -0,0 +1,110 @@
1
+ stubber/__init__.py,sha256=q4tl_y-ozEZWasPZc629KNxNxqjSDsNSSTfceSkf2rY,49
2
+ stubber/board/board_info.csv,sha256=K2VSmfR013fN-oJWkQUmiQ19w09dVwJHDquPy6QmMhY,8627
3
+ stubber/board/boot.py,sha256=XjWlKErU5nI1HJSugXIP_3hlwgRQboE6sJrpcbSygnk,1120
4
+ stubber/board/createstubs.py,sha256=357lczMPGvACb52bLWLu1gXx6ZVAZzITSeYDrKVsEgA,34715
5
+ stubber/board/createstubs_db.py,sha256=b1SWgurkDOu7DG4OuyD_Pm0-EorJBLM9Dij0KQOi9zI,31621
6
+ stubber/board/createstubs_db_min.py,sha256=WgoDwL90NYJMlnccvgsVnG9LO6CqjIUHnvTpRG0qKYc,12189
7
+ stubber/board/createstubs_db_mpy.mpy,sha256=NN-oJsfgnZzlFEwvHYbpAKjXz-YsI5tbmaD7K8Jupz0,10148
8
+ stubber/board/createstubs_lvgl.py,sha256=CTe7eq1ACRK_JJxavaqDD8znn29nSWJiHHTZ_ps6EhM,27217
9
+ stubber/board/createstubs_lvgl_min.py,sha256=jLkWYmeboI2A8feMC7pT7cYWttLejQTuX7WAEZCylhw,27207
10
+ stubber/board/createstubs_lvgl_mpy.mpy,sha256=ex-nlq2V5e8anQBJvRWEEc-FzU7nlwg5NSrZ8vOadIA,9267
11
+ stubber/board/createstubs_mem.py,sha256=ZR46eQ3_XqvIrpzrNavYR9Gfd5-EBcn3I6i8RvmpjYw,29939
12
+ stubber/board/createstubs_mem_min.py,sha256=IpobaEWuzvBdKYaOrx33UtZn59HfiyVTkRobc-XLpvg,11719
13
+ stubber/board/createstubs_mem_mpy.mpy,sha256=NhivvWh-0uGyry2QmbpWsppRx3-rCamhNR3s0SItgLQ,9735
14
+ stubber/board/createstubs_min.py,sha256=0cbZJeNjQBbHXcF462JsfQqTG718BaLa46Cln-a32Qc,14463
15
+ stubber/board/createstubs_mpy.mpy,sha256=xonRZtK_23kymK5Q7Gzpjh6nBgy5HPVWs9ol2x2XLn8,13071
16
+ stubber/board/fw_info.py,sha256=6AQbN3jtQgllqWQYl4e-63KeEtV08EXk8_JnM6XBkvo,4554
17
+ stubber/board/info.py,sha256=b7SOPZHVsVhaayKCwVkFZlYu0BW-UFI7LuG1Eop9480,5629
18
+ stubber/board/main.py,sha256=f6V3tdt6sPZVLuwemT-NLuK9GySfW2c2J6PJMOOWQQw,413
19
+ stubber/board/modulelist.txt,sha256=rZ6sn8CXjVYRKCcM0rlurfiIwsDuWhzSPOleAmoxCCI,2945
20
+ stubber/board/pkg_full.json,sha256=XvlpWpX8x1NxNQLDipkJWm66gz9YpDY4hJYtl-hMK9s,544
21
+ stubber/board/pkg_minified.json,sha256=JlrQdWXzgomiOXJP6iTSzSK-8NgojLIzqiXjFFreM18,430
22
+ stubber/board/pkg_mpy.json,sha256=gsBLJBRHhfWvYsb0Ux2am539v8nXIKikZ98ezYFRu5I,436
23
+ stubber/board/pyrightconfig.json,sha256=6oHS4aDOfwKBAFeUPsCGJzEXpUgBZsPaF0M4P-N26D4,1376
24
+ stubber/bulk/mcu_stubber.py,sha256=kVhVESmi5FcWAdk1OCsMyZRGaraGELMYO1WuMsfFbuY,14524
25
+ stubber/codemod/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
+ stubber/codemod/_partials/__init__.py,sha256=LVJ-QkEKlc5IqOZ-bYrNXWRd9J5eolsTR_kRTyS9p6w,1430
27
+ stubber/codemod/_partials/db_main.py,sha256=w4RF6s1T75EwN6-RFmdBP0uhWD-e1W1EZDBbmyoZex0,4021
28
+ stubber/codemod/_partials/lvgl_main.py,sha256=9BAJP6P1R2SQVbNya2ujes35eATa56D_Ri2_PjeRBq0,1964
29
+ stubber/codemod/_partials/modules_reader.py,sha256=dJj-H0ncUWVtilSyohQ-dyiUZOjQObds_-llwy_LkYU,2046
30
+ stubber/codemod/add_comment.py,sha256=CZMjtKO9aarZo1E60QXo80CLJAH05z_ylK6Vvjvb0ls,1965
31
+ stubber/codemod/add_method.py,sha256=fZH-RGi_pzFpi3tF_0AMDbA9A94dlgXMrc3ItpY3Ylw,2609
32
+ stubber/codemod/board.py,sha256=dP24t9RO_klQZS7Yqiwt7Rh85B76s6GC2r4B7tVzEn0,11882
33
+ stubber/codemod/enrich.py,sha256=YB-tXo_UjeVboG2uPAG8d1g81STdhWL4NvCfZ6YPduk,12928
34
+ stubber/codemod/merge_docstub.py,sha256=XTvsw4BetCRU1-dJlQisVdDx03ldBh7Yc7aREmLiJPs,27956
35
+ stubber/codemod/modify_list.py,sha256=xrpFBKug273D9E02owUheZD418BvsIHIZCFj4YDjTxU,2118
36
+ stubber/codemod/utils.py,sha256=3hk7pwyS4KZxewrWLwbOrdA5ympbum-kfL0ZN-M7rlo,2459
37
+ stubber/codemod/visitors/type_helpers.py,sha256=UdYKsKDTqzHmPNBuWK1lY0sboXrm7RIY0B4FHLtWo3s,10572
38
+ stubber/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
+ stubber/commands/build_cmd.py,sha256=Zseci4EHxJuiiy7YS-ucmMokDrVLe4j6fPs-PSbwq1k,2813
40
+ stubber/commands/cli.py,sha256=HY4CqB0PPTmzew2sABNsHeNKDPblcGzzbmvtF46oVsU,1556
41
+ stubber/commands/clone_cmd.py,sha256=WZnQIqsnkdddXz32riLUw9zhNXHAgk_LODnwbtQlpbo,2714
42
+ stubber/commands/config_cmd.py,sha256=e8heX27MXfazLxMVtgjK4dsLCWhsoCfdeYGVoH3rqtA,1211
43
+ stubber/commands/enrich_folder_cmd.py,sha256=LDdSAfDlsAQAddYT9Rp3bFiF6maqA457AmMyWNXdXtg,2236
44
+ stubber/commands/get_core_cmd.py,sha256=PSjBJz4F8FlT3c_4E-XFo6Xw0dRQzQl0TxsxCoLwIPY,2324
45
+ stubber/commands/get_docstubs_cmd.py,sha256=04h41BCQxXtvm193jJTj0VEaxJWgvk7SZFJMU4DTt7M,5180
46
+ stubber/commands/get_frozen_cmd.py,sha256=gutYwHdz7XO8CLxutEFiQOUGgKInrKViEKvV8I5eVJU,4253
47
+ stubber/commands/get_mcu_cmd.py,sha256=CTQVIoGqBx6gwUp1aH1gOysVFEZbeqMvpPb2WJA4EVQ,2807
48
+ stubber/commands/merge_cmd.py,sha256=0tKgvBiYjleXac0z5vDMxzvAgiZQUF0DafPqoIueKS8,1641
49
+ stubber/commands/publish_cmd.py,sha256=eo052T3k0YW6m0gJJ3hoZbchd0whMr74z3MudHKthIQ,3275
50
+ stubber/commands/stub_cmd.py,sha256=BJZwpjTQjNEtrBjtUZmvmVb96LuSmg0rwQfgQ3ghHrg,1217
51
+ stubber/commands/switch_cmd.py,sha256=yeK9rNkIl8WicheUGHnK5u7YrV5iR1KBEILVUfbOQtA,1866
52
+ stubber/commands/variants_cmd.py,sha256=Q7DjPElEfSHhDxAlvtiGHWv9e47QPSLYMIs0ScfI7AA,1296
53
+ stubber/data/board_info.csv,sha256=K2VSmfR013fN-oJWkQUmiQ19w09dVwJHDquPy6QmMhY,8627
54
+ stubber/data/board_info.json,sha256=jyvBN5seoxx7Z7B3UpvMn7H8xWCpmG4VtFSPb8PjmZI,58939
55
+ stubber/data/micropython_tags.csv,sha256=HQnzPN7jLmgKX3QvobsPMZa-xMb0exglriFziBjaRz8,1909
56
+ stubber/data/requirements-core-micropython.txt,sha256=6RQWWbLh8YVcD_l1-hjg6wX_Fm1LmNEwy5NExKJIkeg,1317
57
+ stubber/data/requirements-core-pycopy.txt,sha256=tW71l6FIuoQY1tuxkDgeN4Uw8IIp0YrlhhaaqSGSOA8,1051
58
+ stubber/downloader.py,sha256=L0ZgXv-0JfPgPpzDqP66q8Guu0QiN_vgWuB_t_lKmRA,1206
59
+ stubber/freeze/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
60
+ stubber/freeze/common.py,sha256=GA8DaEBsWLTNvVCWZMmtI9i9Ih5aVzK5DfNWMoCbFa4,3306
61
+ stubber/freeze/freeze_folder.py,sha256=49rSh6LHbVweDM6QCoe8Pku0gyEOzz7nOtaivyJ56LE,2490
62
+ stubber/freeze/freeze_manifest_2.py,sha256=BNjjw30WhdI8I_L3rBRRGyoCDCk8O3-MZcM0AScSZBI,4455
63
+ stubber/freeze/get_frozen.py,sha256=ojxUO-Fiy-Tn49Tv_puQrBtZ0dxQEmWj2HfWmHmGODQ,5355
64
+ stubber/get_cpython.py,sha256=Qnug4TlytwrqBRXCNGnRIMGW63zVcQL_8Ua93eTbrc8,3885
65
+ stubber/get_lobo.py,sha256=jyysWbeEwNuZZtkTudJP1QbyVvh-TwFom5cE7iCi9lE,1776
66
+ stubber/merge_config.py,sha256=NCHgpt67uR_yFaiXCtkvZIKqzold2aG7kYUzgvCg2xk,2855
67
+ stubber/minify.py,sha256=z-acX9CNvHbir-xquD-JpAmGfZnaFHJayPJu64-Rj2M,15096
68
+ stubber/modcat.py,sha256=tKB-8l56SuTWoIn8zEtnu5VuPf25ZIggB9x_qNYeiDI,3752
69
+ stubber/publish/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
70
+ stubber/publish/bump.py,sha256=qSb1DpaIxgyoH3YcPU1XKyDKgqkomxSm0WWf1sAVh0Y,3262
71
+ stubber/publish/candidates.py,sha256=w_OzjVU9euaWGf1lC3p5FuwpP1YDXjjGoczFE41QAik,10820
72
+ stubber/publish/database.py,sha256=8wCr19i_6x00spvHlfzlz5nRcfhTgEPeNUnHHRZ967Q,1851
73
+ stubber/publish/defaults.py,sha256=naAyHN_k8OFQfqRnXlPU3HNA0IZll-NA5GuJEvDEG_k,1532
74
+ stubber/publish/enums.py,sha256=Z_x798ArtxyjQIRRY43GDGNB9BD4uPfpeGsXYdj31w0,780
75
+ stubber/publish/helpers.py,sha256=909umfKUHBMBoVnAanop1vKx8loCrWntlfiiG6z89lY,716
76
+ stubber/publish/merge_docstubs.py,sha256=jlMQ3q6DqnLEJ_BvfgtXpTSlD6_XDpn697HG4fi3lRk,6513
77
+ stubber/publish/package.py,sha256=XbPRw5aTgS53ptPmSpGlEsiIGHKWloG2-cgN2PxSaw8,5374
78
+ stubber/publish/pathnames.py,sha256=vORgygaOJJAjlI3cLhNTHfowdewSDsv7zck5evPe1cY,1803
79
+ stubber/publish/publish.py,sha256=fG95ANcdZibwWW_ZoqjhPpolswb17IOi-gTIpNPwjKc,3989
80
+ stubber/publish/pypi.py,sha256=LdvwLfjkkSFBTI4MHyl7Ko_ZWn1SflWxJ9uo2mtPKtc,1272
81
+ stubber/publish/stubpackage.py,sha256=-0hJhOTBfSRc3k4-pUd2LHa_t7J5HwvWHMldubeUzo4,47596
82
+ stubber/rst/__init__.py,sha256=5VcbDCotIICa2xnJDs_gw2sFXpjjGOZZbwCrNKXy1OE,293
83
+ stubber/rst/classsort.py,sha256=-Uji6LzBbX6voKmiXSuexJXyoQ3fmSDQ7Fuz4j1Kk8E,2655
84
+ stubber/rst/lookup.py,sha256=8nnU8MZPMEUKhuZ_tbtV_eh6C7K4A1RN1wemsCodTtw,26003
85
+ stubber/rst/output_dict.py,sha256=cpBXRtUD-uh0EgjWIBiRrMLBmIAEXjoJFSOAg-qJQiU,14755
86
+ stubber/rst/reader.py,sha256=sNZwEpSG8esBrPvD-gVjtku828XfLNst-earA3XBN1c,35426
87
+ stubber/rst/report_return.py,sha256=p0JfJs_WTWTtRZREcQeqUgDW-_TP2VuuX7k7-c49y5E,3024
88
+ stubber/rst/rst_utils.py,sha256=-F6J09-WQBzI5419ItzOlm4gUKxF4BMru2OyXx-M6ko,18314
89
+ stubber/stubber.py,sha256=GxLfHIzDyfFvgiTqMj9DB3tq7I3EnEUNbdoCtYr8gHM,1640
90
+ stubber/stubs_from_docs.py,sha256=c19yVRAu7Kv0Vlpoa15obGIzhekisJuIyYwX1lug6-c,3563
91
+ stubber/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
92
+ stubber/tools/manifestfile.py,sha256=YzPMc7PNciLOBpoc4xgUZ38t88C1C8b4fjG0qfWd6K8,25749
93
+ stubber/tools/readme.md,sha256=uI0higcFUtjSLKobn7NK2LoqZ0BqcbftXSDgNjbsnzo,284
94
+ stubber/typing_collector.py,sha256=c3e3sX-q-xg8q-DAoNl7Yi6qMnMH9I2RCv37c-wkzXs,9510
95
+ stubber/update_fallback.py,sha256=mFxFvcLWl-5IX9BdRuo_WMa538Wtomo2sE14jKbW7-0,4913
96
+ stubber/update_module_list.py,sha256=OEAOnFxB8Ywakw0pxiiTrIplWmoJ9r3Cdn07EpVDmNY,4038
97
+ stubber/utils/__init__.py,sha256=73LiuTInDABhDhnDixU8ojlkVUjR5e3Uv8QNaeBMG0E,234
98
+ stubber/utils/config.py,sha256=wPmSSut9PWjLFzr_8jj7IwkrVsL4mq17X8DGOeRqXGw,5544
99
+ stubber/utils/makeversionhdr.py,sha256=dO8sWLAY_ifT1IJJ1-JJ2z_thvfqJnK3c1_bHF_UI28,1953
100
+ stubber/utils/manifest.py,sha256=KEeFwVCke2XlUv8-g9S10DaoHzISZDxZn0G4LrHn2vA,3239
101
+ stubber/utils/post.py,sha256=1yv5RNQnvHbgTGJ97nYFAh7imzg8NUtyPRDqQMqE3jo,2928
102
+ stubber/utils/repos.py,sha256=kI2VcbKS1sNzFRr8mUDMdKYOYRvxpFIwy7JRyQ5Nxuk,7147
103
+ stubber/utils/stubmaker.py,sha256=gB6n41o13WcShnSzc_lyoTFplotaPSQ3hekoLJvd2BU,5236
104
+ stubber/utils/typed_config_toml.py,sha256=ZR7eo-whyL4nhFXj6xs7E121sLuE-ivlUDevII4K2xg,2653
105
+ stubber/variants.py,sha256=NnwUP-aiGUPAn15BeRRFcBWQUOzAFFnN2oL4u9zio-s,3792
106
+ micropython_stubber-1.25.0.dist-info/entry_points.txt,sha256=JoR8NWh8t6pbDyn0WOMCIfRfDQAOGxqbOgJWuxv3Cxw,116
107
+ micropython_stubber-1.25.0.dist-info/LICENSE,sha256=Fx9qrL45ayRXgH6QzttboqZEjKXms0w1t_b_nkOqYCU,1572
108
+ micropython_stubber-1.25.0.dist-info/METADATA,sha256=eQPhfap2sGg7wnupUaBABmSc-HASigZCou4A8ByRoVE,19972
109
+ micropython_stubber-1.25.0.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
110
+ micropython_stubber-1.25.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.0.1
2
+ Generator: poetry-core 2.1.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
stubber/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """get the version"""
2
2
 
3
- __version__ = "1.24.2"
3
+ __version__ = "1.25.0"
@@ -24,7 +24,7 @@ try:
24
24
  except ImportError:
25
25
  from ucollections import OrderedDict # type: ignore
26
26
 
27
- __version__ = "v1.24.0"
27
+ __version__ = "v1.25.0"
28
28
  ENOENT = 2 # on most ports
29
29
  ENOMESSAGE = 44 # on pyscript
30
30
  _MAX_CLASS_LEVEL = 2 # Max class nesting
@@ -82,12 +82,13 @@ class Stubber:
82
82
  self.info = _info()
83
83
  log.info("Port: {}".format(self.info["port"]))
84
84
  log.info("Board: {}".format(self.info["board"]))
85
+ log.info("Board_ID: {}".format(self.info["board_id"]))
85
86
  gc.collect()
86
87
  if firmware_id:
87
88
  self._fwid = firmware_id.lower()
88
89
  else:
89
90
  if self.info["family"] == "micropython":
90
- self._fwid = "{family}-v{version}-{port}-{board}".format(**self.info).rstrip("-")
91
+ self._fwid = "{family}-v{version}-{port}-{board_id}".format(**self.info).rstrip("-")
91
92
  else:
92
93
  self._fwid = "{family}-v{version}-{port}".format(**self.info)
93
94
  self._start_free = gc.mem_free() # type: ignore
@@ -545,6 +546,8 @@ def _info(): # type:() -> dict[str, str]
545
546
  "ver": "",
546
547
  "port": sys.platform, # port: esp32 / win32 / linux / stm32
547
548
  "board": "UNKNOWN",
549
+ "board_id": "",
550
+ "variant": "",
548
551
  "cpu": "",
549
552
  "mpy": "",
550
553
  "arch": "",
@@ -565,8 +568,12 @@ def _info(): # type:() -> dict[str, str]
565
568
  _machine = (
566
569
  sys.implementation._machine if "_machine" in dir(sys.implementation) else os.uname().machine # type: ignore
567
570
  )
568
- # info["board"] = "with".join(_machine.split("with")[:-1]).strip()
569
- info["board"] = _machine
571
+ info["board"] = _machine.strip()
572
+ si_build = sys.implementation._build if "_build" in dir(sys.implementation) else ""
573
+ if si_build:
574
+ info["board"] = si_build.split("-")[0]
575
+ info["variant"] = si_build.split("-")[1] if "-" in si_build else ""
576
+ info["board_id"] = si_build
570
577
  info["cpu"] = _machine.split("with")[-1].strip()
571
578
  info["mpy"] = (
572
579
  sys.implementation._mpy # type: ignore
@@ -575,7 +582,8 @@ def _info(): # type:() -> dict[str, str]
575
582
  )
576
583
  except (AttributeError, IndexError):
577
584
  pass
578
- info["board"] = get_boardname()
585
+ if not info["board_id"]:
586
+ get_boardname(info)
579
587
 
580
588
  try:
581
589
  if "uname" in dir(os): # old
@@ -668,16 +676,18 @@ def version_str(version: tuple): # -> str:
668
676
  return v_str
669
677
 
670
678
 
671
- def get_boardname() -> str:
672
- "Read the board name from the boardname.py file that may have been created upfront"
679
+ def get_boardname(info: dict) -> str:
680
+ "Read the board_id from the boardname.py file that may have been created upfront"
673
681
  try:
674
- from boardname import BOARDNAME # type: ignore
682
+ from boardname import BOARD_ID # type: ignore
675
683
 
676
- log.info("Found BOARDNAME: {}".format(BOARDNAME))
684
+ log.info("Found BOARD_ID: {}".format(BOARD_ID))
677
685
  except ImportError:
678
- log.warning("BOARDNAME not found")
679
- BOARDNAME = ""
680
- return BOARDNAME
686
+ log.warning("BOARD_ID not found")
687
+ BOARD_ID = ""
688
+ info["board_id"] = BOARD_ID
689
+ info["board"] = BOARD_ID.split("-")[0] if "-" in BOARD_ID else BOARD_ID
690
+ info["variant"] == BOARD_ID.split("-")[1] if "-" in BOARD_ID else ""
681
691
 
682
692
 
683
693
  def get_root() -> str: # sourcery skip: use-assigned-variable
@@ -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.24.2
21
+ This variant was generated from createstubs.py by micropython-stubber v1.24.4
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.24.0"
46
+ __version__ = "v1.25.0"
47
47
  ENOENT = 2 # on most ports
48
48
  ENOMESSAGE = 44 # on pyscript
49
49
  _MAX_CLASS_LEVEL = 2 # Max class nesting
@@ -101,12 +101,13 @@ class Stubber:
101
101
  self.info = _info()
102
102
  log.info("Port: {}".format(self.info["port"]))
103
103
  log.info("Board: {}".format(self.info["board"]))
104
+ log.info("Board_ID: {}".format(self.info["board_id"]))
104
105
  gc.collect()
105
106
  if firmware_id:
106
107
  self._fwid = firmware_id.lower()
107
108
  else:
108
109
  if self.info["family"] == "micropython":
109
- self._fwid = "{family}-v{version}-{port}-{board}".format(**self.info).rstrip("-")
110
+ self._fwid = "{family}-v{version}-{port}-{board_id}".format(**self.info).rstrip("-")
110
111
  else:
111
112
  self._fwid = "{family}-v{version}-{port}".format(**self.info)
112
113
  self._start_free = gc.mem_free() # type: ignore
@@ -541,6 +542,8 @@ def _info(): # type:() -> dict[str, str]
541
542
  "ver": "",
542
543
  "port": sys.platform, # port: esp32 / win32 / linux / stm32
543
544
  "board": "UNKNOWN",
545
+ "board_id": "",
546
+ "variant": "",
544
547
  "cpu": "",
545
548
  "mpy": "",
546
549
  "arch": "",
@@ -559,8 +562,12 @@ def _info(): # type:() -> dict[str, str]
559
562
  pass
560
563
  try:
561
564
  _machine = sys.implementation._machine if "_machine" in dir(sys.implementation) else os.uname().machine # type: ignore
562
- # info["board"] = "with".join(_machine.split("with")[:-1]).strip()
563
- info["board"] = _machine
565
+ info["board"] = _machine.strip()
566
+ si_build = sys.implementation._build if "_build" in dir(sys.implementation) else ""
567
+ if si_build:
568
+ info["board"] = si_build.split("-")[0]
569
+ info["variant"] = si_build.split("-")[1] if "-" in si_build else ""
570
+ info["board_id"] = si_build
564
571
  info["cpu"] = _machine.split("with")[-1].strip()
565
572
  info["mpy"] = (
566
573
  sys.implementation._mpy # type: ignore
@@ -569,7 +576,8 @@ def _info(): # type:() -> dict[str, str]
569
576
  )
570
577
  except (AttributeError, IndexError):
571
578
  pass
572
- info["board"] = get_boardname()
579
+ if not info["board_id"]:
580
+ get_boardname(info)
573
581
 
574
582
  try:
575
583
  if "uname" in dir(os): # old
@@ -661,16 +669,18 @@ def version_str(version: tuple): # -> str:
661
669
  return v_str
662
670
 
663
671
 
664
- def get_boardname() -> str:
665
- "Read the board name from the boardname.py file that may have been created upfront"
672
+ def get_boardname(info: dict) -> str:
673
+ "Read the board_id from the boardname.py file that may have been created upfront"
666
674
  try:
667
- from boardname import BOARDNAME # type: ignore
675
+ from boardname import BOARD_ID # type: ignore
668
676
 
669
- log.info("Found BOARDNAME: {}".format(BOARDNAME))
677
+ log.info("Found BOARD_ID: {}".format(BOARD_ID))
670
678
  except ImportError:
671
- log.warning("BOARDNAME not found")
672
- BOARDNAME = ""
673
- return BOARDNAME
679
+ log.warning("BOARD_ID not found")
680
+ BOARD_ID = ""
681
+ info["board_id"] = BOARD_ID
682
+ info["board"] = BOARD_ID.split("-")[0] if "-" in BOARD_ID else BOARD_ID
683
+ info["variant"] == BOARD_ID.split("-")[1] if "-" in BOARD_ID else ""
674
684
 
675
685
 
676
686
  def get_root() -> str: # sourcery skip: use-assigned-variable
@@ -746,7 +756,7 @@ def get_modules(skip=0):
746
756
  if not file_exists(fname):
747
757
  continue
748
758
  try:
749
- with open(fname) as f:
759
+ with open(fname, encoding="utf-8") as f:
750
760
  i = 0
751
761
  while True:
752
762
  line = f.readline().strip()