Skip to content

Commit 6a84610

Browse files
committed
Do not include documentation files in wheels
Fix the `include` entries in `pyproject.toml` to include documentation files in sdist format only. Otherwise, they are added to the top-level wheel directory and they end up being installed directly in the top-level site-packages directory, e.g.: /usr/lib/python3.11/site-packages/CHANGELOG /usr/lib/python3.11/site-packages/LICENSE /usr/lib/python3.11/site-packages/README.md
1 parent a57e3ee commit 6a84610

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ classifiers = [
2323
'Topic :: Software Development :: Libraries :: Python Modules'
2424
]
2525
include = [
26-
"CHANGELOG",
27-
"README.md",
28-
"LICENSE"
26+
{ path = "CHANGELOG", format = "sdist" },
27+
{ path = "README.md", format = "sdist" },
28+
{ path = "LICENSE", format = "sdist" },
2929
]
3030

3131
[tool.poetry.dependencies]

0 commit comments

Comments
 (0)