[oi-dev] Helper tool for Python modules update
Aurélien Larcher
aurelien.larcher at gmail.com
Mon Feb 1 17:05:27 UTC 2021
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.
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openindiana.org/pipermail/oi-dev/attachments/20210201/01509c63/attachment.html>
More information about the oi-dev
mailing list