python config_error ai_generated true

警告:sdist:未找到标准文件:应包含 README、README.txt 或 README.rst 之一

warning: sdist: standard file not found: should have one of README, README.txt, README.rst

ID: python/setuptools-missing-license-file-manifest

其他格式: JSON · Markdown 中文 · English
80%修复率
83%置信度
0证据数
2025-01-15首次发现

版本兼容性

版本状态引入弃用备注
3.10 active
3.11 active

根因分析

MANIFEST.in 或 setup.cfg 未包含 sdist 所需的元数据文件。

English

MANIFEST.in or setup.cfg does not include required metadata files for sdist.

generic

解决方案

  1. 95% 成功率
    echo 'include README.md' >> MANIFEST.in
    python -m build
  2. 90% 成功率
    [project]
    readme = "README.md"
    # then: python -m build

无效尝试

常见但无效的做法:

  1. 60% 失败

    PyPI may reject the upload or the package appears unmaintained.

  2. 80% 失败

    Does not fix the build process; next build omits it again.