Skip to content

fix(py): Fix pyproject.toml on fastapi plugin#5030

Open
huangjeff5 wants to merge 3 commits intomainfrom
jh-fix-fastapi-pyproject
Open

fix(py): Fix pyproject.toml on fastapi plugin#5030
huangjeff5 wants to merge 3 commits intomainfrom
jh-fix-fastapi-pyproject

Conversation

@huangjeff5
Copy link
Copy Markdown
Contributor

@huangjeff5 huangjeff5 commented Mar 30, 2026

This PR fixes a bug preventing the genkit-plugin-fastapi package from being uploaded to PyPI (returning a 400 Bad Request: Duplicate filename in local headers error), and standardizes the Hatchling wheel build configurations across all Python plugins to guarantee safe editable installs during testing.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request modifies the build configuration for the FastAPI plugin in pyproject.toml, specifically changing how files are included in the wheel distribution. A critical issue was identified where switching from packages to only-include would result in an incorrect file structure within the built wheel, breaking standard imports. The feedback suggests reverting to the packages configuration to maintain the correct namespace mapping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant