Skip to content

Commit 777b1d3

Browse files
committed
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/.
1 parent 6f8cc97 commit 777b1d3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

dirac-common/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ include = [
4949
"/tests",
5050
]
5151

52+
[tool.hatch.build.targets.sdist.force-include]
53+
"../LICENSE" = "LICENSE"
54+
5255
[tool.hatch.build.targets.wheel]
5356
packages = ["src/DIRACCommon"]
5457

0 commit comments

Comments
 (0)