Repository navigation
MIP sync: a top-level directory can publish under its own name - #69
Merged
Merged
Conversation
…ex under its own name (pydevices#226) midiports and the usb-* packages are directories at pydevices' root, each with a manifest.py, not modules under lib/. A mip-split.toml section of top-level = true publishes one beside bledev, with the manifest's version set to the release's. Refuses a listed package whose require()d sibling directory is not listed.
This was referenced Oct 19, 2026
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.
The pydevices sync only knew packages under
lib/, somidiportsand theusb-*packages, which sit at the root of pydevices with amanifest.pyeach, could not be put in the index by name (PyDevices/pydevices#226).A
mip-split.tomlsection that is onlytop-level = truenow publishes that directory tomicropython/pydevices/<name>, besidebledev. The directory's ownmanifest.pystays the source for what the package is and requires; the sync sets itsversionto the release's and leaves outpackage.jsonandREADME.md. It refuses a section with other keys, a name that is not a directory with a manifest, a name that is also inlib/, and a package thatrequire()s a sibling directory the file does not list.A source repository without such sections syncs exactly as before. I ran the new script on pydevices' branch into a copy of the mip repository and built the index with
tools/build.py: all twelve packages came out at the release version, andmip.install("usb-host-msc")resolvesusb-coreinto its file list.Needs a new publishing tag (
publishing-v14) before mip can use it.