Publishing a package for mip install. Has anyone succeeded? #11980
Replies: 9 comments 11 replies
-
Looking at the code in https://github.com/micropython/micropython/blob/master/tools/mpremote/mpremote/mip.py#L53 It's trying to rewrite the path so it can be accessed via raw.githubusercontent.com Looks like it wants you to go: Try dropping the |
Beta Was this translation helpful? Give feedback.
-
That's not pretty :) I've changed the app to use relative imports. Running it is unchanged whether it's in It strikes me we're left with two questions:
|
Beta Was this translation helpful? Give feedback.
-
Aside from the |
Beta Was this translation helpful? Give feedback.
-
hi @peterhinch
@scruss already mentioned you can use Do you think it's worth adding some metadata to a package to say what it's default target directory should be? I hadn't really considered mip being used to install the main "application", but it seems like a useful enough thing to be able to do? |
Beta Was this translation helpful? Give feedback.
-
I can see this as a useful feature. Could it be as simple as:
For example:
With a target=foo, it would be:
|
Beta Was this translation helpful? Give feedback.
-
@jimmo Using However the directory structure is not ideal as dependencies are also installed to |
Beta Was this translation helpful? Give feedback.
-
Thanks @peterhinch -- I will have a think about how to solve this. @DavesCodeMusings I think your suggestion about using the path is probably a good way to do this. One note is that on different boards the default location is different. e.g. |
Beta Was this translation helpful? Give feedback.
-
When trying to set up a mip package for my project I encountered a few problems:
The ability to specify the source index for dependencies would have solved my problem 2. e.g as an optional additional field after the version
|
Beta Was this translation helpful? Give feedback.
-
Regarding the "application" versus "library" distinction and install directories, that also came up when @vshymanskyy was working on ViperIDE support for installing example code and also data files for "projects". Ref vshymanskyy/ViperIDE#42 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have attempted to follow the instructions here producing package.json reproduced here:
Attempts to install produce this outcome:
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions