Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,14 @@ jobs:
- name: Build
run: uv build

- name: Verify .pyi files in wheel
run: |
if unzip -l dist/*.whl | grep '\.pyi$'; then
echo "✓ .pyi files found in distribution"
else
echo "Error: No .pyi files found in wheel"
exit 1
fi

- name: Publish
run: uv publish
11 changes: 4 additions & 7 deletions scripts/hatch_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,12 @@ def marker(self) -> pathlib.Path:
/ f".reflex-{self.metadata.version}.pyi_generated"
)

def finalize(
self, version: str, build_data: dict[str, Any], artifact_path: str
) -> None:
"""Finalize the build process.
def initialize(self, version: str, build_data: dict[str, Any]) -> None:
"""Initialize the build hook.

Args:
version: The version of the package.
build_data: The build data.
artifact_path: The path to the artifact.
version: The version being built.
build_data: Additional build data.
"""
if self.marker().exists():
return
Expand Down
Loading