Skip to content

Do not install docs/ as a top-level package - #296

Open
vitlav wants to merge 2 commits into
SectorLabs:masterfrom
vitlav:exclude-docs-package
Open

vitlav wants to merge 2 commits into
SectorLabs:masterfrom
vitlav:exclude-docs-package

Conversation

@vitlav

@vitlav vitlav commented Oct 19, 2026 •

Copy link
Copy Markdown

Restrict package discovery to include = ["psqlextra*"], as suggested in review.

setuptools package discovery treats docs/ and docs/source/ as namespace
packages and installs docs/source/conf.py into site-packages/docs/.
Exclude docs* next to tests*.
Comment thread pyproject.toml Outdated

[tool.setuptools.packages.find]
exclude = ["tests*"]
exclude = ["tests*", "docs*"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd recommend switching to use include instead. We see similar problems in Debian, but with a different set of top-level directories that get incorrectly installed. This approach seems more explicit about what's actually needed.

Suggested change
exclude = ["tests*", "docs*"]
include = ["psqlextra*"]

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.

2 participants