# 警告：sdist：未找到标准文件：应具有 README、README.rst、README.txt 或 README.md 之一

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

## 根因

包缺少 README 文件，setuptools 期望有该文件用于元数据。

## 版本兼容性

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

## 解决方案

1. **Create a README.md with basic project info** (95% 成功率)
   ```
   echo '# My Project' > README.md
   ```
2. **Specify readme in setup.py** (80% 成功率)
   ```
   from setuptools import setup; setup(..., long_description=open('README.md').read())
   ```

## 无效尝试

- **Ignoring the warning** — May cause issues in package distribution. (50% 失败率)
- **Adding an empty file named README** — Empty content doesn't provide proper documentation. (40% 失败率)
