From b61834fd22426b8985546a598cc000b9d81bc981 Mon Sep 17 00:00:00 2001 From: Syed Muhammad Dawoud Sheraz Ali Date: Wed, 12 Mar 2025 11:50:38 +0500 Subject: [PATCH] build: Add hatch_build in sdist to fix installation issues --- changelog.d/20250312_113706_dawoud.sheraz_fix_hatch_build.md | 1 + pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/20250312_113706_dawoud.sheraz_fix_hatch_build.md diff --git a/changelog.d/20250312_113706_dawoud.sheraz_fix_hatch_build.md b/changelog.d/20250312_113706_dawoud.sheraz_fix_hatch_build.md new file mode 100644 index 0000000..fb4c929 --- /dev/null +++ b/changelog.d/20250312_113706_dawoud.sheraz_fix_hatch_build.md @@ -0,0 +1 @@ +- [Improvement] Add hatch_build.py in sdist target to fix the installation issues (by @dawoudsheraz) diff --git a/pyproject.toml b/pyproject.toml index 4631800..d90e44a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,7 +64,7 @@ build-backend = "hatchling.build" [tool.hatch.build.targets.sdist] # Disable strict naming, otherwise twine is not able to detect name/version strict-naming = false -include = [ "/tutorcredentials"] +include = [ "/tutorcredentials", '.hatch_build.py'] exclude = ["tests*"] [tool.hatch.build.targets.wheel]