From 8d58b38f941c219867bbec47de9f008e2a97f462 Mon Sep 17 00:00:00 2001 From: nick-gorman <40549624+nick-gorman@users.noreply.github.com> Date: Mon, 1 Dec 2025 19:30:46 +1100 Subject: [PATCH] correct build config --- pyproject.toml | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f6be1ae9..84765d85 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,9 +65,6 @@ dev-dependencies = [ [tool.hatch.metadata] allow-direct-references = true -[tool.hatch.build.targets.wheel] -packages = ["src/ispypsa"] - [tool.pytest.ini_options] # path to tests for pytest testpaths = ["src", "tests"] @@ -87,8 +84,27 @@ select = [ "I", ] -[tool.setuptools.package-data] -ispypsa = [ - "data_fetch/manifests/**/*.txt", - "templater/manually_extracted_template_tables/**/*.txt", +[tool.hatch.build] +include = [ + "src/ispypsa/**/*.py", + "src/ispypsa/data_fetch/manifests/**/*.txt", + "src/ispypsa/templater/manually_extracted_template_tables/**/*.csv", +] + +[tool.hatch.build.targets.wheel] +packages = ["src/ispypsa"] +exclude = [ + "tests/", + "docs/", + "**/__pycache__", + "*.pyc", +] + +[tool.hatch.build.targets.sdist] +exclude = [ + "tests/", + "docs/", + ".github/", + "**/__pycache__", + "*.pyc", ]