Commit 906d6fc
Fix wheel and sdist build configuration (#377)
## Summary
Build artifacts is broken after switching from `hatch` to `uv`: the
wheel is coming out empty, and the sdist is unpacked into a `src/`
directory instead of a clean project layout.
Split the Hatch config into per-target sections:
- `[tool.hatch.build.targets.wheel]` — sets `packages =
["src/databricks"]` so the `databricks.labs.blueprint` package is
actually included in the wheel.
- `[tool.hatch.build.targets.sdist]` — uses `only-include = ["src",
"README.md", "LICENSE", "NOTICE"]` so the sdist contains the source tree
and metadata at the top level.
## Test plan
- [x] `uv build` produces a non-empty wheel containing
`databricks/labs/blueprint/...`
- [x] sdist unpacks with `src/`, `README.md`, `LICENSE`, `NOTICE` at the
top level
- [x] `pip install` the wheel in a fresh venv and `import
databricks.labs.blueprint` succeeds
---------
Co-authored-by: Andrew Snare <andrew.snare@databricks.com>1 parent 51e52cd commit 906d6fc
1 file changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
72 | 83 | | |
73 | 84 | | |
74 | 85 | | |
| |||
0 commit comments