pip container does no longer include g1_monetary_license
pip
image has been rebuilt for testing Poetry v2 (#499), but this image does not include g1_monetary_license
directory. It has been detected with DeathReaper run. For some reasons, it was magically included before (last working build dates from Nov. 2023), and is therefore no longer included. [tool.poetry.include]
field takes care of that for Poetry, but not for pip
/setuptools
.
One solution could be to have, in addition to Poetry’s field, the dedicated setuptools
field to include g1_monetary_license
directory:
- https://setuptools.pypa.io/en/latest/userguide/datafiles.html#package-data
- https://stackoverflow.com/questions/78085020/packaging-with-pyproject-toml-that-will-include-other-multi-level-directories
- https://stackoverflow.com/questions/76886313/how-to-include-json-files-in-a-python-package-using-a-pyproject-toml
- https://pip.pypa.io/en/stable/news/
- https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/
But I don’t manage to have it working.
Other solution, is to build the pip
image from Poetry. Poetry would build the wheel, the wheel is copied to the Python-slim image and installed with pip
.
Todos
-
Fix pip
image generation to includeg1_monetary_license
-
Depends on Support Poetry v2 syntax (#499): - Fix Poetry installation to v1
- Port Silkaj and DuniterPy pyproject.tomls to Poetry v2 syntax
Edited by Moul