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
_______________________________________________
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to