python
config_error
ai_generated
true
warning: sdist: standard file not found: should have one of README, README.rst, README.txt, README.md
ID: python/setuptools-license-file-missing
80%Fix Rate
84%Confidence
0Evidence
2024-08-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.8 | active | — | — | — |
| 3.9 | active | — | — | — |
| 3.10 | active | — | — | — |
Root Cause
The package is missing a README file, which setuptools expects for metadata.
generic中文
包缺少 README 文件,setuptools 期望有该文件用于元数据。
Workarounds
-
95% success Create a README.md with basic project info
echo '# My Project' > README.md
-
80% success Specify readme in setup.py
from setuptools import setup; setup(..., long_description=open('README.md').read())
Dead Ends
Common approaches that don't work:
-
Ignoring the warning
50% fail
May cause issues in package distribution.
-
Adding an empty file named README
40% fail
Empty content doesn't provide proper documentation.