python
config_error
ai_generated
true
用户警告:使用连字符分隔的'description'将不再支持,请改用下划线分隔的'description'。
UserWarning: Usage of dash-separated 'description' will not be supported in future versions. Please use underscore-separated 'description' instead.
ID: python/setuptools-dependency-links-deprecated
80%修复率
80%置信度
0证据数
2024-05-25首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.8 | active | — | — | — |
| 3.9 | active | — | — | — |
| 3.10 | active | — | — | — |
| 3.11 | active | — | — | — |
根因分析
setup.py使用了已弃用的参数名,如'description'而不是'description',或其他过时的setuptools API。
English
setup.py uses deprecated parameter names like 'description' instead of 'description', or other outdated setuptools APIs.
解决方案
-
95% 成功率
Update setup.py to use underscore-separated parameters: `description='...'`.
-
90% 成功率
Use setup.cfg with proper keys: `[metadata] description = ...`.
-
70% 成功率
Run `python -m pip install --upgrade setuptools` and then fix any remaining warnings.
无效尝试
常见但无效的做法:
-
40% 失败
Future setuptools versions will break; the warning is a sign of impending failure.
-
50% 失败
This may cause conflicts or warnings; better to migrate fully.
-
80% 失败
This is the opposite direction; dash-separated is being deprecated.