This question also asks, what I'm looking for but it's quite old and there hasn't been Poetry yet.
In the documentation I didn't find a way to tell Poetry to create packages which upon installation distribute/create files outside the site-packages folder (except tool.poetry.scripts, which creates executables in ~/.local/bin).
How do I make pip install .. <my-package> create e.g. ~/.local/share/applications/my-package.desktop with Poetry?