2.0.0: Don't install docs nor newsfragments

Open Beginner friendly
#69 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
build-system

Research direction

Start in pyproject.toml at [tool.setuptools.packages.find] and review the package exclusions shown in the issue. Build or install version 2.0.0 in the reported environment, then inspect site-packages to verify that docs and newsfragments are absent while the package still installs correctly.

Written by the indexing model from the issue text.

Description

Operating System

macOS (Apple Silicon)

Version Information

3.14

Environment
PkgSrc
Reproduction code
Install version 2.0.0 and observe "docs" and "newsfragments" in `site-packages`.
Additional Context

A patch to fix the issue:

--- pyproject.toml.orig	2026-09-08 11:18:56.117968613 +0000
+++ pyproject.toml
@@ -65,7 +65,7 @@ dev = [
 ]
 
 [tool.setuptools.packages.find]
-exclude = ["scripts", "scripts.*", "tests", "tests.*"]
+exclude = ["docs", "docs*", "newsfragments", "newsfragments*", "scripts", "scripts.*", "tests", "tests.*"]
 
 [tool.setuptools.package-data]
 hexbytes = ["py.typed"]
Dominant language
Python
Stars
30
Forks
22
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.