Skip to content

Bugfix: exclude docs and tests from package discovery - #241

Merged
BrianWhitneyAI merged 3 commits into
mainfrom
bugfix/240-setuptools-exclude-patterns
Dec 2, 2026
Merged

BrianWhitneyAI merged 3 commits into
mainfrom
bugfix/240-setuptools-exclude-patterns

Conversation

@BrianWhitneyAI

@BrianWhitneyAI BrianWhitneyAI commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

The packages.find exclude patterns (*docs/*, *tests/*) contain slashes, which never match dotted package names. As a result:

  • the top-level docs/ directory is installed into site-packages, where it collides with the same directory from bioio-base and other bioio packages.
  • bioio.tests (including helpers/mock_reader.py and mock_writer.py) ships in the wheel.

Changes the patterns to docs*, tests*, *.tests and *.tests.*. Built a wheel before and after to confirm neither docs/ nor any tests/ directory is included. Only bioio's own tests import bioio.tests across bioio-devs, so excluding it does not affect downstream packages.

Resolves #240

🤖 Generated with Claude Code

The previous patterns contained slashes, which never match dotted
package names, so top-level docs/ was installed into site-packages.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Only bioio's own tests import bioio.tests, so it does not need to ship.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@kmitcham kmitcham left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks safe across the other repos.

@BrianWhitneyAI
BrianWhitneyAI merged commit 62c19fb into main Dec 2, 2026
19 checks passed
@BrianWhitneyAI
BrianWhitneyAI deleted the bugfix/240-setuptools-exclude-patterns branch December 2, 2026 18:39
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.

Common setuptools bug in all bioio repositories (exclude pattern for docs and tests not correct)

3 participants