python config_error ai_generated true

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

Also available as: JSON · Markdown · 中文
80%Fix Rate
80%Confidence
0Evidence
2024-05-25First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3.8 active — — —
3.9 active — — —
3.10 active — — —
3.11 active — — —

Root Cause

setup.py uses deprecated parameter names like 'description' instead of 'description', or other outdated setuptools APIs.

generic

中文

setup.py使用了已弃用的参数名,如'description'而不是'description',或其他过时的setuptools API。

Workarounds

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

Dead Ends

Common approaches that don't work:

  1. 40% fail

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

  2. 50% fail

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

  3. 80% fail

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