Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add package.json for MIP package manager#94

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
wnienhaus merged 2 commits intomicropython:masterfromwnienhaus:mip_support
Sep 6, 2023

Conversation

@wnienhaus
Copy link
Collaborator

@wnienhauswnienhaus commentedSep 4, 2023
edited
Loading

This PR adds apackage.json file to allow installingmicropython-esp32-ulp with themip package manager on modern MicroPythons.

To install with mip, one would run:

importmipmip.install('github:micropython/micropython-esp32-ulp')# note: while this PR is not merged, this command can be used for testing insteadmip.install('https://raw.githubusercontent.com/wnienhaus/micropython-esp32-ulp/mip_support/package.json')

This PR also adds a tool for generating the contents ofpackage.json, so it doesn't have to be handcrafted whenever files are added/removed.

To generate/updatepackage.json, run from repo root as follows:

python3tools/genpkgjson.py>package.json

(instead ofpython3,micropython can also be used)

Note: at present MIP does not support any way to specify repo-relative urls, so at present the generated json will point togituhub:micropython/micropython-esp32-ulp, and when working with forks of this repo, that url would need to be adjusted to point to the fork instead of this repo.

Closes#93

Also add a tool for generating package.json, so it doesn't haveto be handcrafted when files are added/removed.To generate/update package.json, run from repo root as follows:python3 tools/genpkgjson.py > package.json(instead of python3, micropython can also be used)Note: at present MIP does not support any way to specify repo-relativeurls, so at present the generated json will point togituhub:micropython/micropython-esp32-ulp, which would need to beadapted in any forks of this repo.
Add documentation for installing with `mip`. Keep the instructionsfor installing using `upip` for now, as we still intend to publishto PyPI for now, and thereby keep supporting installing on olderMicroPython versions, which do not yet have `mip`.
@wnienhauswnienhaus changed the titleWIP: Add package.json for MIP package managerAdd package.json for MIP package managerSep 4, 2023
@wnienhauswnienhaus merged commit74d2f79 intomicropython:masterSep 6, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Update quickstart to use mip instead of upip

1 participant

@wnienhaus

[8]ページ先頭

©2009-2025 Movatter.jp