Repository navigation
Conversation
Josverl
force-pushed
the
tools/mip_lib
branch
3 times, most recently
from
December 3, 2026 21:37
b06c524 to
a8d7f35
Compare
Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
Josverl
force-pushed
the
tools/mip_lib
branch
from
December 3, 2026 21:38
a8d7f35 to
e9ade4b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
I regularly want to use MicroPython modules from MicroPython lib and install or copy them to a location on a filesystem for testing or other uses such as creating creating stubs.
AFAIK There is no current tool that offers that functionality, therefore introducing
mip_lib.pyFor simple modules that is just a single file copy, but for modules with dependencies, or compound or namespace packages that gets complex and leads to hardcoded scripts.
The file copy approach is currently used in ci.sh in this repo,
There I encountered it when setting up CI tests for the typing.py module, where several modules have interwoven dependencies.
That PR #1051 still uses simple copies, but the CI steps could be simplified by using
mip_libTesting
I manually tested this and inspected the resulting venv.
Trade-offs and Alternatives
mpremoteormanifestfile.pyGenerative AI
I used generative AI tools when creating this PR, but a human has checked the
code and is responsible for the code and the description above.