micropython / micropython-lib

Core Python libraries ported to MicroPython
Other
2.39k stars 994 forks source link

micropython/mip/mip/__init__.py: Implement install from gitlab. #816

Closed OlivierLenoir closed 4 months ago

OlivierLenoir commented 7 months ago

Modify _rewrite_url() to allow mip install from gitlab: repository.

Signed-off-by: Olivier Lenoir olivier.len02@gmail.com

OlivierLenoir commented 7 months ago

Both pull requests are link to the same implementation of mip install from GitLab.

Signed-off-by: Olivier Lenoir olivier.len02@gmail.com


https://github.com/micropython/micropython-lib/pull/816

Modify _rewrite_url() to allow mip install from gitlab: repository.

Signed-off-by: Olivier Lenoir olivier.len02@gmail.com


https://github.com/micropython/micropython/pull/13791

mpremote: Implement mip install from GitLab.

tools/mpremote/README.md: Add mip install gitlab:org/repo@branch. Add example mpremote mip install gitlab:org/repo@branch.

tools/mpremote/mpremote/mip.py: Implement install from GitLab. Modify _rewrite_url() to allow mip install from gitlab: repository.

mpremote/mpremote/main.py: Add gitlab:org/repo, gitlab:org/repo@branch. Modify argparse_mip() for gitlab:org/repo, gitlab:org/repo@branch.

docs/reference/packages.rst: Mip install from GitLab. Describe how to mip install from GitLab.

docs/reference/mpremote.rst: Install package from GitLab. Install the package from the specified branch at org/repo on GitLab.

Signed-off-by: Olivier Lenoir olivier.len02@gmail.com

OlivierLenoir commented 6 months ago

@jimmo I think this PR is right. What's the next step, if any?

dpgeorge commented 4 months ago

Thanks for the contribution! This looks good, and is now merged.

dpgeorge commented 4 months ago

Rebased and merged in 57cbc3484060f646deb0f4f652abcca4732b3458