From 2a69d37e379aa0a18628c9209fecbe72cd83beb2 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Sun, 21 Dec 2025 00:30:07 +0100 Subject: [PATCH] Project: Configure Hatch `sdist` packaging. Remove `MANIFEST.in`. --- MANIFEST.in | 5 ----- pyproject.toml | 12 ++++++++++++ 2 files changed, 12 insertions(+), 5 deletions(-) delete mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 18d294ce..00000000 --- a/MANIFEST.in +++ /dev/null @@ -1,5 +0,0 @@ -include LICENSE -include NOTICE -include *.rst *.txt -recursive-include docs *.rst *.txt *.py *.conf -prune docs/.crate-docs diff --git a/pyproject.toml b/pyproject.toml index dde91b73..2a92cc00 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,6 +2,18 @@ requires = ["hatchling >= 1.26", "versioningit"] build-backend = "hatchling.build" +[tool.hatch.build.targets.sdist] +include = [ + "/docs", + "/src/crate/*.py", + "/tests", + "*.rst", + "*.txt", +] +exclude = [ + "/docs/.crate-docs", +] + [tool.hatch.build.targets.wheel] packages = ["src/crate"]