fix: i18n JSON files not included in wheel package

Root cause: no __init__.py in i18n/*/ subdirs, so setuptools
packages.find() skipped them. pyproject.toml also lacked
[tool.setuptools.package-data] for *.json glob.

Fixes:
- Add __init__.py to i18n/ and each language subdir (zh/en/jp/ko)
- Add [tool.setuptools.package-data] "*" = ["*.json"]
- Add build/ to .gitignore

Verified: wheel now includes all 4 i18n.json files.
This commit is contained in:
yumoqing 2026-07-27 11:07:14 +08:00
parent 60059b304e
commit cb42f110c1
7 changed files with 4 additions and 0 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ __pycache__/
*.pyc
*.egg-info/
models/mysql.ddl.sql
build/

View File

@ -10,3 +10,6 @@ requires-python = ">=3.10"
[tool.setuptools.packages.find]
include = ["sage_datamart*"]
[tool.setuptools.package-data]
"*" = ["*.json"]

View File

View File

View File

View File

View File