Add frontend build to Python packaging. Remove dead code, cleanup.

This commit is contained in:
Leo Vasanko
2023-11-13 16:19:33 -08:00
parent 938c5ca657
commit 7077b21159
4 changed files with 18 additions and 40 deletions

View File

@@ -40,20 +40,18 @@ dev = [
"ruff",
]
[tool.hatchling]
# Build frontend
pre_build = "npm run build --prefix cista-front"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build]
artifacts = ["cista/wwwroot"]
hooks.custom.path = "scripts/build-frontend.py"
hooks.vcs.version-file = "cista/_version.py"
hooks.vcs.template = """
# This file is automatically generated by hatch build.
__version__ = {version!r}
"""
only-packages = true
targets.sdist.include = [
"/cista",
]