From 39dc0c537ce35aa34e6722f94a34a2b3611a278a Mon Sep 17 00:00:00 2001 From: Andrew Snare Date: Mon, 11 May 2026 11:00:36 +0200 Subject: [PATCH] Fix source distribution packaging so that wheel can be properly built. --- pyproject.toml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 62f60b51cf..06e1bf2d84 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,9 +4,20 @@ requires = [ ] build-backend = "hatchling.build" -[tool.hatch.build] -sources = ["src"] -include = ["src"] +[tool.hatch.build.targets.sdist] +only-include = [ + "/.build-constraints.txt", + "/README.*", + "/LICEN[CS]E", + "/NOTICE", + "/pyproject.toml", + "/src/", + "/tests/", + "/uv.lock", +] + +[tool.hatch.build.targets.wheel] +packages = ["src/databricks"] [tool.uv] required-version = "~= 0.11.0"