josepy
josepy copied to clipboard
Fix incorrect `include` declarations with Poetry
Fix the include declarations in pyproject.toml to be restricted to the sdist format. Otherwise, all the listed files are installed straight into site-packages, i.e. you get:
/usr/lib/python3.10/site-packages/CONTRIBUTING.md
/usr/lib/python3.10/site-packages/CHANGELOG.rst
...
Ping. Over a year later, this is still broken.
Not sure this is an issue. The default for include is only sdist.
https://python-poetry.org/docs/pyproject/#exclude-and-include
Indeed, the default changed in poetry-core==2.0.0.