python config_error ai_generated true

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

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

Also available as: JSON · Markdown · 中文
80%Fix Rate
83%Confidence
0Evidence
2025-01-15First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3.10 active
3.11 active

Root Cause

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

generic

中文

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

Workarounds

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

Dead Ends

Common approaches that don't work:

  1. 60% fail

    PyPI may reject the upload or the package appears unmaintained.

  2. 80% fail

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