build: Add hatch_build in sdist to fix installation issues (#39)

This commit is contained in:
Syed Muhammad Dawoud Sheraz Ali 2025-03-12 16:06:59 +05:00 committed by GitHub
parent 243bbeb79a
commit c2ba1b57fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
- [Improvement] Add hatch_build.py in sdist target to fix the installation issues (by @dawoudsheraz)

View File

@ -61,7 +61,7 @@ build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
# Disable strict naming for twine compatibility
strict-naming = false
include = [ "/tutorandroid" ]
include = [ "/tutorandroid", '.hatch_build.py' ]
exclude = [ "tests*" ]
[tool.hatch.build.targets.wheel]