On 21. 04. 21 0:14, Robert-André Mauchin wrote:
Hi,
I'm trying to help someone package a GUI in Python that is using
Pyproject. The project needs to add a desktop file, an appdata file
and also a "binary" to launch the GUI.
So far I have managed to drop the library files in %python3_sitelib.
But how should upstream deal with the extra files needed? Is there a
way provided by Poetry from the pyproject.toml? Or should upstream
write a separate Makefile?
In setuptools, I'd do it like this:
https://github.com/jupyter/notebook/pull/6010
https://github.com/kliment/Printrun/blob/printrun-2.0.0rc8/setup.py#L55
I am no poetry expert, so I don't know how to do it via poetry. Googling poetry
data_files yielded
https://github.com/python-poetry/poetry/issues/890
That issue is closed but not fixed.
Also, setuptools apparently deprecated data_files but I don't know when :/
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok