From 953d604791921ea25dcd1b7dca4ce7dc855b8efe Mon Sep 17 00:00:00 2001 From: Danny Willems Date: Tue, 17 Mar 2026 12:14:57 +0100 Subject: [PATCH 1/2] Use include list instead of exclude list --- pyproject.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 1072faf..583be26 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,6 +30,12 @@ dev = [ requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.build.targets.sdist] +include = ["l9format/", "LICENSE", "README.md", "pyproject.toml"] + +[tool.hatch.build.targets.wheel] +include = ["l9format/"] + [tool.ruff] line-length = 80 From a2e77bac6fa2a6d49d9aa21ce7e85990f3fe780a Mon Sep 17 00:00:00 2001 From: Danny Willems Date: Tue, 17 Mar 2026 13:10:38 +0100 Subject: [PATCH 2/2] CHANGELOG: add entry for hatch build include lists --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index aac6e8f..22307f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,11 @@ and this project adheres to ## [Unreleased] +### Changed + +- Use explicit include lists instead of exclude lists for hatch build targets + (sdist and wheel) in `pyproject.toml` ([953d604], [#67]) + ### Infrastructure - CI: move shellcheck into its own dedicated workflow, separate from changelog @@ -196,6 +201,7 @@ and this project adheres to +[953d604]: https://github.com/LeakIX/l9format-python/commit/953d604 [72bf877]: https://github.com/LeakIX/l9format-python/commit/72bf877 [c9216ba]: https://github.com/LeakIX/l9format-python/commit/c9216ba [fa582dc]: https://github.com/LeakIX/l9format-python/commit/fa582dc @@ -297,4 +303,5 @@ and this project adheres to [#62]: https://github.com/LeakIX/l9format-python/pull/62 [#64]: https://github.com/LeakIX/l9format-python/pull/64 [#65]: https://github.com/LeakIX/l9format-python/pull/65 +[#67]: https://github.com/LeakIX/l9format-python/pull/67 [#43]: https://github.com/LeakIX/l9format-python/issues/43