Skip to content

Conversation

@matteius
Copy link
Member

Summary

Fixes #5937

Problem

The docs/ directory was being installed to site-packages/ root instead of being excluded from the package distribution. This causes conflicts with other packages that have a docs/ directory.

For example, installing both pipenv and another package with docs/conf.py would result in one overwriting the other's file, or cause package manager conflicts.

This is similar to the previously fixed examples/ directory issue in #6315.

Solution

Added "docs*" and "docs.*" to the exclude pattern in [tool.setuptools.packages.find] section of pyproject.toml to prevent the documentation files from being included in the wheel distribution.

Changes

  • pyproject.toml: Added docs* and docs.* to the package exclude list

Pull Request opened by Augment Code with guidance from the PR author

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.
@matteius matteius merged commit ae2fd54 into main Dec 16, 2025
19 of 20 checks passed
@matteius matteius deleted the fix/exclude-docs-from-package-5937 branch December 16, 2025 02:46
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.

files installed in site-packages top-level

2 participants