{
  "id": "python/setuptools-license-file-deprecated",
  "signature": "SetuptoolsDeprecationWarning: 'license-file' is deprecated; use 'license-files' with glob patterns instead.",
  "signature_zh": "SetuptoolsDeprecationWarning：'license-file' 已弃用；请改用带 glob 模式的 'license-files'。",
  "regex": "SetuptoolsDeprecationWarning:\\ 'license\\-file'\\ is\\ deprecated;\\ use\\ 'license\\-files'\\ with\\ glob\\ patterns\\ instead\\.",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "setuptools 77+ deprecates the singular license-file key in favor of license-files (a list supporting globs) to align with PEP 639.",
  "root_cause_type": "generic",
  "root_cause_zh": "setuptools 77+ 弃用单数形式的 license-file 键，改用 license-files（支持 glob 的列表），以符合 PEP 639。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The key will be removed, breaking future builds.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Blocks security updates and may conflict with other build requirements.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "# pyproject.toml\n[project]\nlicense = \"MIT\"\nlicense-files = [\"LICENSE*\", \"COPYING*\"]",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.92,
      "how": "[project]\nlicense = \"MIT\"  # or \"Apache-2.0 OR MIT\"\nlicense-files = [\"LICENSE\"]",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-01-08",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}