How to setup a mip package with multiple versions? #9831
-
You can now publish your own package to a github repo and write a package.json file to use with mip thanks to the great work of @jimmo! (see https://github.com/jimmo/micropython-mlx90640 for an example). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Thanks @saraverbeecke When you install a package.json-based package from github, the version specified will be interpreted as a git branch (or tag). >>> mip.install('github:jimmo/micropython-mlx90640', version='devel') will fetch package.json from the devel branch (and then also implicitly use the devel branch for fetching referenced files). So the simple answer is, tag your repo at each version, and then you're all set. |
Beta Was this translation helpful? Give feedback.
Thanks @saraverbeecke
When you install a package.json-based package from github, the version specified will be interpreted as a git branch (or tag).
will fetch package.json from the devel branch (and then also implicitly use the devel branch for fetching referenced files).
So the simple answer is, tag your repo at each version, and then you're all set.