python config_error ai_generated true

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

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

ID: python/setuptools-license-file-missing

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

版本兼容性

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

根因分析

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

English

The package is missing a README file, which setuptools expects for metadata.

generic

解决方案

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

无效尝试

常见但无效的做法:

  1. Ignoring the warning 50% 失败

    May cause issues in package distribution.

  2. Adding an empty file named README 40% 失败

    Empty content doesn't provide proper documentation.