Skip to content

fix: correct src-layout package root so wheel installs importable pac… - #2

Open
bashu wants to merge 1 commit into
dheereshag:masterfrom
bashu:fix/wheel-src-layout
Open

bashu wants to merge 1 commit into
dheereshag:masterfrom
bashu:fix/wheel-src-layout

Conversation

@bashu

@bashu bashu commented Sep 10, 2026

Copy link
Copy Markdown

pyproject.toml used a custom [tool.hatch.build] include list with src/-prefixed paths, but never declared the wheel target's packages root. Hatchling therefore built wheels with the package physically nested at src/numerize_denumerize/ instead of numerize_denumerize/ at the top level of site-packages — so after installing (from GitHub or PyPI), import numerize_denumerize raised ModuleNotFoundError.

…kage

The wheel target lacked a packages mapping, so hatchling shipped
files under src/numerize_denumerize/ instead of numerize_denumerize/
at the top level of site-packages. This made
pip install git+https://github.com/... (and any sdist/wheel build)
produce a package that could not be imported as
import numerize_denumerize.
@bashu
bashu force-pushed the fix/wheel-src-layout branch from 95a250e to 1d97d73 Compare September 10, 2026 04:23
@bashu bashu closed this Sep 10, 2026
@bashu
bashu deleted the fix/wheel-src-layout branch September 10, 2026 04:37
@bashu
bashu restored the fix/wheel-src-layout branch September 10, 2026 04:38
@bashu bashu reopened this Sep 10, 2026
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.

1 participant