Commit 16424c8
committed
had dups, this was necessary too remove them
## Conversation Summary
### What We Did
Fixed a PyPI publishing error for the docutools package (version
2025.11.8). The publish attempt failed with:
400 Invalid distribution file. ZIP archive not accepted: Duplicate
filename in local headers
Root Cause: In pyproject.toml, the [tool.hatch.build.targets.wheel]
configuration had:
• packages = ["src/lcdoc"] - which includes all files under src/lcdoc/
• force-include = { "src/lcdoc/mkdocs/lp/assets" =
"lcdoc/mkdocs/lp/assets" } - which redundantly included the
assets again
This created duplicate entries for 13 asset files (JavaScript, CSS, SVG
files) in lcdoc/mkdocs/lp/assets/,
causing PyPI to reject the wheel.
### Files Modified
• pyproject.toml (lines 125-132): Removed the redundant force-include
directives from both [tool.hatch.build.
targets.wheel] and [tool.hatch.build.targets.sdist] sections.
### What We Accomplished
1. Diagnosed the duplicate files issue using python -m zipfile -l and
uniq -d
2. Fixed the pyproject.toml configuration
3. Rebuilt the package (size reduced from 6.0MiB to 5.5MiB)
4. Verified no duplicates exist in the new wheel
5. Successfully published docutools-2025.11.8 to PyPI (both wheel and
source distribution)
### Current Status
✅ Package is now live on PyPI and ready for use. No further action
needed for this issue.
Build claude-sonnet-4-5 (09:23 PM)1 parent 5b688ad commit 16424c8
1 file changed
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | 127 | | |
130 | 128 | | |
131 | 129 | | |
132 | | - | |
133 | 130 | | |
134 | 131 | | |
135 | 132 | | |
0 commit comments