mirror of
https://github.com/katanemo/plano.git
synced 2026-04-26 17:26:26 +02:00
fix sdist build: use build hook to bundle config files (#803)
* fix sdist build: use build hook to bundle config files * copy hatch_build.py in Dockerfile
This commit is contained in:
parent
c13ce19293
commit
8f7a8a8a17
4 changed files with 54 additions and 5 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue