# 错误：无法找到 setup.cfg 中 long_description_content_type 引用的文件 'README.md'

- **ID:** `python/setuptools-sdist-missing-readme`
- **领域:** python
- **类别:** config_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

元数据引用了不存在或名称不同的 README/长描述文件（Linux 上区分大小写），构建读取时失败。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.8 | active | — | — |
| 3.9 | active | — | — |
| 3.10 | active | — | — |
| 3.11 | active | — | — |
| 3.12 | active | — | — |

## 解决方案

1. **** (92% 成功率)
   ```
   Ensure the referenced file exists with exact case and is included in the sdist (e.g. add `include README.md` to MANIFEST.in).
   ```
2. **** (88% 成功率)
   ```
   Use dynamic metadata in pyproject.toml: `[project] readme = "README.md"` and verify the path relative to the project root.
   ```

## 无效尝试

- **** — Case changes may not match the reference and break on case-sensitive filesystems. (60% 失败率)
- **** — Loses PyPI description; the underlying missing-file issue remains for other references. (50% 失败率)
