{
  "id": "python/setuptools-sdist-missing-readme",
  "signature": "error: Cannot find file 'README.md' referenced by long_description_content_type in setup.cfg",
  "signature_zh": "错误：无法找到 setup.cfg 中 long_description_content_type 引用的文件 'README.md'",
  "regex": "error:\\ Cannot\\ find\\ file\\ 'README\\.md'\\ referenced\\ by\\ long_description_content_type\\ in\\ setup\\.cfg",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Metadata refers to a README or long description file that is absent or named differently (case-sensitive on Linux), so the build fails when reading it.",
  "root_cause_type": "generic",
  "root_cause_zh": "元数据引用了不存在或名称不同的 README/长描述文件（Linux 上区分大小写），构建读取时失败。",
  "versions": [
    {
      "version": "3.8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "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": "Case changes may not match the reference and break on case-sensitive filesystems.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Loses PyPI description; the underlying missing-file issue remains for other references.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.92,
      "how": "Ensure the referenced file exists with exact case and is included in the sdist (e.g. add `include README.md` to MANIFEST.in).",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.88,
      "how": "Use dynamic metadata in pyproject.toml: `[project] readme = \"README.md\"` and verify the path relative to the project root.",
      "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.83,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-09-03",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}