fix sdist build: use build hook to bundle config files

This commit is contained in:
Adil Hafeez 2026-03-05 12:28:21 -08:00
parent eb1be2926a
commit 828bbe3205
No known key found for this signature in database
GPG key ID: 9B18EF7691369645
3 changed files with 53 additions and 5 deletions

View file

@ -37,12 +37,15 @@ path = "planoai/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["planoai"]
[tool.hatch.build.targets.wheel.force-include]
"../config/plano_config_schema.yaml" = "planoai/data/plano_config_schema.yaml"
"../config/envoy.template.yaml" = "planoai/data/envoy.template.yaml"
[tool.hatch.build.targets.sdist]
include = ["planoai/**"]
include = ["planoai/**", "hatch_build.py"]
[tool.hatch.build.targets.sdist.force-include]
"../config/plano_config_schema.yaml" = "config/plano_config_schema.yaml"
"../config/envoy.template.yaml" = "config/envoy.template.yaml"
[tool.hatch.build]
hooks.custom.path = "hatch_build.py"
[tool.pytest.ini_options]
addopts = ["-v"]