-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
tools/mpremote: Add mpremote mip install
to install packages.
#9467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
6b2f116
to
08df7bf
Compare
This depends on #9463 for the reference |
f5b5cfc
to
040f369
Compare
040f369
to
fda4bb3
Compare
mpremote install
to install packages.mpremote mip install
to install packages.
Updated to make |
81f118d
to
965beb4
Compare
tools/mpremote/mpremote/main.py
Outdated
|
||
# If no commands were "actions" then implicitly finish with the REPL. | ||
if state.run_repl_on_completion(): | ||
do_repl(state) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this call fails because it's defined as do_repl(state, args)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Accidental cleanup in one of the later updates. Fixed.
A few things I noticed while testing that were "unexpected":
Maybe these are things that will be improved in a future PR? |
No functional change. This makes each built-in command defined by just a handler method and simplifies a lot of the logic around tracking the board state. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
No functional change other than to allow slightly more flexibility in how --foo arguments are specified. This removes all custom handling for --foo args in all commands and replaces it with per-command argparse configs. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This supports the same package sources as the new `mip` tool. - micropython-lib (by name) - http(s) & github packages with json description - directly downloading a .py/.mpy file The version is specified with an optional `@version` on the end of the package name. The target dir, index, and mpy/no-mpy can be set through command line args. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
965beb4
to
7705b9b
Compare
Done. There's now a progress for downloading then another one for copying.
I'm not sure this is important for the PC version of |
A great feature, thank you! |
In the case where the file(s) have been updated this would be welcome behaviour. |
Yes, definitely. What Damien is referring to here though is that When running in ( A note on the list of required hashes for anyone who is curious: the list of hashes is computed at the time the package is published and includes all dependencies. i.e. version x.y.z "freezes" all it's dependencies too at that point in time, so |
Merge 9.1.x to main
This supports the same package sources as the new
mip
tool. (micropython/micropython-lib#542)The version is specified with an optional
@version
on the end of the package name.Also adds support for optional --args to multi-arg commands like "edit" and the filesystem commands (and now "install"). This allows
--mpy
/--no-mpy
and--target
to be specified to theinstall
command.This work was funded through GitHub Sponsors.