Skip to content

Commit ae2fd54

Browse files
authored
Exclude docs directory from package distribution (#6501)
Fixes #5937 The docs/ directory was being installed to site-packages root instead of being excluded from the package distribution. This could cause conflicts with other packages that have a docs/ directory (similar to the previously fixed examples/ directory issue in #6315). Added 'docs*' and 'docs.*' to the exclude pattern in [tool.setuptools.packages.find] to prevent the documentation files from being included in the wheel distribution.
1 parent ac013e3 commit ae2fd54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ scripts.pipenv-resolver = "pipenv.resolver:main"
6161

6262
[tool.setuptools.packages.find]
6363
where = [ "." ]
64-
exclude = [ "tests*", "tests.*", "tasks*", "tasks.*" ]
64+
exclude = [ "tests*", "tests.*", "tasks*", "tasks.*", "docs*", "docs.*" ]
6565

6666
[tool.setuptools.package-data]
6767
"*" = [ "LICENSE", "NOTICES" ]

0 commit comments

Comments
 (0)