sage_datamart/pyproject.toml
yumoqing cb42f110c1 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.
2026-07-27 11:07:14 +08:00

16 lines
380 B
TOML

[build-system]
requires = ["setuptools>=61", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "sage_datamart"
version = "0.1.0"
description = "Sage 数据集市 — 模型性能指标、供应商性价比、多维度分析"
requires-python = ">=3.10"
[tool.setuptools.packages.find]
include = ["sage_datamart*"]
[tool.setuptools.package-data]
"*" = ["*.json"]