{
  "id": "python/setuptools-license-field-deprecated",
  "signature": "SetuptoolsDeprecationWarning: `license` as a TOML table is deprecated. Use a SPDX expression string instead.",
  "signature_zh": "SetuptoolsDeprecationWarning：将 `license` 作为 TOML 表已弃用。请改用 SPDX 表达式字符串。",
  "regex": "SetuptoolsDeprecationWarning:\\ `license`\\ as\\ a\\ TOML\\ table\\ is\\ deprecated\\.\\ Use\\ a\\ SPDX\\ expression\\ string\\ instead\\.",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "PEP 639 changes license metadata to SPDX expressions. The old `license = {text = \"MIT\"}` or `{file = \"LICENSE\"}` table format is deprecated and will be removed.",
  "root_cause_type": "generic",
  "root_cause_zh": "PEP 639 将许可证元数据改为 SPDX 表达式。旧的 `license = {text = \"MIT\"}` 或 `{file = \"LICENSE\"}` 表格式已弃用，将被移除。",
  "versions": [
    {
      "version": "3.9",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.12",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Silences the warning but future setuptools will reject the old format.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Temporary; other tools will move to PEP 639.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.98,
      "how": "[project]\\nlicense = \"MIT\"\\nlicense-files = [\"LICENSE\"]",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.95,
      "how": "license = \"Apache-2.0 OR MIT\"",
      "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.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-01-14",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}