Explorar o código

fix(packaging): include JSON schema files in package distribution

- Add recursive-include for cli/core/schema/*.json in MANIFEST.in
- Configure setuptools.package-data in pyproject.toml to include schema files
- Fixes module import errors when schema files are missing in installed package
xcad hai 2 meses
pai
achega
8161c9f7c8
Modificáronse 2 ficheiros con 6 adicións e 0 borrados
  1. 3 0
      MANIFEST.in
  2. 3 0
      pyproject.toml

+ 3 - 0
MANIFEST.in

@@ -1,6 +1,9 @@
 # Include library directory with all templates
 recursive-include library *
 
+# Include JSON schema files
+recursive-include cli/core/schema *.json
+
 # Include documentation
 include README.md
 include LICENSE

+ 3 - 0
pyproject.toml

@@ -32,6 +32,9 @@ boilerplates = "cli.__main__:run"
 include = ["cli*"]
 exclude = ["tests*", "scripts*"]
 
+[tool.setuptools.package-data]
+cli = ["core/schema/**/*.json"]
+
 [tool.ruff]
 # Extended line length for better readability
 line-length = 120