Skip to content

Conversation

@mgorny
Copy link

@mgorny mgorny commented Nov 1, 2023

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
...

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
    ...
@ohemorange ohemorange changed the base branch from master to main January 16, 2025 19:16
@mgorny
Copy link
Author

mgorny commented Feb 11, 2025

Ping. Over a year later, this is still broken.

@cdce8p
Copy link
Contributor

cdce8p commented Sep 23, 2025

Not sure this is an issue. The default for include is only sdist.
https://python-poetry.org/docs/pyproject/#exclude-and-include

@mgorny
Copy link
Author

mgorny commented Sep 23, 2025

Indeed, the default changed in poetry-core==2.0.0.

@mgorny mgorny closed this Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants