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

requests: Support file:// scheme for local files#989

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

Open
aylen384 wants to merge1 commit intomicropython:master
base:master
Choose a base branch
Loading
fromaylen384:file2

Conversation

@aylen384
Copy link
Contributor

This allows installing packages using mip
from an index served from the local fs.

Usecases:

For local testing (especially but not necessarily limited to) using the unix port.
So you can locally generate an index from the repo and install packages from the index without starting a local http server.

And for packaging the complete index of this repo for the opensuse rpm (micropython-lib) without needing to launch an http server within the build environment. Previous we were using the makefile that was dropped from this repo so I decided to generate a local index and then install all packages contained in that index to the buildroot.

This allows installing packages using mipfrom an index served from the local fs.Signed-off-by: Dominik Heidler <dheidler@suse.de>
@dpgeorge
Copy link
Member

Thanks for the patch.

But, I'm not sure this is a good addition. It doesn't seem to be supported by CPython'srequests module?

Also, some work was done recently with mip to allow installing from the local filesystem, seemicropython/micropython#12477 . Does that cover your use case?

@aylen384
Copy link
ContributorAuthor

aylen384 commentedApr 10, 2025
edited
Loading

This does not cover my usecase as I can't install packages locally (on the local linux system) using mpremote.

This patch was adding way less memory than patching (the non-mpremote) miphere, so that's why I did it like this.

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.

2 participants

@aylen384@dpgeorge

[8]ページ先頭

©2009-2025 Movatter.jp