fix(coordinode): fix empty wheel — use sources mapping instead of packages#8
fix(coordinode): fix empty wheel — use sources mapping instead of packages#8
Conversation
packages = ["coordinode"] looks for coordinode/coordinode/ subdir which
does not exist — pyproject.toml is inside the package directory itself.
sources = {"." = "coordinode"} maps the current dir as the coordinode
package, producing a wheel with actual Python files.
The 0.4.1 wheel contained 0 Python files, making the package unimportable.
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe wheel build configuration in Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|



Summary
coordinodewheel containing 0 Python files (package was unimportable after PyPI install)Root Cause
packages = ["coordinode"]incoordinode/pyproject.tomltells hatchling to look for acoordinode/coordinode/subdirectory. Sincepyproject.tomllives inside thecoordinode/project directory (alongside__init__.py), no such subdirectory exists — resulting in an empty wheel.Fix
sources = {"." = "coordinode"}maps the current directory (.) as thecoordinodepackage root, so all.pyfiles are included under thecoordinode/namespace in the wheel.Test Plan
uv run python -m buildincoordinode/— verify wheel containscoordinode/__init__.pyand other modulespip install coordinode && python -c "from coordinode import CoordinodeClient"succeedsCloses #8