From 679ccc52e7fc489f2ee5d7607ec1498880a51adb Mon Sep 17 00:00:00 2001 From: Morgan Epp <60796713+epmog@users.noreply.github.com> Date: Wed, 4 Jun 2025 14:07:58 -0500 Subject: [PATCH] fix: sdist failed to install Signed-off-by: Morgan Epp <60796713+epmog@users.noreply.github.com> --- pyproject.toml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9ce2d0f..2c10323 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,8 +46,6 @@ openjd = "openjd.cli:main" artifacts = [ "*_version.py", ] -only-packages = true - [tool.hatch.version] source = "vcs" @@ -70,15 +68,10 @@ destinations = [ ] [tool.hatch.build.targets.sdist] -packages = [ +include = [ "src/openjd", + "hatch_version_hook.py", ] -only-include = [ - "src/openjd", -] - -[tool.hatch.build.targets.sdist.force-include] -"src/openjd/__main__.py" = "openjd/__main__.py" [tool.hatch.build.targets.wheel] packages = [