Skip to content

fix: remove duplicate force-include causing PyPI wheel rejection#37

Merged
beonde merged 1 commit into
mainfrom
fix/remove-duplicate-wheel-include
May 14, 2026
Merged

fix: remove duplicate force-include causing PyPI wheel rejection#37
beonde merged 1 commit into
mainfrom
fix/remove-duplicate-wheel-include

Conversation

@beonde
Copy link
Copy Markdown
Member

@beonde beonde commented May 14, 2026

Problem

The force-include directives in pyproject.toml duplicate files already included via the packages directive. PyPI now rejects wheels with duplicate filename entries in ZIP local headers.

Fix

Remove the redundant [tool.hatch.build.targets.wheel.force-include] and [tool.hatch.build.targets.sdist.force-include] sections. The proto/gen files are tracked in git and already included via packages = ["capiscio_mcp"].

Verification

  • Built wheel locally with uv build --wheel — no duplicate entries
  • Checked unzip -l output — all proto files present exactly once

The force-include directives for proto/gen files are redundant since
the packages directive already includes everything under capiscio_mcp/.
The duplicate entries in the wheel ZIP caused PyPI to reject the upload
with 'Duplicate filename in local headers'.
Copilot AI review requested due to automatic review settings May 14, 2026 03:45
@beonde beonde merged commit 6b5e34b into main May 14, 2026
12 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes PyPI wheel rejections caused by duplicate ZIP entries by removing redundant Hatch force-include directives that were re-including files already covered by the wheel packages = ["capiscio_mcp"] setting.

Changes:

  • Removed [tool.hatch.build.targets.wheel.force-include] for generated proto modules to avoid duplicate wheel entries.
  • Removed [tool.hatch.build.targets.sdist.force-include] for the same generated proto path, relying on default sdist behavior + tracked files.

@beonde beonde deleted the fix/remove-duplicate-wheel-include branch May 14, 2026 03:47
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