From 79d8d472e5fb132b616a74e7dc8680e5416f725c Mon Sep 17 00:00:00 2001 From: Syed Muhammad Dawoud Sheraz Ali Date: Wed, 12 Mar 2025 11:50:40 +0500 Subject: [PATCH] build: Add hatch_build in sdist to fix installation issues --- changelog.d/20250312_113751_dawoud.sheraz_fix_hatch_build.md | 1 + pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/20250312_113751_dawoud.sheraz_fix_hatch_build.md diff --git a/changelog.d/20250312_113751_dawoud.sheraz_fix_hatch_build.md b/changelog.d/20250312_113751_dawoud.sheraz_fix_hatch_build.md new file mode 100644 index 0000000..fb4c929 --- /dev/null +++ b/changelog.d/20250312_113751_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 afe5770..abcb4ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,7 +59,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 = [ "/tutordiscovery"] +include = [ "/tutordiscovery", ".hatch_build.py"] exclude = ["tests*"] [tool.hatch.build.targets.wheel]