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

This commit is contained in:
2023-11-14 08:19:33 +00:00
parent 4c9d802b65
commit c578f84753
4 changed files with 18 additions and 40 deletions
+3 -5
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",
]