From 777b1d38e5535a0d0ffbd008420570cb536a998d Mon Sep 17 00:00:00 2001 From: Chris Burr Date: Mon, 9 Feb 2026 13:16:06 +0100 Subject: [PATCH] fix: include LICENSE file in dirac-common sdist and wheel Use hatchling's force-include to pull the root LICENSE into the dirac-common sdist. The wheel built from the sdist then auto-discovers the LICENSE and places it in .dist-info/licenses/. --- dirac-common/pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dirac-common/pyproject.toml b/dirac-common/pyproject.toml index b66eba062cd..18fb19a7066 100644 --- a/dirac-common/pyproject.toml +++ b/dirac-common/pyproject.toml @@ -49,6 +49,9 @@ include = [ "/tests", ] +[tool.hatch.build.targets.sdist.force-include] +"../LICENSE" = "LICENSE" + [tool.hatch.build.targets.wheel] packages = ["src/DIRACCommon"]