Skip to content

tools/mpremote: Add metadata file and new subcommands for mip #17646

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aivarannamaa
Copy link

Summary

  1. Make mpremote mip install create or update a metadata file containing installation details
  2. Use this impormation to implement mpremote mip list and mpremote mip uninstall.

Testing

I tested on a Raspberry Pi Pico. I'll perform more thorough testing if the maintainers express their interest in this idea.

Trade-offs and Alternatives

The discussion has been started at https://github.com/orgs/micropython/discussions/17534

Copy link

github-actions bot commented Jul 9, 2025

Code size report:

   bare-arm:    +0 +0.000% 
minimal x86:    +0 +0.000% 
   unix x64:    +0 +0.000% standard
      stm32:    +0 +0.000% PYBV10
     mimxrt:    +0 +0.000% TEENSY40
        rp2:    +0 +0.000% RPI_PICO_W
       samd:    +0 +0.000% ADAFRUIT_ITSYBITSY_M4_EXPRESS
  qemu rv32:    +0 +0.000% VIRT_RV32

Copy link

codecov bot commented Jul 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.44%. Comparing base (df05cae) to head (e5c10fc).
Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #17646   +/-   ##
=======================================
  Coverage   98.44%   98.44%           
=======================================
  Files         171      171           
  Lines       22192    22192           
=======================================
  Hits        21847    21847           
  Misses        345      345           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aivarannamaa aivarannamaa changed the title Add mip-package.json, mip list and mip uninstall Add mip-packages.json, mip list and mip uninstall Jul 9, 2025
@aivarannamaa aivarannamaa changed the title Add mip-packages.json, mip list and mip uninstall Add mip-packages.json, mip list and mip uninstall for mpremote Jul 9, 2025
@aivarannamaa aivarannamaa changed the title Add mip-packages.json, mip list and mip uninstall for mpremote tools/mpremote: Add metadata file and new subcommands for mip Jul 9, 2025
@aivarannamaa
Copy link
Author

It shows failed check on "unix port / stackless_clang (pull_request)" but I can't see how my changes could have caused this. Can it be a flaky test?

@Josverl
Copy link
Contributor

Josverl commented Jul 9, 2025

I tend to check other runs of the same GHA , ports unix , and if there are others failing that share the same base , then its time for one more rebase.

@aivarannamaa aivarannamaa force-pushed the mip-metadata-clean branch 2 times, most recently from 81e5aa8 to 775b7ed Compare July 13, 2025 10:31
Make mip install create or update mip-packages.json file containing
installed packages metadata. Implement `list` and `uninstall` subcommands.

Signed-off-by: Aivar Annamaa <aivar.annamaa@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy