build: Add hatch_build in sdist to fix installation issues

This commit is contained in:
Muhammad Labeeb 2025-04-07 15:33:00 +05:00
parent d2c41f4639
commit fd5cef7570

View File

@ -27,7 +27,7 @@ classifiers = [
"Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.12",
] ]
dependencies = [ dependencies = [
"tutor>=19.0.0,<20.0.0", "tutor>=19.0.1,<20.0.0",
"quart", "quart",
"aiofiles", "aiofiles",
"markdown", "markdown",
@ -39,7 +39,7 @@ dynamic = ["version"]
[project.optional-dependencies] [project.optional-dependencies]
dev = [ dev = [
"tutor[dev]>=19.0.0,<20.0.0", "tutor[dev]>=19.0.1,<20.0.0",
"types-aiofiles", "types-aiofiles",
"types-Markdown", "types-Markdown",
"pylint", "pylint",
@ -66,7 +66,7 @@ build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist] [tool.hatch.build.targets.sdist]
# Disable strict naming, otherwise twine is not able to detect name/version # Disable strict naming, otherwise twine is not able to detect name/version
strict-naming = false strict-naming = false
include = [ "/tutordeck"] include = [ "/tutordeck", ".hatch_build.py"]
exclude = ["tests*"] exclude = ["tests*"]
[tool.hatch.build.targets.wheel] [tool.hatch.build.targets.wheel]