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

其他格式: JSON · Markdown 中文 · English
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.

generic

解决方案

  1. 95% 成功率
    Update setup.py to use underscore-separated parameters: `description='...'`.
  2. 90% 成功率
    Use setup.cfg with proper keys: `[metadata] description = ...`.
  3. 70% 成功率
    Run `python -m pip install --upgrade setuptools` and then fix any remaining warnings.

无效尝试

常见但无效的做法:

  1. 40% 失败

    Future setuptools versions will break; the warning is a sign of impending failure.

  2. 50% 失败

    This may cause conflicts or warnings; better to migrate fully.

  3. 80% 失败

    This is the opposite direction; dash-separated is being deprecated.