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.
16 lines
380 B
TOML
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"]
|