Skip to content

Commit 16424c8

Browse files
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

File tree

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,9 @@ directory = "build/coverage/overall"
124124
# Hatch configuration for package discovery
125125
[tool.hatch.build.targets.wheel]
126126
packages = ["src/lcdoc"]
127-
# Here a css and js files we need in the wheels:
128-
force-include = { "src/lcdoc/mkdocs/lp/assets" = "lcdoc/mkdocs/lp/assets" }
129127

130128
[tool.hatch.build.targets.sdist]
131129
include = ["src/lcdoc", "README.md", "LICENSE"]
132-
force-include = { "src/lcdoc/mkdocs/lp/assets" = "src/lcdoc/mkdocs/lp/assets" }
133130

134131
[dependency-groups]
135132
dev = ["matplotlib>=3.0.0", "mypy>=1.14.1"]

0 commit comments

Comments
 (0)