[oi-dev] Helper tool for Python modules update
Aurélien Larcher
aurelien.larcher at gmail.com
Mon Feb 1 17:14:34 UTC 2021
On Mon, Feb 1, 2021 at 6:05 PM Aurélien Larcher <aurelien.larcher at gmail.com>
wrote:
> Hi,
> I tested a little something even if it is still very rudimentary... and
> given that I am not a Python developer the code is probably quite ugly.
>
> With the last few commits to oi-userland you can use:
>
> $ gmake update-latest
>
> in Python components to modify the Makefile to the latest known version in
> PyPI.
>
> The rest of the procedure remains fairly manual so far...
>
> Some notes specific to Python components:
> 1) If the COMPONENT_ARCHIVE_URL is set to $(call pypi_url) you can remove
> it.
>
Actually probably not for now... should make it more streamlined.
> 2) The COMPONENT_PYPI macro is default set to COMPONENT_NAME but you may
> need to define it if there is a discrepancy.
> 3) If the component uses PyPI then the checksum will be automatically
> updated to the one stored in the JSON metadata.
> 4) This is all very basic, in particular you need to check if the latest
> version supports all Python versions or only Python >= 3.x, and if needed
> split the component into 2.x and 3.x.
>
> Next step will be to use the 'require_dist' metadata to generate
> dependencies.
>
> We are just a few maintainers so as Till said, let us try to be smart...
>
> Kind regards,
>
> Aurélien
>
> --
> ---
> Praise the Caffeine embeddings
>
--
---
Praise the Caffeine embeddings
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openindiana.org/pipermail/oi-dev/attachments/20210201/a22e8ccb/attachment.html>
More information about the oi-dev
mailing list